SHARE
TWEET

Untitled

a guest Jun 18th, 2019 123 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. swagger: '2.0'
  2. info:
  3. version: 0.0.1
  4.  
  5. paths:
  6.   /user/Save:
  7.     post:
  8.       tags:
  9.         - user
  10.       summary: Register user
  11.       description: ''
  12.       operationId: Save
  13.       consumes:
  14.         - application/json
  15.       produces:
  16.         - application/json
  17.       parameters:
  18.         - in: body
  19.           name: body
  20.           description: User details
  21.           required: true
  22.           schema:
  23.             $ref: '#/definitions/Credentials
  24.           responses:
  25.             '200':
  26.               description: Message
  27.               schema:
  28.                 $ref: '#/definitions/Message'
  29.               headers:
  30.                 Access-Control-Allow-Origin:
  31.                   type: string
  32.         /user/forgotpassword:
  33.         get:
  34.           tags:
  35.             - user
  36.           summary: forgot password
  37.           description: forgot password
  38.           operationId: forgotPassword
  39.           consumes:
  40.             - application/json
  41.           produces:
  42.             - application/json
  43.           parameters:
  44.             - name: email
  45.               in: query
  46.               required: true
  47.               description: User email
  48.               type: string
  49.           responses:
  50.             '200':
  51.               description: Message
  52.               schema:
  53.                 $ref: '#/definitions/Message'
  54.               headers:
  55.                 Access-Control-Allow-Origin:
  56.                   type: string
  57.  
  58.       /user/login:
  59.         post:
  60.           tags:
  61.             - user
  62.           summary: Logs user into the system
  63.           description: ''
  64.           operationId: userLogin
  65.           produces:
  66.             - application/json
  67.           parameters:
  68.             - in: body
  69.               name: body
  70.               description: User login details
  71.               required: true
  72.               schema:
  73.                 $ref: '#/definitions/User
  74.              responses:
  75.             '200':
  76.                 $ref: "#/definitions/ProfileResponse"
  77.  
  78.  
  79.     securityDefinitions:
  80.       api_key:
  81.         type: apiKey
  82.         name: Authorization
  83.         in: header
  84.  
  85.     definitions:
  86.       Credentials:
  87.         type: object
  88.         properties:
  89.           firstName:
  90.             type: string
  91.           lastName:
  92.             type: string
  93.           email:
  94.             type: string
  95.           password:
  96.             type: string
  97.             format: password
  98.           company:
  99.             type: string
  100.       User:
  101.         type: object
  102.         properties:
  103.           login:
  104.             type: string
  105.           passsword:
  106.             type: string
  107.  
  108.      Message:
  109.         type: object
  110.         properties:
  111.           text:
  112.             type: string
  113.           type:
  114.             type: string
  115.       ProfileResponse:
  116.         type: object
  117.         properties:
  118.           id:
  119.             type: number
  120.           name:
  121.             type: string
  122.          text:
  123.             type: string
  124.           type:
  125.             type: string
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top