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:
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: []

3
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) {

Loading…
Cancel
Save