Skip to content

User Endpoints

dionisggr edited this page Feb 27, 2021 · 1 revision

Create User (Register)

URL: /api/user
Method: POST
Auth required: No

  • Bearer my-secret-key

Request Body

Requires headers: {'Content-Type': 'application/json'}

{
  "name": "Dwight Schrute"
  "username": "dwight",
  "password": "pass"
}
Name Type In Description
id integer header Primary key
username string header Unique username
name string header First name of user
password string header User password

Success Reponse

Code: 201 Created
Content example

{
  "id": 1,
  "username": "dwight",
  "name": Dwight Schrute
}
Clone this wiki locally