Creating, updating, deleting and permissioning mock APIs via the API.
Create a new mock API
grpc
or openapi
.The hostname is the friendly unqualified domain name used in the base URL. It is optional, and if omitted the
generated ID for the mock API will be used in the domain name.Save the mock API’s ID from the response.Get the ACL candidates
mockApi.links.acl
link in the response gained in the previous step, which will return
ACL candidates.From within the returned data, find the user to whom you wish to grant access to the mock API and follow the link to the user resource.
Save the user’s ID.Grant access to the user
entityCollection
= mock-apis
entityId
= <the mock API ID>subjectType
= user
subjectEntityId
= <the user’s ID>The body must contain the role to be granted e.g. mock_api_editor
.