Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

User related endpoints

Ramza edited this page Feb 1, 2024 · 3 revisions

Create User

POST /api/v1/users

Expected Parameters:

  • Email
  • Password

Returns:

  • ID

Login

POST /api/v1/users/login

Expected Parameters:

  • Email
  • Password

Returns:

  • Token (JWT)

Get User by ID

Requires Authorization Bearer header with a valid JWT token corresponding to the userid.

GET /api/v1/users/{userid}

Returns:

  • ID
  • Email
  • HashedPassword
  • RegistrationDate

Update User Email

Requires Authorization Bearer header with a valid JWT token corresponding to the userid.

PUT /api/v1/users/{userid}/email

Expected Parameters:

  • Email

Update User Password

Requires Authorization Bearer header with a valid JWT token corresponding to the userid.

PUT /api/v1/users/{userid}/password

Expected Parameters:

  • Password

Delete User

Requires Authorization Bearer header with a valid JWT token corresponding to the userid.

DELETE /api/v1/users/{userid}

Clone this wiki locally