Get all team members
This endpoint is called to display all Team Members on the current Roster.
GET /api/all-team-members
Example request
CURL
$ curl https://roster-rosie.site.com/api/all-team-members
Ruby
require "net/http"
# build request
uri = URI("https://roster-rosie.site.com/api/all-team-members")
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/all-team-members',
headers: {
'Content-Type': 'application/json'
},
};
axios(config)
.then(response => {
console.log(JSON.stringify(response.data));
})
.catch(error => {
console.log(error);
});
Example response
The successful response will have a 200 OK response code and a JSON body containing the team Roster:
HTTP/1.1 200 OK
Content-type: application/json
{
"members": [
{
"name": "Walter Goggins",
"slackID": "12345"
},
{
"name": "Aimee Lou Wood",
"slackID": "67890"
},
// <...>
]
}