Auth
post/auth/login

Request

  • Base URL: http://localhost:7460/api/v1
  • URL: http://localhost:7460/api/v1/auth/login
  • Auth: none declared

Request body

emailstring email required
passwordstring password required

Example request

{
  "email": "user@example.com",
  "password": "password"
}

Response

Login successful

tokenstring

Example response

{
  "user": {
    "id": 1,
    "name": "John Doe",
    "email": "user@example.com"
  },
  "token": "1|abc123..."
}

Changes

    • breaking

      the response's property type changed from object to no type for status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • info

      added to the response property allOf list for the response status