docs/user.rst: make mention of url field in POST

This commit is contained in:
dogeystamp 2023-05-21 21:55:31 -04:00
parent f6e1d1c385
commit 88bd79c228
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -147,3 +147,15 @@ POST
``POST /users`` creates a new user.
The request body must conform to the :ref:`User schema<user_schema>`.
The server will return a ``201 Created`` code with a similar body to this:
.. code-block:: json
{
"status": "success",
"url": "/users/user"
}
The ``url`` field is the URL to the new user.
It can be used in further requests to manage the user's information, or delete it.