API stages plugin for the Screwdriver API
const Hapi = require('@hapi/hapi');
const server = new Hapi.Server();
const stagesPlugin = require('./');
server.connection({ port: 3000 });
server.register({
register: stagesPlugin,
options: {}
}, () => {
server.start((err) => {
if (err) {
throw err;
}
console.log('Server running at:', server.info.uri);
});
});
GET /stages/{id}
GET /stages/{id}/stageBuilds
GET /stages/{id}/stageBuilds?eventId={eventId}