Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
549
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1. {
  2. "info": {
  3. "contact": {
  4. "email": "roman@1000mercis.com"
  5. },
  6. "description": "BLABLA",
  7. "title": "PLOP",
  8. "version": "42"
  9. },
  10. "paths": {
  11. "/example/{id}": {
  12. "get": {
  13. "operationId": "get_example",
  14. "parameters": [
  15. {
  16. "in": "path",
  17. "name": "id",
  18. "required": true,
  19. "type": "ObjectId"
  20. }
  21. ],
  22. "responses": {
  23. "405": {
  24. "description": "plop"
  25. }
  26. },
  27. "tags": [
  28. "example"
  29. ]
  30. },
  31. "patch": {
  32. "operationId": "patch_example",
  33. "parameters": [
  34. {
  35. "in": "path",
  36. "name": "id",
  37. "required": true,
  38. "type": "ObjectId"
  39. }
  40. ],
  41. "responses": {
  42. "405": {
  43. "description": "plop"
  44. }
  45. },
  46. "tags": [
  47. "example"
  48. ]
  49. },
  50. "put": {
  51. "operationId": "put_example",
  52. "parameters": [
  53. {
  54. "in": "path",
  55. "name": "id",
  56. "required": true,
  57. "type": "ObjectId"
  58. }
  59. ],
  60. "responses": {
  61. "405": {
  62. "description": "plop"
  63. }
  64. },
  65. "tags": [
  66. "example"
  67. ]
  68. }
  69. },
  70. "/examples": {
  71. "post": {
  72. "operationId": "post_examples",
  73. "parameters": [],
  74. "responses": {
  75. "405": {
  76. "description": "plop"
  77. }
  78. },
  79. "tags": [
  80. "example"
  81. ]
  82. }
  83. },
  84. "/examples/{id}/plop/{tata}": {
  85. "get": {
  86. "operationId": "get_examples",
  87. "parameters": [
  88. {
  89. "in": "path",
  90. "name": "id",
  91. "required": true,
  92. "type": "ObjectId"
  93. },
  94. {
  95. "in": "path",
  96. "name": "tata",
  97. "required": true,
  98. "type": "int"
  99. }
  100. ],
  101. "responses": {
  102. "405": {
  103. "description": "plop"
  104. }
  105. },
  106. "tags": [
  107. "example"
  108. ]
  109. }
  110. }
  111. },
  112. "swagger": "2.0",
  113. "tags": [
  114. {
  115. "name": "example"
  116. }
  117. ]
  118. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement