nicklandgrebe / active-resource.js

ActiveResource.js - API resource relational mapping in JavaScript
https://active-resource.js.org
MIT License
133 stars 20 forks source link

how to send raw request #59

Closed gadelkareem closed 4 years ago

gadelkareem commented 4 years ago

Is there a way to send a raw request? for ex I used to do something like this with https://github.com/twg/devour:

api.runMiddleware({
      url: api.apiUrl + '/users/' + id + '/password',
      method: 'PATCH',
      data,
      model: 'update-password-request'
})
nicklandgrebe commented 4 years ago

We use axios, I suggest just importing that. You can then use the JSONAPI interface to handle your response data and create resources accordingly