README.md

Getting Started

Sending request

For authentication via auth-server:

  • You should send request for endpoint: POST http://localhost:8080/user/auth with the following request body:
{
    "username": "danielle",
    "password": "12345"
}
  • Then you should check database table OTP and find actual code
  • Put that code into next request to another endpoint: POST http://localhost:8080/otp/check with the following request body:
{
    "username": "danielle",
    "code": 1234
}
  • You are logged in now!

Another endpoints

  • You can add new user by sending request to POST http://localhost:8080/user/add with the following request body:
{
    "username": "danielle",
    "password": "12345"
}
Конвейеры
0 успешных
0 с ошибкой