---+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. Full list of the ODS REST APIs for ODS Briefcase you can find [[VirtuosoOdsControllersBriefcase][here]].
1. Go to http://demo.openlinksw.com/ods
1. Log in as user demo with password demo
1. Go to Settings->OAuth Keys
*
1. Copy the Token value for an Briefcase instance or create such in not existing. For ex.: 32e2a8fdddb69cb76b0e8309c42e5a7d008fdefc
1. Go to http://demo.openlinksw.com/ods/oauth_test.vsp
1. In the shown form enter for:
1. *Server*: http://demo.openlinksw.com/ods/api
1. *Consumer Key*: 32e2a8fdddb69cb76b0e8309c42e5a7d008fdefc
1. *API method*: briefcase.resource.store
1. *API parameters*: path=/DAV/home/demo/Public/mytest&content=TEST
1. Select for *Query options*: "Generate URI and Submit".
*
1. Click the "Execute" button.
1. In the shown authorization form click the "Authorize" button.
*
1. As result will be shown the generated URI and the output message of executing the ODS REST API. In our case, the id of the new created resource will be: 110997
*
1. Now lets get the data for the created resource. In the form enter:
1. *API method*: briefcase.resource.get
1. *API parameters*: path=/DAV/home/demo/Public/mytest
1. Select for *Query options*: "Generate URI and Submit".
1. Click the "Execute" button.
1. As result in the "Response Body" text-area will be shown the retrieved content for the resource with the given above id.
*
---++Related
* [[VirtuosoOdsControllersBriefcase][Briefcase REST Controllers]]
* [[VirtOAuthTestTool][OAuth Test Tool for ODS Controllers]] - Examples:
* [[VirtOAuthTestToolExampleWeblog][ODS Weblog]]
* [[VirtOAuthTestToolExampleAddressbook][ODS Addressbook]]
* [[VirtOAuthTestToolExampleBookmarks][ODS Bookmarks]]
* [[VirtOAuthTestToolExamplePolls][ODS Polls]]
* [[VirtOAuthTestToolExampleCalendar][ODS Calendar]]
* [[VirtOAuthTestToolExampleFeeds][ODS Feed Manager]]
* [[http://virtuoso.openlinksw.com/wiki/main/Main/OAuth][OpenLink's explanation of OAuth]]
* [[http://virtuoso.openlinksw.com/wiki/main/Main/VirtuosoOAuthServer][Virtuoso OAuth server]]
* [[VirtOAuthControllers][Using OAuth with ODS]]
* [[VirtuosoOdsUbiquity][ODS Ubiquity Commands]]
* [[http://virtuoso.openlinksw.com/wiki/main/Main/VirtOAuth][Virtuoso OAuth Implementation]]
* [[VirtuosoOdsControllers][ODS Controllers]]
* [[VirtODSOAuthQA][Testing Virtuoso OAuth with 3rd Party OAuth Clients]]
* [[VirtuosoOdsUbiquityTutorialsOAuth][OAuth Ubiquity Tutorial]]
* [[http://virtuoso.openlinksw.com/wiki/main/Main/VirtOAuthSPARQL][Virtuoso SPARQL OAuth Tutorial]]
* [[VirtuosoOdsUbiquityTutorials][ODS Ubiquity Tutorials]]
* [[VirtOAuthExamples][OAuth Applications Authentication examples]]
* [[http://oauth.net/core/1.0/][OAuth API]]
CategoryBriefcase CategoryODS