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

2
server.js

@ -22,14 +22,12 @@ 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);

Loading…
Cancel
Save