/shapes v1.0.0
Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
Base URLs:
Shapes
getShapes
Code samples
const headers = {
Accept: "application/json",
};
fetch("https://goldleaf.app/api/v1/shapes", {
method: "GET",
headers: headers,
})
.then(function (res) {
return res.json();
})
.then(function (body) {
console.log(body);
});
GET /shapes
An array of possible fitting shapes
Gets an array of shape names.
Example responses
200 Response
{
"type": "array",
"items": {
"type": "string"
}
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | An array of shape names | Inline |
| 500 | Internal Server Error | none | string |
