openapi: 3.1.0
info:
  title: Auth API
  version: v3.2.1.1
  contact:
    name: API Support Group
    email: api@yellowdogsoftware.com
  description: |
    #  ![REST API logo](../resources/rest-api-cloud-logo.png)
    <hr/>
servers:
  - url: https://auth.yellowdogsoftware.com
    description: Production server
paths:
  /token:
    post:
      operationId: get-token
      summary: Get token via credential
      description: ''
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Json.Credential'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Json.GeneratedTokenResponse'
  /refreshToken:
    post:
      operationId: get-refreshtoken
      summary: Get token via refresh token
      description: ''
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Json.RefreshToken'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Json.GeneratedTokenResponse'
components:
  schemas:
    Json.Credential:
      type: object
      properties:
        clientId:
          type:
            - string
          example: ABC123
        userName:
          type:
            - string
          example: bi_dashboard_api_key
        password:
          type:
            - string
          example: xyz-123-abc-789-pqr
      additionalProperties: false
    Json.RefreshToken:
      type: object
      properties:
        message:
          type:
            - string
            - 'null'
      additionalProperties: false
    Json.GeneratedTokenResponse:
      type: object
      properties:
        message:
          type:
            - string
            - 'null'
      additionalProperties: false
