diff --git a/openapi-spec.yaml b/openapi-spec.yaml index 4f2a04c..a76ea7d 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,6 +21,14 @@ paths: responses: 200: description: OK + /participants: + get: + summary: Get Participants + description: 'Get all participants of the next Red Hat Summit. ' + operationId: GetParticipants + responses: + 200: + description: OK securityDefinitions: apikey: type: apiKey diff --git a/server.js b/server.js index c89dbc6..39e217b 100644 --- a/server.js +++ b/server.js @@ -22,14 +22,12 @@ router.get("/timeframe",function(req, res) { .end(); }); -/* router.get("/participants",function(req, res) { var response = [ "Mark", "Nicolas" ]; res.type('application/json') .send(JSON.stringify(response)) .end(); }); -*/ app.use("/",router);