This is my first really complex REST API and my team and I are confused on when to use a parameter, and when to use a slash.
Say I want to get all the messages associated with an entity...
I could do this...
/business/{ID}/message
/entity/{ID}/message
/message (non specific)
Or I can do this...
/message?business={ID}
/message?whitelabel={ID}
/message (nonspecific)
How does one decide whether something is a filter or a specific resource?
Say I want to get all the messages associated with an entity...
I could do this...
/business/{ID}/message
/entity/{ID}/message
/message (non specific)
Or I can do this...
/message?business={ID}
/message?whitelabel={ID}
/message (nonspecific)
How does one decide whether something is a filter or a specific resource?