Skip to content
Alex O. Karasulu edited this page Mar 9, 2018 · 2 revisions
swagger: '2.0'
info:
  title: Console API
  description: Subutai Console API
  version: "1.0.0"
host: localhost:9999
schemes:
  - https
basePath: /
paths:
  /login:
    post:
      summary: Authenticate
      description:
        The endpoint allows client to authenticate with Console
      tags:
        - Auth
        - Login
      consumes:
      - application/x-www-form-urlencoded        
      parameters:
        - name: username
          in: formData
          description: username
          required: true
          type: string
        - name: password
          in: formData
          description: user password
          required: true
          type: string          
      responses:
        200:
          description: Client authenticated successfully. Response contains cookie named sptoken that should be present in all subsequent requests!
        default:
          description: Unexpected error
          schema:
            $ref: '#/definitions/Error'

definitions:

  Error:
    type: object
    properties:
      error:
        type: string
Clone this wiki locally