openapi.yaml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. openapi: 3.0.0
  2. info:
  3. title: Flask API
  4. version: 1.0.0
  5. paths:
  6. /simple_get_query:
  7. post:
  8. summary: Basic queries
  9. requestBody:
  10. required: true
  11. content:
  12. application/json:
  13. schema:
  14. type: object
  15. properties:
  16. queryList:
  17. type: array
  18. items:
  19. type: string
  20. cooccorrenze:
  21. type: boolean
  22. responses:
  23. '200':
  24. description: Successful response
  25. '500':
  26. description: Internal server error
  27. /get_context:
  28. post:
  29. summary: Call function for multiple contexts
  30. requestBody:
  31. required: true
  32. content:
  33. application/json:
  34. schema:
  35. type: object
  36. properties:
  37. queryList:
  38. type: array
  39. items:
  40. type: string
  41. listResults:
  42. type: array
  43. items:
  44. type: object
  45. required:
  46. - queryList
  47. - listResults
  48. responses:
  49. '200':
  50. description: Successful response
  51. '500':
  52. description: Internal server error
  53. /get_single_context:
  54. post:
  55. summary: Call function for single context
  56. requestBody:
  57. required: true
  58. content:
  59. application/json:
  60. schema:
  61. type: object
  62. properties:
  63. elem:
  64. type: string
  65. params:
  66. type: object
  67. required:
  68. - elem
  69. - params
  70. responses:
  71. '200':
  72. description: Successful response
  73. '500':
  74. description: Internal server error