// OpenAPI-style client snippet
const response = await fetch(`https://api.example.com/v1/deployments/{id}`, {
method: "GET",
headers: {
"Accept": "application/json",
},
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const data = await response.json();