openapi: 3.0.0
info:
  title: Example API
  version: 1.0.0

paths:
  /login:
    post:
      summary: User login
      description: Authenticates a user with a username and password using `application/x-www-form-urlencoded`.
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                username:
                  type: string
                  description: The username of the user
                password:
                  type: string
                  format: password
                  description: The user's password
      responses:
        "200":
          description: Login successful
        "400":
          description: Invalid request
