List a Realm's declared watches
const url = 'http://localhost:11044/api/v1/realms/example/watch-approvals';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/realms/example/watch-approvals \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'Each watch the admitted capture declares and whether it is approved.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Name of a realm with a live admitted installation in the signed-in owner’s world: non-blank, at most 256 UTF-8 bytes, no control characters and not all asterisks, or 400
Responses
Section titled “Responses”OK
A captured realm’s declared watches and their approvals, as GET /realms/{realmName}/watch-approvals and the grant and revoke routes answer, with the installation and revision the next change must name back
object
Digest of the realm content this installation admitted
The realm installation the watches belong to; a grant or revoke must send it back
The installation’s revision, after the change on a grant or revoke; the next grant or revoke must send it back as expectedRevision
Every watch the admitted realm declares, each with whether it is approved
One watch a captured realm declares: the lens it re-reads, its cron schedule, and whether the owner has approved it
object
True when the owner has approved this watch, so its schedule runs; approving it grants nothing on the lens or its handler
Id of the realm’s own lens the watch re-reads
Cron expression it re-reads the lens on, already checked against the host’s minimum interval
The watch’s name, as the grant and revoke routes take it

