/adaptors/configuration 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:
Adaptors
getAdaptorConfiguration
Code samples
const headers = {
Accept: "application/json",
};
fetch("https://goldleaf.app/api/v1/adaptors/configuration", {
method: "GET",
headers: headers,
})
.then(function (res) {
return res.json();
})
.then(function (body) {
console.log(body);
});
GET /adaptors/configuration
Gets available adaptor configurations
Retrieves options for shape, style, and gender for adaptors
Example responses
201 Response
{
"type": "object",
"properties": {
"shapes": {
"type": "array",
"items": {
"type": "string"
}
},
"styles": {
"type": "array",
"items": {
"type": "string"
}
},
"genders": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | Options for shape, style and gender for adaptors | Inline |
Response Schema
Status Code 201
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » shapes | [string] | false | none | none |
| » styles | [string] | false | none | none |
| » genders | [string] | false | none | none |
