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

User related endpoints

1. Create User

POST /api/v1/users

Expected Parameters:

  • Email
  • Password

Returns:

  • ID

2. Login

POST /api/v1/users/login

Expected Parameters:

  • Email
  • Password

Returns:

  • Token (JWT)

3. 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

4. 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

5. 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

6. Delete User

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

DELETE /api/v1/users/{userid}

Clone this wiki locally