Browse Source

v1.1

master
Nicolas Massé 8 years ago
parent
commit
929ce66c96
  1. 10
      openapi-spec.yaml
  2. 2
      server.js

10
openapi-spec.yaml

@ -3,7 +3,7 @@ swagger: 2.0
info: info:
title: Summit API title: Summit API
description: An API that gives information about the Red Hat Summit. description: An API that gives information about the Red Hat Summit.
version: 1.0.0 version: 1.1.0
paths: paths:
/location: /location:
get: get:
@ -21,6 +21,14 @@ paths:
responses: responses:
200: 200:
description: OK description: OK
/participants:
get:
summary: Get Participants
description: 'Get all participants of the next Red Hat Summit. '
operationId: GetParticipants
responses:
200:
description: OK
securityDefinitions: securityDefinitions:
apikey: apikey:
type: apiKey type: apiKey

2
server.js

@ -22,14 +22,12 @@ router.get("/timeframe",function(req, res) {
.end(); .end();
}); });
/*
router.get("/participants",function(req, res) { router.get("/participants",function(req, res) {
var response = [ "Mark", "Nicolas" ]; var response = [ "Mark", "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);

Loading…
Cancel
Save