WARNING! This URL (in the Main cluster) is no longer the authoritative source for this page; it has been moved to the VOS or ODS cluster as appropriate instead.
See Tim Haynes in case of confusion.
Briefcase OAuth REST API Example performed with the Virtuoso OAuth Testing Tool
The following example demonstrates adding a resource and getting resource info by the ODS REST APIs briefcase.resource.store
and briefcase.resource.get
using the OAuth Test Tool.
A full list of the ODS REST APIs for ODS-Briefcase is found elsewhere.
- Go to
http://demo.openlinksw.com/ods
- Log in as user
demo
with password demo
- Go to Settings -> OAuth Keys
- Copy the Token value for a Briefcase instance, or create one if none exist.
For example: 32e2a8fdddb69cb76b0e8309c42e5a7d008fdefc
- Go to
http://demo.openlinksw.com/ods/oauth_test.vsp
- Complete the form as follows —
- Server:
http://demo.openlinksw.com/ods/api
- Consumer Key:
32e2a8fdddb69cb76b0e8309c42e5a7d008fdefc
- API method:
briefcase.resource.store
- API parameters:
path=/DAV/home/demo/Public/mytest&content=TEST
- Query options: choose
Generate URI and Submit
from the menu
- Click the Execute button.
- Click the Authorize button.
- The generated URI and the output message from executing the ODS REST API will be shown.
In our case, the ID of the newly created resource will be:
110997
- Now let's get the data for the created resource.
Complete the form as follows —
- API method:
briefcase.resource.get
- API parameters:
path=/DAV/home/demo/Public/mytest
- Query options: choose
Generate URI and Submit
from the menu
- Click the Execute button.
- The Response Body text-area will show the retrieved content for the resource with the given ID.
CategoryBriefcase CategoryODS CategoryOdsBriefcase CategoryTutorial CategoryOAuth CategoryDocumentation