Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- swagger: '2.0'
- info:
- version: v1
- title: Authorization API
- paths:
- /api/Authentication/login:
- post:
- tags:
- - Authentication
- operationId: Login
- consumes:
- - application/json-patch+json
- - application/json
- - text/json
- - application/*+json
- produces: []
- parameters:
- - name: loginRequest
- in: body
- required: false
- schema:
- $ref: '#/definitions/LoginRequestDto'
- responses:
- '200':
- description: Success
- /api/Authentication/loginas:
- post:
- tags:
- - Authentication
- operationId: LoginAs
- consumes:
- - application/json-patch+json
- - application/json
- - text/json
- - application/*+json
- produces: []
- parameters:
- - name: loginAsDto
- in: body
- required: false
- schema:
- $ref: '#/definitions/LoginAsDto'
- responses:
- '200':
- description: Success
- /api/Authentication/twofactorverify:
- post:
- tags:
- - Authentication
- operationId: TwoFactorVerify
- consumes:
- - application/json-patch+json
- - application/json
- - text/json
- - application/*+json
- produces: []
- parameters:
- - name: twoFactorRequest
- in: body
- required: false
- schema:
- $ref: '#/definitions/TwoFactorVerifyDto'
- responses:
- '200':
- description: Success
- /api/Authentication/.well-known/fake-openid-configuration:
- get:
- tags:
- - Authentication
- operationId: GetFakeOpenIdConfig
- consumes: []
- produces: []
- parameters: []
- responses:
- '200':
- description: Success
- /api/Authentication/forgotpassword:
- post:
- tags:
- - Authentication
- operationId: ForgotPassword
- consumes:
- - application/json-patch+json
- - application/json
- - text/json
- - application/*+json
- produces: []
- parameters:
- - name: request
- in: body
- required: false
- schema:
- $ref: '#/definitions/ForgotPasswordDto'
- responses:
- '200':
- description: Success
- /api/Authentication/initresetpassword:
- post:
- tags:
- - Authentication
- operationId: InitResetPassword
- consumes:
- - application/json-patch+json
- - application/json
- - text/json
- - application/*+json
- produces: []
- parameters:
- - name: request
- in: body
- required: false
- schema:
- $ref: '#/definitions/InitResetPasswordRequest'
- responses:
- '200':
- description: Success
- /api/Authentication/resetpassword:
- post:
- tags:
- - Authentication
- operationId: ResetPassword
- consumes:
- - application/json-patch+json
- - application/json
- - text/json
- - application/*+json
- produces: []
- parameters:
- - name: resetPasswordDto
- in: body
- required: false
- schema:
- $ref: '#/definitions/ResetPasswordDto'
- responses:
- '200':
- description: Success
- /api/Role:
- get:
- tags:
- - Role
- operationId: GetAll
- consumes: []
- produces:
- - application/json
- parameters: []
- responses:
- '200':
- description: Success
- schema:
- uniqueItems: false
- type: array
- items:
- $ref: '#/definitions/RoleDto'
- post:
- tags:
- - Role
- operationId: Post
- consumes:
- - application/json-patch+json
- - application/json
- - text/json
- - application/*+json
- produces:
- - application/json
- parameters:
- - name: role
- in: body
- required: false
- schema:
- $ref: '#/definitions/RoleDto'
- responses:
- '201':
- description: Success
- schema:
- $ref: '#/definitions/RoleDto'
- '500':
- description: Server Error
- schema:
- uniqueItems: false
- type: array
- items:
- type: string
- '/api/Role/{id}':
- get:
- tags:
- - Role
- operationId: Get
- consumes: []
- produces:
- - application/json
- parameters:
- - name: id
- in: path
- required: true
- type: string
- format: uuid
- responses:
- '200':
- description: Success
- schema:
- $ref: '#/definitions/RoleDto'
- '404':
- description: Not Found
- schema:
- $ref: '#/definitions/ProblemDetails'
- delete:
- tags:
- - Role
- operationId: Delete
- consumes: []
- produces:
- - application/json
- parameters:
- - name: id
- in: path
- required: true
- type: string
- format: uuid
- responses:
- '204':
- description: Success
- '404':
- description: Not Found
- schema:
- $ref: '#/definitions/ProblemDetails'
- '500':
- description: Server Error
- schema:
- uniqueItems: false
- type: array
- items:
- type: string
- patch:
- tags:
- - Role
- operationId: Patch
- consumes:
- - application/json-patch+json
- - application/json
- - text/json
- - application/*+json
- produces:
- - application/json
- parameters:
- - name: id
- in: path
- required: true
- type: string
- format: uuid
- - name: update
- in: body
- required: false
- schema:
- uniqueItems: false
- type: array
- items:
- $ref: '#/definitions/Operation'
- responses:
- '204':
- description: Success
- '404':
- description: Not Found
- schema:
- $ref: '#/definitions/ProblemDetails'
- '500':
- description: Server Error
- schema:
- uniqueItems: false
- type: array
- items:
- type: string
- '/api/User/{userId}/roles':
- get:
- tags:
- - User
- operationId: GetRolesForUser
- consumes:
- - application/json
- produces:
- - application/json
- parameters:
- - name: userId
- in: path
- required: true
- type: string
- responses:
- '200':
- description: Success
- schema:
- uniqueItems: false
- type: array
- items:
- $ref: '#/definitions/T'
- '204':
- description: Success
- post:
- tags:
- - User
- operationId: AddToRoles
- consumes:
- - application/json
- produces:
- - application/json
- parameters:
- - name: userId
- in: path
- required: true
- type: string
- format: uuid
- - name: roles
- in: body
- required: false
- schema:
- uniqueItems: false
- type: array
- items:
- $ref: '#/definitions/RoleDto'
- responses:
- '204':
- description: Success
- '500':
- description: Server Error
- schema:
- uniqueItems: false
- type: array
- items:
- type: string
- '/api/User/{userId}/roles/{roleId}':
- delete:
- tags:
- - User
- operationId: DeleteRoleFromUser
- consumes:
- - application/json
- produces:
- - application/json
- parameters:
- - name: userId
- in: path
- required: true
- type: string
- - name: roleId
- in: path
- required: true
- type: string
- format: uuid
- responses:
- '204':
- description: Success
- '404':
- description: Not Found
- schema:
- type: string
- '500':
- description: Server Error
- schema:
- uniqueItems: false
- type: array
- items:
- type: string
- '/api/User/{userId}/roles/delete':
- post:
- tags:
- - User
- operationId: DeleteRolesFromUser
- consumes:
- - application/json
- produces:
- - application/json
- parameters:
- - name: userId
- in: path
- required: true
- type: string
- - name: deleteRolesDto
- in: body
- required: false
- schema:
- uniqueItems: false
- type: array
- items:
- $ref: '#/definitions/RoleDto'
- responses:
- '204':
- description: Success
- '404':
- description: Not Found
- schema:
- type: string
- '500':
- description: Server Error
- schema:
- uniqueItems: false
- type: array
- items:
- type: string
- /api/User:
- get:
- tags:
- - User
- operationId: GetAll
- consumes:
- - application/json
- produces:
- - application/json
- parameters: []
- responses:
- '200':
- description: Success
- schema:
- uniqueItems: false
- type: array
- items:
- $ref: '#/definitions/UserDto'
- post:
- tags:
- - User
- operationId: Create
- consumes:
- - application/json
- produces:
- - application/json
- parameters:
- - name: userDto
- in: body
- required: false
- schema:
- $ref: '#/definitions/UserDto'
- responses:
- '200':
- description: Success
- schema:
- $ref: '#/definitions/UserDto'
- '500':
- description: Server Error
- schema:
- uniqueItems: false
- type: array
- items:
- type: string
- '/api/User/{userId}':
- get:
- tags:
- - User
- operationId: GetById
- consumes:
- - application/json
- produces:
- - application/json
- parameters:
- - name: id
- in: query
- required: false
- type: string
- - name: userId
- in: path
- required: true
- type: string
- responses:
- '200':
- description: Success
- schema:
- $ref: '#/definitions/UserDto'
- '404':
- description: Not Found
- schema:
- $ref: '#/definitions/ProblemDetails'
- patch:
- tags:
- - User
- operationId: Update
- consumes:
- - application/json
- produces:
- - application/json
- parameters:
- - name: userId
- in: path
- required: true
- type: string
- - name: user
- in: body
- required: false
- schema:
- uniqueItems: false
- type: array
- items:
- $ref: '#/definitions/Operation'
- responses:
- '200':
- description: Success
- schema:
- $ref: '#/definitions/UserDto'
- '404':
- description: Not Found
- schema:
- $ref: '#/definitions/ProblemDetails'
- '/api/User/{userId}/claims':
- get:
- tags:
- - User
- operationId: GetUserClaims
- consumes:
- - application/json
- produces:
- - application/json
- parameters:
- - name: userId
- in: path
- required: true
- type: string
- responses:
- '200':
- description: Success
- schema:
- uniqueItems: false
- type: array
- items:
- $ref: '#/definitions/Claim'
- '404':
- description: Not Found
- schema:
- $ref: '#/definitions/ProblemDetails'
- post:
- tags:
- - User
- operationId: AddClaimsToUser
- consumes:
- - application/json
- produces:
- - application/json
- parameters:
- - name: userId
- in: path
- required: true
- type: string
- - name: claims
- in: body
- required: false
- schema:
- uniqueItems: false
- type: array
- items:
- $ref: '#/definitions/ClaimDto'
- responses:
- '204':
- description: Success
- '404':
- description: Not Found
- schema:
- $ref: '#/definitions/ProblemDetails'
- '500':
- description: Server Error
- schema:
- uniqueItems: false
- type: array
- items:
- type: string
- '/api/User/{userId}/claims/remove':
- post:
- tags:
- - User
- operationId: RemoveClaimsAsync
- consumes:
- - application/json
- produces:
- - application/json
- parameters:
- - name: userId
- in: path
- required: true
- type: string
- - name: claimsToRemove
- in: body
- required: false
- schema:
- uniqueItems: false
- type: array
- items:
- $ref: '#/definitions/ClaimDto'
- responses:
- '204':
- description: Success
- '404':
- description: Not Found
- schema:
- $ref: '#/definitions/ProblemDetails'
- '500':
- description: Server Error
- schema:
- uniqueItems: false
- type: array
- items:
- type: string
- definitions:
- LoginRequestDto:
- required:
- - email
- type: object
- properties:
- email:
- type: string
- password:
- type: string
- rememberMe:
- type: boolean
- LoginAsDto:
- required:
- - claim
- - value
- - email
- type: object
- properties:
- claim:
- type: string
- value:
- type: string
- email:
- type: string
- reason:
- type: string
- TwoFactorVerifyDto:
- type: object
- properties:
- email:
- type: string
- password:
- type: string
- rememberMe:
- type: boolean
- code:
- type: string
- ForgotPasswordDto:
- type: object
- properties:
- email:
- type: string
- returnUrl:
- type: string
- InitResetPasswordRequest:
- required:
- - token
- type: object
- properties:
- token:
- format: uuid
- type: string
- ResetPasswordDto:
- required:
- - token
- - password
- - password2
- type: object
- properties:
- token:
- format: uuid
- type: string
- password:
- type: string
- password2:
- type: string
- RoleDto:
- required:
- - name
- type: object
- properties:
- name:
- type: string
- ProblemDetails:
- type: object
- properties:
- type:
- type: string
- title:
- type: string
- status:
- format: int32
- type: integer
- detail:
- type: string
- instance:
- type: string
- additionalProperties:
- type: object
- Operation:
- type: object
- properties:
- value:
- type: object
- path:
- type: string
- op:
- type: string
- from:
- type: string
- T:
- type: object
- properties: {}
- UserDto:
- type: object
- properties:
- firstName:
- type: string
- email:
- type: string
- lastName:
- type: string
- username:
- type: string
- password:
- type: string
- Claim:
- type: object
- properties:
- issuer:
- type: string
- readOnly: true
- originalIssuer:
- type: string
- readOnly: true
- properties:
- type: object
- additionalProperties:
- type: string
- readOnly: true
- subject:
- $ref: '#/definitions/ClaimsIdentity'
- readOnly: true
- type:
- type: string
- readOnly: true
- value:
- type: string
- readOnly: true
- valueType:
- type: string
- readOnly: true
- ClaimsIdentity:
- type: object
- properties:
- authenticationType:
- type: string
- readOnly: true
- isAuthenticated:
- type: boolean
- readOnly: true
- actor:
- $ref: '#/definitions/ClaimsIdentity'
- bootstrapContext:
- type: object
- claims:
- uniqueItems: false
- type: array
- items:
- $ref: '#/definitions/Claim'
- readOnly: true
- label:
- type: string
- name:
- type: string
- readOnly: true
- nameClaimType:
- type: string
- readOnly: true
- roleClaimType:
- type: string
- readOnly: true
- ClaimDto:
- required:
- - claimType
- - claimValue
- type: object
- properties:
- claimType:
- type: string
- claimValue:
- type: string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement