ginsul

Untitled

Apr 12th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.62 KB | None | 0 0
  1. swagger: '2.0'
  2. info:
  3.   version: 0.0.0
  4.   title: ObjectSpec
  5.  
  6. definitions:
  7.   ObjectMeta:
  8.     properties:
  9.       createdOn:
  10.         type: string
  11.         format: date-time
  12.         readOnly: true
  13.   Object:
  14.     allOf:
  15.       - $ref: '#/definitions/ObjectMeta'
  16.     type: object
  17.     properties:
  18.       objectId:
  19.         type: string
  20.  
  21. paths:
  22.   '/objects':
  23.     get:
  24.       operationId: getObject
  25.       produces:
  26.        - application/json
  27.       consumes:
  28.        - application/json
  29.       responses:
  30.         '200':
  31.           description: successful operation
  32.           schema:
  33.             $ref: '#/definitions/Object'
Advertisement
Add Comment
Please, Sign In to add comment