-
Notifications
You must be signed in to change notification settings - Fork 102
REST API
Alessandro Ricchiuti edited this page Sep 19, 2025
·
31 revisions
-
/data/{id}PUT GET DELETE -
/data/{id}/rawGET- param
decode: (optional) decodes the raw content before returning it. Available values:-
base64: decode the whole blob as a base64 encoded string an return binary data -
datauri: check the format of the data URI, decodes it an returns the decoded data with the properContent-typeheader.
-
- param
-
/resourcesPOST GET -
/resources/searchPOST GET -
/resources/search/{namelike}GET -
/resources/search/listPOST GET -
/resources/count/{namelike}GET
-
/resources/resource/{id}[?full=true]PUT GET DELETE- param
fullin GET method also returns attached storeddata
- param
-
/resources/resource/{id}/attributesGET -
/resources/resource/{id}/attributes/{name}GET -
/resources/resource/{id}/attributes/{name}PUT Replaces or creates an attribute
{
"restAttribute": {
"name": "test",
"value": "MyTest1"
}
}-
/resources/resource/{id}/attributes/{name}/{value}PUT Replaces or creates an attribute ofSTRING -
/resources/resource/{id}/attributes/{name}/{value}/{type}PUT Replaces or creates an attribute of a given type. Type =STRING|NUMBER|DATE
-
/resources/resource/{id}/permissionsPOST GET
-
/resources/tagPOST GET -
/resources/tag[?page&entries][?nameLike]GET -
/resources/tag/{id}PUT GET DELETE -
/resources/tag/{id}/resource/{resourceId}POST DELETE Adds or removes tag association
-
/categoriesPOST GET -
/categories/category/{id}PUT GET DELETE -
/categories/count/{nameLike}GET
-
/usersPOST -
/usersGET (get all with paging) -
/users/search/{name}[?includeAttributes=false]GET -
/users/count/{nameLike}GET -
/users/search/list/{nameLike}GET
-
/users/user/{id}PUT GET DELETE -
/users/user/detailsGET (current user)
-
/users/user/{id}/favorite/{resourceId}POST DELETE Adds or removes favorite association
(Admin only, other users will get empty responses)
-
/usergroups/POST (Insert a UserGroup) -
/usergroups/[?all][?users][?nameLike]GET (get all UserGroups with paging and filtering by name) -
/usergroups/group/{id}DELETE (delete an UserGroup) -
/usergroups/group/{id}GET (get an UserGroup) -
/usergroups/group/name/{name}GET (search an UserGroup using its name) -
/usergroups/group/{userid}/{groupid}POST (assign a usergroup to a user) -
/usergroups/group/{userid}/{groupid}DELETE (remove the usergroup association to a User) -
/usergroups/update_security_rules/{groupId}/{canRead}/{canWrite}PUT (change the grants for a group on a set of resources)
-
/iprangesPOST- Admin only
-
/iprangesGET -
/ipranges/{id}GET -
/ipranges/{id}PUT DELETE- Admin only
These calls simplify some client side operations, avoiding the use of XML filters to be POSTed and receiving all the needed params in the URL path.
-
/misc/category/name/{cname}/resource/name/{rname}GET
Get the full resource, completed with its data. May be computational and network heavy.
Results:-
200 OK: one resource found -
404 NOT FOUND: no matching resource found -
409 CONFLICT: too many matching resources found -
500: other errors
-
-
/misc/category/name/{cname}/resource/name/{rname}/dataGET
Get the resource data. May be computational and network heavy.
Results:-
200 OK: one resource found -
404 NOT FOUND: no matching resource found -
409 CONFLICT: too many matching resources found -
500: other errors
-
-
/misc/category/name/{cname}/resourcesGET
Get the list of resources belonging to the Category with namecname.Results:
-
200 OK: one or more resources -
404 NOT FOUND: no matching resource found -
500: other errors
-
-
/misc/getdata?categoryname={cname}&resourcename={rname}
Operations mainly used by a JS frontend.
-
/extjs/search/resource/{nameLike}GET -
/extjs/search/category/{categoryName}GET -
/extjs/search/category/{categoryName}/{resourceNameLike}GET -
/extjs/search/category/{categoryName}/{resourceNameLike}/{extraAttributes}GET -
/extjs/search/list[?includeAttributes=false][?includeData=false][?includeTags=false][?favoritesOnly=false]GET -
/extjs/search/users/{nameLike}GET -
/extjs/search/groups/{nameLike}GET -
/extjs/resource/{id}[?includeAttributes=false][?includePermissions=false][?includeTags=false]GET retrieve a ShortResource (basic resource info + auth info)
-
/backup/fullGET
Not implemented yet. -
/backup/fullPUT
Not implemented yet. -
/backup/quickGET
Return an XML document containing information about categories, resources, storedData.
No info about users or authorization is returned. -
/backup/quickPUT
Restore the info from an XML doc got with the GET method.- All existing categories and resources will be deleted.
- Categories, resources and storeddata are created from the the XML document.
- Users will not be modified. Security rules will not be added.
- IDs are not preserved. Creation dates are recreated.
- Returns the
okstring if the procedure completed successfully.
-
/session/user/{sessionId}GET
Gets the User object associated to the given sessionId (if it exists). -
/session/username/{sessionId}GET
Gets the username associated to the given sessionId (if it exists). -
/session/PUT
Creates a new session for the User -
/session/loginPOST
Creates a new session for the User
Example response:
{"access_token":"f39ad0f2-a780-444e-bddb-af0b738d9aff","expires":86400,"refresh_token":"4d03b727-b953-472f-b283-b60f6d4e572e","token_type":"bearer"} -
/session/refresh/{sessionId}/{refreshToken}POST
Refresh the session token -
/session/{sessionId}DELETE
Removes the given session. -
/session/DELETE
Removes all sessions. (Admin only)