REST API

Master URI: https://auth.bageldb.com/api/public

Authorization: Added as authorization headers Authorization: Bearer <<API_TOKEN>>

Create User

  • Method: POST
  • Endpoint: /user
  • Request Body:
{ "email": "example@test.com", "password": "123456" }

1
2
  • Expected Response: 201 - Created
  • Response Body:
{
  "access_token": "",
  "refresh_token": "",
  "user_id": ""
}

1
2
3
4
5
6

Login User

  • Method: POST
  • Endpoint: /user/verify
  • Request Body:
{ "email": "example@test.com", "password": "123456" }

1
2
  • Expected Response: 200 - OK
  • Response Body:
{
  "access_token": "",
  "refresh_token": "",
  "user_id": ""
}

1
2
3
4
5
6

Refresh User

Method: POST

Endpoint: /user/token

Request Body:

`grant_type=refresh_token&refresh_token=${RefreshToken}&client_id=project-client`;

1
2

Expected Response: 200 - OK

Get User Meta Info

Method: GET Endpoint: /user

Expected Response: 20O - OK

  • Response Body:
{}

1
2

User Admin - Reset Password

API Token must have User Admin permissions

  • Method: POST
  • Endpoint: /user/updatePassword
  • Request Body:
{ "email": "example@test.com", "password": "ThisIsTheUpdatedPassword" }

1
2
  • Expected Response: 200 - OK
Last Updated:
Contributors: nallon