I am building a jsonapi for my website, and while looking at various frontend components I came across https://github.com/dixieio/redux-json-api/tree/master/docs Which seems to resolve the endpoint URL directly from the resource type
It is part of the spec/recommendations to have the endpoint resolved exactl by the resource type ? I remember reading comment explaining there isn't an actual type
naming convention.
My API has several endpoints for the registration of different types of user
/registration/admin
/registration/customer
etc.
Those endpoint have different business logic associated, but they all return a user
type object.
Is this a bad design to have several endpoints returning the same resource
type
?Should I make changes in my code to introduce additional type like
registration/user
?Or should I submit a patch to the library so it accepts custom endpoint URLs ?