openapi: 3.0.1 info: title: TIGRO description: Explore occurrences, co-occurrences and textual contexts of forms and lems in a corpus which is defined externally. version: 1.0.0 servers: - url: 'http://192.168.10.245' paths: /simple_get_query: post: summary: Submit a simple query. description: Cerca 1. occorrenze forme e/o lemmi con opzioni; 2. cooccorrenze di 2+ forme e/o lemmi restituendo direttamente anche i loro contesti. requestBody: required: true content: application/json: schema: type: object properties: queryList: type: array items: type: object properties: stringa: type: string espansa: type: integer enum: - 0 - 1 raddoppiata: type: integer enum: - 0 - 1 tipo: type: string enum: - "forma" - "lemma" - "lemmaForma" - "formLemma" responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/SimpleGetQueryArray' '400': description: Bad request '500': description: Internal server error components: schemas: SimpleGetQueryArray: type: array items: oneOf: - $ref: '#/components/schemas/Resp1' - $ref: '#/components/schemas/Resp2' - $ref: '#/components/schemas/Resp3' # - $ref: '#/components/schemas/Resp4' da inserire quando avremo la risposta di 'get_context' # GetContextArray: # type: array # items: # $ref: '#/components/schemas/Resp4' Resp1: type: object properties: cod: type: integer forma: type: string occ: type: integer Resp2: type: object properties: lemma: type: string cat_gr: type: string disambiguatore: type: string cod: type: integer occ: type: integer Resp3: type: object properties: lemma: type: string cat_gr: type: string disambiguatore: type: string cod: type: integer occ: type: integer forma: type: string # Resp4 la risposta di 'get_context