post:
  summary: Logs previously registered user in
  operationId: rest.auth.login.post
  requestBody:
    required: true
    content:
      application/json:
        schema:
          $ref: '../components/components.yaml#/components/requestBodies/loginBody'
  responses:
    200:
      description: Successfull login
      content:
        application/json:
          schema:
            type: object
            required:
              - token
              - user_id
            properties:
              token:
                type: string
                description: JWT Token
              user_id:
                type: string
                description: User ID
    404:
      $ref: '../components/components.yaml#/components/responses/404NotFound'
    default:
      $ref: '../components/components.yaml#/components/responses/UnexpectedError'