From 4d626c719183b7453db37c543d34c2842374eb8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Wed, 2 May 2018 15:14:26 +0200 Subject: [PATCH] v1.1 --- openapi-spec.yaml | 13 +++++++-- postman_collection.json | 58 +++++++++++++++++++++++++++++++++++------ 2 files changed, 61 insertions(+), 10 deletions(-) diff --git a/openapi-spec.yaml b/openapi-spec.yaml index da62b84..bee5576 100644 --- a/openapi-spec.yaml +++ b/openapi-spec.yaml @@ -3,7 +3,7 @@ swagger: 2.0 info: title: Summit API description: An API that gives information about the Red Hat Summit. - version: 1.0.0 + version: 1.1.0 paths: /location: get: @@ -21,10 +21,19 @@ paths: responses: 200: description: OK + /participants: + get: + summary: Get all participants + description: Get a list of all participants + operationId: GetParticipants + responses: + 200: + description: OK securityDefinitions: apikey: + type: apiKey + description: Use a 3scale API Key name: api-key in: header - type: apiKey security: - apikey: [] diff --git a/postman_collection.json b/postman_collection.json index f2af329..249fddb 100644 --- a/postman_collection.json +++ b/postman_collection.json @@ -1,8 +1,8 @@ { "info": { - "_postman_id": "a25de07c-b783-49d4-b108-ae9f2c0a95ee", - "name": "Summit API v1.0", - "description": "version=1.0 - An API that gives information about the Red Hat Summit.", + "_postman_id": "862a425d-2e15-426b-b912-fa2860b557b8", + "name": "Summit API v1.1", + "description": "version=1.1 - An API that gives information about the Red Hat Summit.", "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" }, "item": [ @@ -21,7 +21,7 @@ }, "response": [ { - "id": "d7fd3b2d-02f0-4a6e-a0bf-53abec702564", + "id": "89409a78-7e8b-44df-a6df-9b4fd7793b65", "name": "Get Next RH Summit Location", "originalRequest": { "method": "GET", @@ -63,7 +63,7 @@ }, "response": [ { - "id": "2817883b-3904-4f41-9c25-07f1c776f9c5", + "id": "e384f705-0ac9-4102-99e4-d5670f1f794e", "name": "Get Next RH Summit Timeframe", "originalRequest": { "method": "GET", @@ -84,7 +84,49 @@ } ], "cookie": [], - "body": "{ \"From\": \"08/05/2018\", \"To\": \"10/05/2018\" }" + "body": "{ \"From\": \"08/05/2018\", \"To\": \"10/05/2018\" }" + } + ] + } + ] + }, + { + "name": "participants", + "description": "Folder for participants", + "item": [ + { + "name": "Get all participants", + "request": { + "method": "GET", + "header": [], + "body": {}, + "url": "http:///participants", + "description": "Get a list of all participants" + }, + "response": [ + { + "id": "0320da48-c5df-485f-9eb8-e65ef54c9d3a", + "name": "Get all participants", + "originalRequest": { + "method": "GET", + "header": [], + "body": {}, + "url": "http:///participants" + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "type": "text", + "name": "Content-Type" + } + ], + "cookie": [], + "body": "[ \"Mark\", \"Nicolas\" ]" } ] } @@ -95,7 +137,7 @@ { "listen": "prerequest", "script": { - "id": "d7492972-0882-41d3-9d22-6e70a8ead909", + "id": "391f2368-9e96-4bd1-9f9c-5302e74fcf04", "type": "text/javascript", "exec": [ "" @@ -105,7 +147,7 @@ { "listen": "test", "script": { - "id": "fb06a1e7-cb4e-4172-9470-f3d80efd453d", + "id": "076cc377-aa7a-4bf2-8573-486db1b45999", "type": "text/javascript", "exec": [ ""