Not sure why you need an adapter for this. An easier path might be to just call store.push() instead of store.createRecord(). store.push() adds the model to your local cache. We’ve used this method extensively for a websocket connection so the server can push updates to our client.
I have an application that has no persistence by design. There is a simple python script that supports some very specific GET requests but cannot receive any PUT, POST, or inbound data. Any attempt to save a record will crash. So just wanted to make sure I understood all the cases where an ajax request to backend is actually triggered.
It looks like just doing createRecord('model-name') and never saving does the trick.
Just needed to understand which methods I could use that allowed me to only work with the store and not break my read only backend.
I guess if you really wanted you could also extend the adapter and override updateRecord, createRecord and deleteRecord to be no-ops (not tested, but I suppose it would work).