Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.59 KB | None | 0 0
  1. "/auth/login": {
  2.       "post": {
  3.         "tags": [
  4.           "Authentication"
  5.         ],
  6.         "summary": "Authenticatoin endpoint for users to login. If login is successfull, session key is generated which is used in all other authenticated calls.",
  7.         "operationId": "LoginAsync",
  8.         "consumes": [
  9.           "multipart/form-data"
  10.         ],
  11.         "produces": [
  12.           "application/json"
  13.         ],
  14.         "parameters": [
  15.           {
  16.             "name": "login",
  17.             "in": "formData",
  18.             "description": "Login",
  19.             "required": false,
  20.             "type": "string"
  21.           },
  22.           {
  23.             "name": "password",
  24.             "in": "formData",
  25.             "description": "Password",
  26.             "required": false,
  27.             "type": "string"
  28.           },
  29.           {
  30.             "name": "X-AppVersion",
  31.             "in": "header",
  32.             "description": "",
  33.             "required": false,
  34.             "type": "string"
  35.           }
  36.         ],
  37.         "responses": {
  38.           "200": {
  39.             "description": "Success",
  40.             "schema": {
  41.               "$ref": "#/definitions/ConfidentialSessionInfo"
  42.             }
  43.           },
  44.           "400": {
  45.             "description": "Bad Request",
  46.             "schema": {
  47.               "$ref": "#/definitions/ProblemDetails"
  48.             }
  49.           },
  50.           "401": {
  51.             "description": "Unauthorized",
  52.             "schema": {
  53.               "$ref": "#/definitions/ProblemDetails"
  54.             }
  55.           }
  56.         },
  57.         "deprecated": false
  58.       }
  59.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement