Get next lead
This is a test/development endpoint that is called to get the name of the next lead for the given Event.
GET /api/next-lead/{event}
{event} must be specified, and can be either "standup" or "retro".
Example request
CURL
$ curl https://roster-rosie.site.com/api/next-lead/standup
Ruby
require "net/http"
# build request
uri = URI("https://roster-rosie.site.com/api/next-lead/standup")
request = Net::HTTP::Get.new(uri, "Content-Type": "application/json")
# send request
response = Net::HTTP.start uri.hostname, uri.port, use_ssl: true do |http|
http.request(request)
end
NodeJS
const axios = require('axios');
const config = {
method: 'GET',
url: 'https://roster-rosie.site.com/api/next-lead/retro',
headers: {
'Content-Type': 'application/json'
},
};
axios(config)
.then(response => {
console.log(JSON.stringify(response.data));
})
.catch(error => {
console.log(error);
});
Example response
A successful request will return 200 OK response code and the name of the Team Member who is the next lead of your Event:
HTTP/1.1 200 OK
"Aimee Lou Wood"
Troubleshooting
400 Bad Request
This means that your request URL might be malformed and/or incomplete. Check the URL and make sure you have specified the event you are requesting a lead for: /api/next-lead/standup or /api/next-lead/retro. Please refer to code examples for request examples in select languages.