mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-22 07:53:19 +01:00
feat(rest): added documentation
This commit is contained in:
parent
25db44ba5e
commit
a50ef874cd
10
docs/api.rst
10
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
|
||||
---
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user