Provides functions to maintain resource service extensions on the REST server
for the client. The client must have been created for a user with the
rest-admin role.
Methods
-
list() → {ResultProvider}
-
Lists the resource services installed on the server.
Returns:
an object whose result() function takes a success callback that receives the list of resource services installed on the server- Type
- ResultProvider
-
read(name) → {ResultProvider}
-
Reads the source for a resource service installed on the server.
Parameters:
Name Type Description namestring the name of an installed resource service Returns:
an object whose result() function takes a success callback that receives the source code- Type
- ResultProvider
-
remove(name)
-
Deletes a resource service from the server.
Parameters:
Name Type Description namestring the name of the resource service -
write(name, format, source)
-
Installs a resource service on the server.
Parameters:
Name Type Description namestring the name of the resource service formatstring a value from the javascript|xquery enumeration sourceobject | string the source for the resource service