diff --git a/openapi-spec.yaml b/openapi-spec.yaml index be1d380..2e81449 100644 --- a/openapi-spec.yaml +++ b/openapi-spec.yaml @@ -1,10 +1,9 @@ --- -swagger: 2.0 +swagger: '2.0' info: - title: RHTE API with OpenID Connect - description: RHTE API v2.0 - An API that gives information about the Red Hat Tech - Exchange - version: 2.0.0 + title: RHTE API + description: RHTE API v1.0 - An API that gives information about the Red Hat Tech Exchange + version: 1.0.0 paths: /location: get: @@ -22,22 +21,11 @@ paths: responses: 200: description: OK - /participants: - get: - summary: Get Next RHTE Participants - description: Get the participants of the next RedHat Tech Exchange - operationId: GetParticipants - responses: - 200: - description: OK securityDefinitions: - oidc: - type: oauth2 - flow: accessCode - authorizationUrl: https://filled-later.dummy/auth - tokenUrl: https://filled-later.dummy/token - scopes: - openid: Get an OpenID Connect token + apikey: + type: apiKey + description: Use a 3scale API Key + name: api-key + in: header security: -- oidc: - - openid +- apikey: [] diff --git a/server.js b/server.js index 25caad4..f4e9f5d 100644 --- a/server.js +++ b/server.js @@ -22,13 +22,14 @@ router.get("/timeframe",function(req, res) { .end(); }); +/* router.get("/participants",function(req, res) { var response = [ "Manfred", "Nicolas" ]; res.type('application/json') .send(JSON.stringify(response)) .end(); }); - +*/ app.use("/",router); app.use("*",function(req, res) {