backroad icon indicating copy to clipboard operation
backroad copied to clipboard

Begin thinking about reserved names

Open themeblvd opened this issue 6 years ago • 0 comments

In moving ahead with #6, and we start growing other functionality and potentially clashing endpoints we should start thinking about implementing reserved name lists.

For example, if #6 adds /first, /last and /count endpoints to querying users, we could potentially have clash because I've chosen to allow users to be queried by the username like:

/api/v1/users/<username>/

So if the following query brings back the count of users:

/api/v1/users/count/

Then, a user created named count would cause some issues.

To sum up, we need a reserved names list that will apply to usernames and article slugs when being created by the end-user. To start:

['first', 'last', 'count']

themeblvd avatar Jul 01 '18 15:07 themeblvd