Add option to fetch individual resource with get
1 unresolved thread
- Refactored get to accept a resource ID. If the id exists, only that resource will be fetched.
- Refactored getCacheKey to include the resourceId if it exists. Also changed it to use named params to reduce the chance of passing in args in the wrong order and recieving an unexpected result.
Merge request reports
Activity
Filter activity
- Resolved by Brian Perry
The cache itself must have get and set methods, so I'm not sure how necessary it would be to add additional top level methods to the class.
That does get me thinking though - since getCachedResponse doesn't actually do anything specific to JSON:API, maybe that actually belongs on the base ApiClient class instead?
Edited by Brian Perry
- Resolved by Coby Sher
- Resolved by Coby Sher
- Resolved by Brian Perry
- Resolved by Coby Sher
Please register or sign in to reply