Coloquent icon indicating copy to clipboard operation
Coloquent copied to clipboard

Unlink URI from resource type

Open antonkomarev opened this issue 4 years ago • 3 comments

Right now jsonApiType is using for resource type and in URI builder. But in JSON:API specification there is no rule to keep them same.

Example: I have resource with type: "Truck", but it's listed in GET /cars endpoint.

I propose to have extra property which will be used in URI path. If it's value is undefined or null - then jsonApiType will be used as it's working now.

antonkomarev avatar Nov 20 '19 20:11 antonkomarev

Makes sense, good idea

DavidDuwaer avatar Nov 28 '19 09:11 DavidDuwaer

Would you have time to implement this?

DavidDuwaer avatar Dec 03 '19 13:12 DavidDuwaer

Nope, sorry. I'm not actually using your package. Just made a research of existing solutions and found this issue.

antonkomarev avatar Dec 03 '19 13:12 antonkomarev