From 80baa9c07043cd892a436c5d9a1b0f06ef47c3b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20=20MENAGER?= <herve.menager@pasteur.fr> Date: Wed, 8 Feb 2017 16:51:01 +0100 Subject: [PATCH] minor corrections to swagger files --- swagger-pcmaweb.json | 22 +++++++++++++--------- swagger-pcmaweb.yaml | 21 +++++++++++---------- 2 files changed, 24 insertions(+), 19 deletions(-) diff --git a/swagger-pcmaweb.json b/swagger-pcmaweb.json index e7194b59..5975f7bc 100644 --- a/swagger-pcmaweb.json +++ b/swagger-pcmaweb.json @@ -57,19 +57,23 @@ } }, "get": { - "description": "Gets `Person` objects.\nOptional query param of **size** determines\nsize of returned array\n", + "description": "Gets `Project` characteristics (listed phenotypes).\n", "responses": { "200": { "description": "Retrieved project", "schema": { - "title": "Phenotype", - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "label": { - "type": "string" + "title": "ArrayOfPhenotypes", + "type": "array", + "items": { + "title": "Phenotype", + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "label": { + "type": "string" + } } } } diff --git a/swagger-pcmaweb.yaml b/swagger-pcmaweb.yaml index 9207b252..0ebb4c73 100644 --- a/swagger-pcmaweb.yaml +++ b/swagger-pcmaweb.yaml @@ -43,20 +43,21 @@ paths: type: string get: description: | - Gets `Person` objects. - Optional query param of **size** determines - size of returned array + Gets `Project` characteristics (listed phenotypes). responses: 200: description: Retrieved project schema: - title: Phenotype - type: object - properties: - id: - type: string - label: - type: string + title: ArrayOfPhenotypes + type: array + items: + title: Phenotype + type: object + properties: + id: + type: string + label: + type: string /projects/{projectID}: get: description: | -- GitLab