From 87719f54168d2c63a914b463c45510cfbd6c3752 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Thu, 3 May 2018 09:25:34 +0200 Subject: [PATCH] go back to v1.0 --- openapi-spec.yaml | 10 +--------- server.js | 2 ++ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/openapi-spec.yaml b/openapi-spec.yaml index bee5576..4f2a04c 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.1.0 + version: 1.0.0 paths: /location: get: @@ -21,14 +21,6 @@ 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 diff --git a/server.js b/server.js index 39e217b..c89dbc6 100644 --- a/server.js +++ b/server.js @@ -22,12 +22,14 @@ 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);