Browse Source

back to v1

master
Nicolas Massé 7 years ago
parent
commit
5ec73a1450
  1. 32
      openapi-spec.yaml
  2. 3
      server.js

32
openapi-spec.yaml

@ -1,10 +1,9 @@
--- ---
swagger: 2.0 swagger: '2.0'
info: info:
title: RHTE API with OpenID Connect title: RHTE API
description: RHTE API v2.0 - An API that gives information about the Red Hat Tech description: RHTE API v1.0 - An API that gives information about the Red Hat Tech Exchange
Exchange version: 1.0.0
version: 2.0.0
paths: paths:
/location: /location:
get: get:
@ -22,22 +21,11 @@ paths:
responses: responses:
200: 200:
description: OK 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: securityDefinitions:
oidc: apikey:
type: oauth2 type: apiKey
flow: accessCode description: Use a 3scale API Key
authorizationUrl: https://filled-later.dummy/auth name: api-key
tokenUrl: https://filled-later.dummy/token in: header
scopes:
openid: Get an OpenID Connect token
security: security:
- oidc: - apikey: []
- openid

3
server.js

@ -22,13 +22,14 @@ router.get("/timeframe",function(req, res) {
.end(); .end();
}); });
/*
router.get("/participants",function(req, res) { router.get("/participants",function(req, res) {
var response = [ "Manfred", "Nicolas" ]; var response = [ "Manfred", "Nicolas" ];
res.type('application/json') res.type('application/json')
.send(JSON.stringify(response)) .send(JSON.stringify(response))
.end(); .end();
}); });
*/
app.use("/",router); app.use("/",router);
app.use("*",function(req, res) { app.use("*",function(req, res) {

Loading…
Cancel
Save