{"action":"created","issue":{"url":"https://api.github.com/repos/samselikoff/ember-cli-mirage/issues/187","labels_url":"https://api.github.com/repos/samselikoff/ember-cli-mirage/issues/187/labels{/name}","comments_url":"https://api.github.com/repos/samselikoff/ember-cli-mirage/issues/187/comments","events_url":"https://api.github.com/repos/samselikoff/ember-cli-mirage/issues/187/events","html_url":"https://github.com/samselikoff/ember-cli-mirage/issues/187","id":92435965,"number":187,"title":"PATCH request errors with DS.JSONAPIAdapter and DS.JSONAPISerializer","user":{"login":"biscuitvile","id":962241,"avatar_url":"https://avatars.githubusercontent.com/u/962241?v=3","gravatar_id":"","url":"https://api.github.com/users/biscuitvile","html_url":"https://github.com/biscuitvile","followers_url":"https://api.github.com/users/biscuitvile/followers","following_url":"https://api.github.com/users/biscuitvile/following{/other_user}","gists_url":"https://api.github.com/users/biscuitvile/gists{/gist_id}","starred_url":"https://api.github.com/users/biscuitvile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biscuitvile/subscriptions","organizations_url":"https://api.github.com/users/biscuitvile/orgs","repos_url":"https://api.github.com/users/biscuitvile/repos","events_url":"https://api.github.com/users/biscuitvile/events{/privacy}","received_events_url":"https://api.github.com/users/biscuitvile/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-07-01T17:04:19Z","updated_at":"2015-07-14T21:58:08Z","closed_at":null,"body":"I'm switching to the new `DS.JSONAPIAdapter`and `DS.JSONAPISerializer` available in Ember Data 1.13.4 and running into an issue with Ember CLI Mirage.\r\n\r\nI get the somewhat usual: `Mirage: Your Ember app tried to PATCH '/orders/FTWG-49137', but there was no route defined to handle this request. Define a route that matches this path in your mirage/config.js file.` error that one sees from time to time in development but in this particular case it is complaining about a PATCH request and I already have this route defined in my `config.js` file.\r\n\r\nI previously handled this with code like this:\r\n\r\n```\r\nthis.put('/orders/:id', function(db, request) {\r\n  // ...\r\n});\r\n```\r\n\r\nAfter switching to the new adapter and serializer Mirage does not recognize this route due to the PATCH request and obviously `this.patch('/orders/:id');` is not a valid thing.\r\n\r\nI don't have a lot of context on the internals at the moment, is this some deficiency in Pretender or Ember CLI Mirage or am I just making a mistake somewhere?\r\n\r\nThis library has been amazing for our Ember app but at the moment this is a hard blocking issue on our number one priority of adopting JSON API endpoints. Is there something I can do to help with this or am I just missing something obvious?\r\n\r\nThanks!!"},"comment":{"url":"https://api.github.com/repos/samselikoff/ember-cli-mirage/issues/comments/121404202","html_url":"https://github.com/samselikoff/ember-cli-mirage/issues/187#issuecomment-121404202","issue_url":"https://api.github.com/repos/samselikoff/ember-cli-mirage/issues/187","id":121404202,"user":{"login":"biscuitvile","id":962241,"avatar_url":"https://avatars.githubusercontent.com/u/962241?v=3","gravatar_id":"","url":"https://api.github.com/users/biscuitvile","html_url":"https://github.com/biscuitvile","followers_url":"https://api.github.com/users/biscuitvile/followers","following_url":"https://api.github.com/users/biscuitvile/following{/other_user}","gists_url":"https://api.github.com/users/biscuitvile/gists{/gist_id}","starred_url":"https://api.github.com/users/biscuitvile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biscuitvile/subscriptions","organizations_url":"https://api.github.com/users/biscuitvile/orgs","repos_url":"https://api.github.com/users/biscuitvile/repos","events_url":"https://api.github.com/users/biscuitvile/events{/privacy}","received_events_url":"https://api.github.com/users/biscuitvile/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T21:58:08Z","updated_at":"2015-07-14T21:58:08Z","body":"Hmm so I'm a little confused here because it certainly seems you can write successful JSON API responses ussing the mirage function handlers suggested above but the lack of PATCH as a possible HTTP method seems to not work with the DS.JSONAPIAdapter.\r\n\r\nAm I missing something still?"}}