Browse Source

v1.1

master
Nicolas Massé 8 years ago
parent
commit
4d626c7191
  1. 13
      openapi-spec.yaml
  2. 58
      postman_collection.json

13
openapi-spec.yaml

@ -3,7 +3,7 @@ swagger: 2.0
info: info:
title: Summit API title: Summit API
description: An API that gives information about the Red Hat Summit. description: An API that gives information about the Red Hat Summit.
version: 1.0.0 version: 1.1.0
paths: paths:
/location: /location:
get: get:
@ -21,10 +21,19 @@ paths:
responses: responses:
200: 200:
description: OK description: OK
/participants:
get:
summary: Get all participants
description: Get a list of all participants
operationId: GetParticipants
responses:
200:
description: OK
securityDefinitions: securityDefinitions:
apikey: apikey:
type: apiKey
description: Use a 3scale API Key
name: api-key name: api-key
in: header in: header
type: apiKey
security: security:
- apikey: [] - apikey: []

58
postman_collection.json

@ -1,8 +1,8 @@
{ {
"info": { "info": {
"_postman_id": "a25de07c-b783-49d4-b108-ae9f2c0a95ee", "_postman_id": "862a425d-2e15-426b-b912-fa2860b557b8",
"name": "Summit API v1.0", "name": "Summit API v1.1",
"description": "version=1.0 - An API that gives information about the Red Hat Summit.", "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" "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
}, },
"item": [ "item": [
@ -21,7 +21,7 @@
}, },
"response": [ "response": [
{ {
"id": "d7fd3b2d-02f0-4a6e-a0bf-53abec702564", "id": "89409a78-7e8b-44df-a6df-9b4fd7793b65",
"name": "Get Next RH Summit Location", "name": "Get Next RH Summit Location",
"originalRequest": { "originalRequest": {
"method": "GET", "method": "GET",
@ -63,7 +63,7 @@
}, },
"response": [ "response": [
{ {
"id": "2817883b-3904-4f41-9c25-07f1c776f9c5", "id": "e384f705-0ac9-4102-99e4-d5670f1f794e",
"name": "Get Next RH Summit Timeframe", "name": "Get Next RH Summit Timeframe",
"originalRequest": { "originalRequest": {
"method": "GET", "method": "GET",
@ -84,7 +84,49 @@
} }
], ],
"cookie": [], "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", "listen": "prerequest",
"script": { "script": {
"id": "d7492972-0882-41d3-9d22-6e70a8ead909", "id": "391f2368-9e96-4bd1-9f9c-5302e74fcf04",
"type": "text/javascript", "type": "text/javascript",
"exec": [ "exec": [
"" ""
@ -105,7 +147,7 @@
{ {
"listen": "test", "listen": "test",
"script": { "script": {
"id": "fb06a1e7-cb4e-4172-9470-f3d80efd453d", "id": "076cc377-aa7a-4bf2-8573-486db1b45999",
"type": "text/javascript", "type": "text/javascript",
"exec": [ "exec": [
"" ""

Loading…
Cancel
Save