Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- openapi: 3.0.2
- info:
- title: Swagger hmnpf
- description: Сваггер для пенсионного фонда
- version: 1.0.0
- servers:
- - url: https://gl.hmnpf.ru:8181/api
- tags:
- - name: Account
- description: Контроллер для работы с аккаунтами
- externalDocs:
- description: Описание апи
- url: https://gl.hmnpf.ru:8181/Help/
- paths:
- /Account/Register:
- post:
- tags:
- - Account
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/RegisterBindingModel'
- responses:
- 200:
- description: Registation success
- default:
- description: "Error"
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /Account/Token:
- post:
- tags:
- - Account
- requestBody:
- required: true
- content:
- application/x-www-form-urlencoded:
- schema:
- $ref: '#/components/schemas/TokenForm'
- responses:
- 200:
- description: Auth success
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/AuthToken'
- default:
- description: "Error"
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- /Account/UserProfile:
- get:
- security:
- - bearerAuth: []
- tags:
- - Account
- responses:
- 200:
- description: Возвращает профайл пользователя
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/GetUserProfile'
- default:
- description: Ошибка
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- components:
- securitySchemes:
- bearerAuth:
- type: apiKey
- name: bearer
- in: header
- schemas:
- GetUserProfile:
- properties:
- FIO:
- type: string
- BirthDate:
- type: string
- Passport:
- type: string
- Phone:
- type: string
- Email:
- type: string
- AuthToken:
- properties:
- access_token:
- type: string
- token_type:
- type: string
- expires_in:
- type: integer
- refresh_token:
- type: string
- client_id:
- type: string
- userName:
- type: string
- .issued:
- type: string
- .expires:
- type: string
- RegisterBindingModel:
- required:
- - Email
- - Password
- properties:
- Email:
- type: string
- Password:
- type: string
- ConfirmPassword:
- type: string
- TokenForm:
- properties:
- grant_type:
- type: string
- client_id:
- type: string
- client_secret:
- type: string
- username:
- type: string
- password:
- type: string
- Error:
- properties:
- error:
- type: string
- error_description:
- type: string
- Message:
- type: string
- ModelState:
- $ref: '#/components/schemas/ErrorModel'
- ErrorModel:
- properties:
- model:
- type: array
- items:
- type: string
- model.Email:
- type: array
- items:
- type: string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement