ioggstream

openapi-sample.yaml

Apr 5th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 KB | None | 0 0
  1. openapi: 3.0.0
  2. info:
  3. version: "0.0.1"
  4. title: |
  5. Core Vocabularies API
  6. description: |
  7. Dictionaries are versioned key-value store that you can
  8. retrieve via API. For each dictionary you can:
  9. - get metadata infos
  10. - retrieve a paged subset
  11. - get a single entry via an unique key
  12. - find entries by a given key (which could not be unique)
  13.  
  14. Dictionary structure is the following:
  15. - Dictionary: has a single name and many versions
  16. - Table: it's a specific version of a dictionary. May
  17. expire
  18. - Entry: it's the actual data contained in a table.
  19.  
  20. Despite http://zalando.github.io/restful-api-guidelines/index.html#160
  21. we use pagination as it's more intuitive for this use case.
  22. termsOfService: 'http://swagger.io/terms/'
  23. contact:
  24. name: Roberto Polli
  25. url: https://twitter.com/ioggstream
  26. x-audience: |
  27. Definire qui l'audience delle API
  28. x-api-id: b9ec7026-5da5-4db6-a959-fce72db5de64
  29. license:
  30. name: Apache 2.0
  31. url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
  32. tags:
  33. - name: admins
  34. description: Create and update dictionaries
  35. - name: public
  36. description: Retrieve dictionaries
  37. servers:
  38. # Added by API Auto Mocking Plugin
  39. - description: SwaggerHub API Auto Mocking
  40. url: https://virtserver.swaggerhub.com/robipolli/core-vocabularies/0.0.1
  41.  
  42. paths:
  43. /dictionaries:
  44. get:
  45. summary: Get informations about provided dictionaries.
  46. description: |
  47. Shows a list of supported dictionaries.
  48. operationId: getDictionaries
  49. tags:
  50. - public
  51. responses:
  52. '200':
  53. description: |
  54. A list of Dictionaries.
  55. headers:
  56. X-Rate-Limit-Reset:
  57. $ref: '#/components/headers/X-Limit'
  58. X-Test:
  59. $ref: 'https://teamdigitale.github.io/openapi/headers/v3.yaml#X-Rate-Limit-Reset'
  60. content:
  61. application/json:
  62. schema:
  63. object
  64. components:
  65. headers:
  66. X-Limit:
  67. description: The number of remaining requests in the current period
  68. schema:
  69. type: integer
  70. format: int32
Advertisement
Add Comment
Please, Sign In to add comment