A
A
Alexander Wolf2013-12-13 22:31:17
RESTful API
Alexander Wolf, 2013-12-13 22:31:17

How to properly implement REST?

Hello! I am making a RESTfull project.
I get the list of users like this:
GET /admin/users
Second page:
GET /admin/users/10
User:
GET /admin/users/name
Next, I need to display a page with a form for adding a user. It is not difficult to guess that users cannot start their nickname with a number.
There were ideas to do this:
GET /admin/users/add
But what to do with a poor user who has chosen the nickname "add"? Make a reservation? Crutch.
Please tell me how to solve this problem for me?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nazar Mokrinsky, 2013-12-13
@mannaro

Second page:
GET /admin/users?page=2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question