From a50ef874cd797e56b8b40fa0138142c4abad1e21 Mon Sep 17 00:00:00 2001 From: Daniele Scasciafratte Date: Mon, 2 May 2022 17:29:44 +0200 Subject: [PATCH] feat(rest): added documentation --- docs/api.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/api.rst b/docs/api.rst index 474bfe22..234d4a5b 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -46,6 +46,16 @@ Here is an example of a cURL request to create a ticket (using Basic authenticat --header 'Content-Type: application/json' \ --data-raw '{"queue": 1, "title": "Test Ticket API", "description": "Test create ticket from API", "submitter_email": "test@mail.com", "priority": 4}' +Accessing the endpoint ``/api/users/`` with a **POST** request will let you create a new user. + +You need to provide a JSON body with the following data : + +- **first_name**: first name +- **last_name**: last name +- **username**: username +- **email**: user email +- **password**: user password + PUT ---