|
@@ -0,0 +1,79 @@
|
|
|
+openapi: 3.0.1
|
|
|
+info:
|
|
|
+ title: TIGRO
|
|
|
+ description: Explore lemmas.
|
|
|
+ version: 1.0.0
|
|
|
+servers:
|
|
|
+ - url: 'https://localhost'
|
|
|
+paths:
|
|
|
+ /simple_get_query:
|
|
|
+ post:
|
|
|
+ summary: Submit a simple query.
|
|
|
+ description: Submit a simple query in a simple way.
|
|
|
+
|
|
|
+ requestBody:
|
|
|
+ required: true
|
|
|
+ content:
|
|
|
+ application/json:
|
|
|
+ schema:
|
|
|
+ type: object
|
|
|
+ properties:
|
|
|
+ queryList:
|
|
|
+ type: array
|
|
|
+ items:
|
|
|
+ type: object
|
|
|
+ properties:
|
|
|
+ stringa:
|
|
|
+ type: string
|
|
|
+ espansa:
|
|
|
+ type: integer
|
|
|
+ raddoppiata:
|
|
|
+ type: integer
|
|
|
+ tipo:
|
|
|
+ type: string
|
|
|
+ responses:
|
|
|
+ '200':
|
|
|
+ description: OK
|
|
|
+ content:
|
|
|
+ application/json:
|
|
|
+ schema:
|
|
|
+ type: array
|
|
|
+ items:
|
|
|
+ type: object
|
|
|
+ properties:
|
|
|
+ cod:
|
|
|
+ type: integer
|
|
|
+ forma:
|
|
|
+ type: string
|
|
|
+ lemma:
|
|
|
+ type: string
|
|
|
+ cat_gr:
|
|
|
+ type: string
|
|
|
+ disambiguatore:
|
|
|
+ type: string
|
|
|
+ occ:
|
|
|
+ type: integer
|
|
|
+ '400':
|
|
|
+ description: Errore nella richiesta
|
|
|
+ '500':
|
|
|
+ description: Errore del server
|
|
|
+components:
|
|
|
+ schemas:
|
|
|
+ Query:
|
|
|
+ type: object
|
|
|
+ properties:
|
|
|
+ cod:
|
|
|
+ type: integer
|
|
|
+ forma:
|
|
|
+ type: string
|
|
|
+ lemma:
|
|
|
+ type: string
|
|
|
+ cat_gr:
|
|
|
+ type: string
|
|
|
+ disambiguatore:
|
|
|
+ type: string
|
|
|
+ occ:
|
|
|
+ type: integer
|
|
|
+ required:
|
|
|
+ - cod
|
|
|
+ - occ
|