Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- swagger: '2.0'
- info:
- version: 0.0.1
- paths:
- /user/Save:
- post:
- tags:
- - user
- summary: Register user
- description: ''
- operationId: Save
- consumes:
- - application/json
- produces:
- - application/json
- parameters:
- - in: body
- name: body
- description: User details
- required: true
- schema:
- $ref: '#/definitions/Credentials
- responses:
- '200':
- description: Message
- schema:
- $ref: '#/definitions/Message'
- headers:
- Access-Control-Allow-Origin:
- type: string
- /user/forgotpassword:
- get:
- tags:
- - user
- summary: forgot password
- description: forgot password
- operationId: forgotPassword
- consumes:
- - application/json
- produces:
- - application/json
- parameters:
- - name: email
- in: query
- required: true
- description: User email
- type: string
- responses:
- '200':
- description: Message
- schema:
- $ref: '#/definitions/Message'
- headers:
- Access-Control-Allow-Origin:
- type: string
- /user/login:
- post:
- tags:
- - user
- summary: Logs user into the system
- description: ''
- operationId: userLogin
- produces:
- - application/json
- parameters:
- - in: body
- name: body
- description: User login details
- required: true
- schema:
- $ref: '#/definitions/User
- responses:
- '200':
- $ref: "#/definitions/ProfileResponse"
- securityDefinitions:
- api_key:
- type: apiKey
- name: Authorization
- in: header
- definitions:
- Credentials:
- type: object
- properties:
- firstName:
- type: string
- lastName:
- type: string
- email:
- type: string
- password:
- type: string
- format: password
- company:
- type: string
- User:
- type: object
- properties:
- login:
- type: string
- passsword:
- type: string
- Message:
- type: object
- properties:
- text:
- type: string
- type:
- type: string
- ProfileResponse:
- type: object
- properties:
- id:
- type: number
- name:
- type: string
- text:
- type: string
- type:
- type: string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement