Advertisement
ioggstream

openapi-sample.yaml

Apr 5th, 2018
123
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. email: robipolli@gmail.com
  25. name: Roberto Polli
  26. url: https://twitter.com/ioggstream
  27. x-audience: |
  28. Definire qui l'audience delle API
  29. x-api-id: b9ec7026-5da5-4db6-a959-fce72db5de64
  30. license:
  31. name: Apache 2.0
  32. url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
  33. tags:
  34. - name: admins
  35. description: Create and update dictionaries
  36. - name: public
  37. description: Retrieve dictionaries
  38. servers:
  39. # Added by API Auto Mocking Plugin
  40. - description: SwaggerHub API Auto Mocking
  41. url: https://virtserver.swaggerhub.com/robipolli/core-vocabularies/0.0.1
  42.  
  43. paths:
  44. /dictionaries:
  45. get:
  46. summary: Get informations about provided dictionaries.
  47. description: |
  48. Shows a list of supported dictionaries.
  49. operationId: getDictionaries
  50. tags:
  51. - public
  52. responses:
  53. '200':
  54. description: |
  55. A list of Dictionaries.
  56. headers:
  57. X-Rate-Limit-Reset:
  58. $ref: '#/components/headers/X-Limit'
  59. X-Test:
  60. $ref: 'https://teamdigitale.github.io/openapi/headers/v3.yaml#X-Rate-Limit-Reset'
  61. content:
  62. application/json:
  63. schema:
  64. object
  65. components:
  66. headers:
  67. X-Limit:
  68. description: The number of remaining requests in the current period
  69. schema:
  70. type: integer
  71. format: int32
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement