List every realm API operation available to a user, classified read-only vs write
const url = 'http://localhost:11044/api/v1/admin/code-action/catalog?username=example';const options = {method: 'GET', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:11044/api/v1/admin/code-action/catalog?username=example' \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Login username of the user whose installed realms’ API operations are listed; an unknown username is refused with 400
Responses
Section titled “Responses”The catalog
Every realm API operation available to a user, counted per source, with a sample
object
The operations counted per source realm, keyed by source name in sorted order
object
One source’s operations, split by whether they only read
object
The operations classified read-only
Every operation from this source
The operations classified as writes: total less readOnly
Up to twenty operations, sorted by gateway name
One realm API operation, as the catalog samples it
object
The operation’s gateway name
True when the operation only reads
The realm the operation comes from
How many realm API operations the user can reach
The user the catalog was built for, as given
Example generated
{ "bySource": { "additionalProperty": { "readOnly": 1, "total": 1, "write": 1 } }, "sample": [ { "op": "example", "readOnly": true, "source": "example" } ], "totalRealmOps": 1, "username": "example"}Unknown username
A refusal carrying only its reason, with no status word
object
Why the request was refused, written to be shown
Example generated
{ "error": "example"}
