You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have several cases that I need to call custom endpoints to act on records. These endpoints doesn't comply fully with JSON:API, but I'd like Orbit to call them since they return proper formatted JSON:API responses that I would like Orbit to process (add to cache, etc).
(Just an example, purify-air can change a lot of other things based on different planet conditions, so can't simply say replaceAttribute(..., "oxygen", 1))
Return:
orbit/packages/@orbit/jsonapi/src/lib/transform-requests.ts
Lines 160 to 164 in a3e4459
I have several cases that I need to call custom endpoints to act on records. These endpoints doesn't comply fully with JSON:API, but I'd like Orbit to call them since they return proper formatted JSON:API responses that I would like Orbit to process (add to cache, etc).
Currently:
Example:
(Just an example,
purify-air
can change a lot of other things based on different planet conditions, so can't simply sayreplaceAttribute(..., "oxygen", 1)
)Return:
Note that I'm using
POST
instead ofPATCH
for this custom endpoint, and would like Orbit to treat it asupdateRecord/PATCH
The text was updated successfully, but these errors were encountered: