Advertisement
Guest User

Untitled

a guest
Jun 29th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. info:
  2. title: test
  3. version: 1.0.0
  4. consumes:
  5. - application/json
  6. produces:
  7. - application/json
  8. swagger: '2.0'
  9. securityDefinitions:
  10. keystone:
  11. description: OpenStack Keystone Authentication
  12. type: apiKey
  13. in: header
  14. name: x-auth-token
  15.  
  16. security: []
  17.  
  18. paths:
  19. /api/v1/clusters/:
  20. get:
  21. operationId: ListClusters
  22. summary: List available clusters
  23. responses:
  24. 200:
  25. description: OK
  26. schema:
  27. type: array
  28. items:
  29. $ref: '#/definitions/Cluster'
  30. security:
  31. - keystone: []
  32. post:
  33. operationId: CreateCluster
  34. summary: Create a cluster
  35. responses:
  36. 200:
  37. description: OK
  38. schema:
  39. $ref: '#/definitions/Cluster'
  40. parameters:
  41. - name: body
  42. in: body
  43. required: true
  44. schema:
  45. $ref: '#/definitions/Cluster'
  46. security:
  47. - keystone: []
  48.  
  49. definitions:
  50. Cluster:
  51. type: object
  52. properties:
  53. name:
  54. description: name of the cluster
  55. type: string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement