-
Notifications
You must be signed in to change notification settings - Fork 103
REST API
etj edited this page Sep 24, 2012
·
31 revisions
-
/data/{id}PUT GET DELETE
-
/resourcesPOST GET -
/resources/resource/{id}[?full=true]PUT GET DELETE
(query paramfullin GET method also returns attached storeddata) -
/resources/searchPOST GET -
/resources/search/{namelike}GET -
/resources/count/{namelike}GET -
/resources/resource/{id}/attributesGET -
/resources/resource/{id}/attributes/{name}GET -
/resources/resource/{id}/attributes/{name}/{value}PUT
-
/categoriesPOST GET -
/categories/category/{id}PUT GET DELETE -
/categories/count/{namelike}GET
/users/user/{id}
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}
-
/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.