{
  "swagger": "2.0",
  "info": {
    "description": "Api Definition for login",
    "version": "1.0.0",
    "title": "Swagger Login"
  },
  "host": "localhost:8443",
  "tags": [
    {
      "name": "Login",
      "description": "login"
    }
  ],
  "schemes": [
    "https",
    "http"
  ],
  "paths": {
    "/api-ops/login": {
      "post": {
        "tags": [
          "Login"
        ],
        "summary": "Login on the platform",
        "description": "",
        "consumes": [
          "application/json"
        ],
        "produces": [
          "application/json"
        ],
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "description": "User data",
            "required": true,
            "schema": {
              "$ref": "#/definitions/User"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Correct Answer",
            "schema": {
              "$ref": "#/definitions/Response"
            }
          },
          "400": {
            "description": "Bad Request"
          }
        }
      }
    }
  },
  "definitions": {
    "User": {
      "type": "object",
      "required": [
        "*"
      ],
      "properties": {
        "user": {
          "type": "string"
        },
        "password": {
          "type": "string"
        }
      }
    },
    "Response": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "access_token": {
          "type": "string"
        }
      }
    }
  }
}
