List People
curl --request GET \
--url https://api.example.com/peopleimport requests
url = "https://api.example.com/people"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/people', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/people",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/people"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/people")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/people")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"people": [
{
"id": "<string>",
"name": "<string>",
"bio": "<string>",
"image": "<string>"
}
]
}People
List People
Retrieve all performers and crew members
GET
/
people
List People
curl --request GET \
--url https://api.example.com/peopleimport requests
url = "https://api.example.com/people"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/people', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/people",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/people"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/people")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/people")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"people": [
{
"id": "<string>",
"name": "<string>",
"bio": "<string>",
"image": "<string>"
}
]
}Overview
Returns a list of all people (performers, cast members, and crew) in the database.Request
curl https://entertheatre.com/api/people
const response = await fetch('https://entertheatre.com/api/people');
const people = await response.json();
import requests
response = requests.get('https://entertheatre.com/api/people')
people = response.json()
Response
Example Response
[
{
"id": "person-001",
"name": "Elaine Paige",
"bio": "Legendary West End star known for originating roles in Evita and Cats.",
"image": "https://rluylvquemmzgljdklby.supabase.co/storage/v1/object/public/people/elaine-paige.jpg"
},
{
"id": "person-002",
"name": "Michael Ball",
"bio": "Award-winning musical theatre actor and singer.",
"image": "https://rluylvquemmzgljdklby.supabase.co/storage/v1/object/public/people/michael-ball.jpg"
},
{
"id": "person-003",
"name": "Imelda Staunton",
"bio": "Acclaimed British actress known for stage and screen roles.",
"image": "https://rluylvquemmzgljdklby.supabase.co/storage/v1/object/public/people/imelda-staunton.jpg"
}
]
Status Codes
| Status | Description |
|---|---|
200 | Success - returns array of people |
500 | Server error |
⌘I