wet-aquaW
Refine3y ago
3 replies
wet-aqua

How to make resources work for non-standard REST API structure

In a resource called campaigns, the list endpoint route can be /gw/campaign/fetch while the create endpoint can be /gw/campaign/create.
And in another resource called dashboard, the list route being /gw/dashboard/all/fetch and the create endpoint route being /gw/dashboard/all/data/create.

Note: These are not my only endpoints, there are many others that have different routes.

How can I make this work in my resource?
Was this page helpful?