tigrOAS.yaml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. openapi: 3.0.1
  2. info:
  3. title: TIGRO
  4. description: Explore occurrences, co-occurrences and textual contexts of forms and lems in a corpus which is defined externally.
  5. version: 1.0.0
  6. servers:
  7. - url: 'http://192.168.10.245'
  8. paths:
  9. /simple_get_query:
  10. post:
  11. summary: Submit a simple query.
  12. description: Submit a simple query in a simple way.
  13. requestBody:
  14. required: true
  15. content:
  16. application/json:
  17. schema:
  18. type: object
  19. properties:
  20. queryList:
  21. type: array
  22. items:
  23. type: object
  24. properties:
  25. stringa:
  26. type: string
  27. espansa:
  28. type: integer
  29. raddoppiata:
  30. type: integer
  31. tipo:
  32. type: string
  33. responses:
  34. '200':
  35. description: OK
  36. content:
  37. application/json:
  38. schema:
  39. type: array
  40. items:
  41. type: object
  42. properties:
  43. cod:
  44. type: integer
  45. forma:
  46. type: string
  47. lemma:
  48. type: string
  49. cat_gr:
  50. type: string
  51. disambiguatore:
  52. type: string
  53. occ:
  54. type: integer
  55. '400':
  56. description: Bad request
  57. '500':
  58. description: Internal server error
  59. components:
  60. schemas:
  61. Query:
  62. type: object
  63. properties:
  64. cod:
  65. type: integer
  66. forma:
  67. type: string
  68. lemma:
  69. type: string
  70. cat_gr:
  71. type: string
  72. disambiguatore:
  73. type: string
  74. occ:
  75. type: integer
  76. required:
  77. - cod
  78. - occ