JSONAPI Singular Resource

157 Views Asked by At

What is the correct way to access a singleton, or resource that is always singular in a restful JSONAPI?

I need to get settings so I have this currently...

  1. /api/v1/settings/user-settings

Is this correct, or does everything need to be accessed with an id like this...

  1. /api/v1/settings/1/user-settings/1

If I don't have the ids then how would a patch work?

0

There are 0 best solutions below