diff --git a/package.json b/package.json index 670be91f6a7b2f7b87a9ceab948c322583031cfb..44495939a65754ef37e1de90c7d147bd4163f438 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@metexplore/metexplore3-api-specs", "private": false, "description": "MetExplore 3 API specifications", - "version": "0.3.0", + "version": "0.4.0", "license": "Apache-2.0", "devDependencies": { "@redocly/cli": "^1.0.0-beta.125", diff --git a/paths/filters/get.yml b/paths/filters/get.yml index 4d8cdf826b1e35165c91211ba63e69af9c5c9d39..7b1d505a87eac53882e0418980a08c4c39ddaf6f 100644 --- a/paths/filters/get.yml +++ b/paths/filters/get.yml @@ -1,25 +1,17 @@ -get: +post: tags: - Filters - summary: get Filter - description: get + summary: filter identifiers of metabolic entities by ids of other metabolic entities + description: filter identifiers of metabolic entities by ids of other metabolic entities operationId: getFilter x-eov-operation-handler: filters - parameters: - - name: filter - in: query - description: the type of filter (Reaction2Gene, Reaction2Metabolite) - required: true - schema: - type: string - allowReserved: true - - name: listid - in: query - description: the of id mysql in - required: true - allowReserved: true - schema: - type: string + requestBody: + content: + application/json: + schema: + type: object + items: + $ref: '../../schemas/filters/Filter.yml' responses: 200: description: successful operation diff --git a/schemas/filters/Filter.yml b/schemas/filters/Filter.yml index 8027e273939f893efb7f35965de09f352264b94f..829e2d4d8a2f84965f4251ad1aa0c481fa285050 100644 --- a/schemas/filters/Filter.yml +++ b/schemas/filters/Filter.yml @@ -1,7 +1,14 @@ type: object description: "result filter object" properties: - result: - description: "list id" + filtertype: + description: "type of filter" type: string - example: "12,123" + enum: ['Gene2Pathway','Protein2Pathway',Enzyme2Pathway,Reaction2Pathway,Gene2Reaction,Protein2Reaction,Enzyme2Reaction,Pathway2Reaction,Gene2Metabolite,Protein2Metabolite,Enzyme2Metabolite,Reaction2Metabolite,Pathway2Metabolite,Gene2Enzyme,Protein2Enzyme,Reaction2Enzyme,Pathway2Enzyme,Compart2Enzyme,Gene2Protein,Enzyme2Protein,Reaction2Protein,Pathway2Protein,Compart2Protein,Protein2Gene,Enzyme2Gene,Reaction2Gene,Pathway2Gene,Protein2Compart,Enzyme2Compart,Metabolite2Compart,Reaction2Compart,Pathway2Compart] + example: "Gene2Reaction" + ids: + description: "array ids of " + type: array + items: + type: integer + example: "1,12" diff --git a/schemas/filters/FiltersResponse.yml b/schemas/filters/FiltersResponse.yml index b9cac96fbb3df8b4467c3fc0dc0984f2d47b3ad7..16dd77426a8040f1338bf616c70442d2ae09db38 100644 --- a/schemas/filters/FiltersResponse.yml +++ b/schemas/filters/FiltersResponse.yml @@ -3,7 +3,7 @@ allOf: - type: object - properties: result: - description: 'result' - type: string - items: - $ref: '../../schemas/filters/Filter.yml' + description: 'array of ids' + type: array + items: + type: integer