Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.17 KB | None | 0 0
  1. openapi: 3.0.0
  2. servers:
  3. - description: X5 MRM API
  4. url: https://virtserver.swaggerhub.com/igor1624/X5_MRM_API/1.0.0
  5. info:
  6. description: This is a simple API
  7. version: "1.0.0"
  8. title: X5 MRM API
  9. contact:
  10. email: you@your-company.com
  11. license:
  12. name: Apache 2.0
  13. url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
  14. tags:
  15. - name: admins
  16. description: Secured Admin-only calls
  17. - name: developers
  18. description: Operations available to regular developers
  19. paths:
  20. /monitor131:
  21. get:
  22. tags:
  23. - developers
  24. summary: searches inventory
  25. operationId: searchInventory
  26. description: |
  27. By passing in the appropriate options, you can search for
  28. available inventory in the system
  29. parameters:
  30. - in: query
  31. name: searchString
  32. description: pass an optional search string for looking up inventory
  33. required: false
  34. schema:
  35. type: string
  36. - in: query
  37. name: skip
  38. description: number of records to skip for pagination
  39. schema:
  40. type: integer
  41. format: int32
  42. minimum: 0
  43. - in: query
  44. name: limit
  45. description: maximum number of records to return
  46. schema:
  47. type: integer
  48. format: int32
  49. minimum: 0
  50. maximum: 50
  51. responses:
  52. '200':
  53. description: search results matching criteria
  54. content:
  55. application/json:
  56. schema:
  57. type: array
  58. items:
  59. $ref: '#/components/schemas/InventoryItem'
  60. '400':
  61. description: bad input parameter
  62. post:
  63. tags:
  64. - admins
  65. summary: adds an inventory item
  66. operationId: addInventory
  67. description: Adds an item to the system
  68. responses:
  69. '201':
  70. description: item created
  71. '400':
  72. description: 'invalid input, object invalid'
  73. '409':
  74. description: an existing item already exists
  75. requestBody:
  76. content:
  77. application/json:
  78. schema:
  79. $ref: '#/components/schemas/InventoryItem'
  80. description: Inventory item to add
  81. components:
  82. schemas:
  83. InventoryItem:
  84. type: object
  85. required:
  86. - id
  87. - name
  88. - manufacturer
  89. - releaseDate
  90. properties:
  91. id:
  92. type: string
  93. format: uuid
  94. example: d290f1ee-6c54-4b01-90e6-d701748f0851
  95. name:
  96. type: string
  97. example: Widget Adapter
  98. releaseDate:
  99. type: string
  100. format: date-time
  101. example: '2016-08-29T09:12:33.001Z'
  102. manufacturer:
  103. $ref: '#/components/schemas/Manufacturer'
  104. Manufacturer:
  105. required:
  106. - name
  107. properties:
  108. name:
  109. type: string
  110. example: ACME Corporation
  111. homePage:
  112. type: string
  113. format: url
  114. example: 'https://www.acme-corp.com'
  115. phone:
  116. type: string
  117. example: 408-867-5309
  118. type: object
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement