Attributes | Values |
---|
type
| |
Date Created
| |
Date Modified
| |
label
| - VirtOAuthTestToolExampleBriefcase
|
maker
| |
Title
| - VirtOAuthTestToolExampleBriefcase
|
isDescribedUsing
| |
has creator
| |
content
| - %VOSWARNING%
---++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 <b><code>briefcase.resource.store</code></b> and <b><code>briefcase.resource.get</code></b> using the OAuth Test Tool. A full list of the ODS REST APIs for ODS-Briefcase is found [[../ODS/VirtuosoOdsControllersBriefcase][elsewhere]].
1. Go to <code>[[http://demo.openlinksw.com/ods][http://demo.openlinksw.com/ods]]</code>
1. Log in as user <code>demo</code> with password <code>demo</code>
1. Go to <b>Settings</b> -> <b>OAuth Keys</b>
%BR%%BR%<img src="%ATTACHURLPATH%/o1.png" style="wikiautogen"/>%BR%%BR%
1. Copy the <b>Token</b> value for a Briefcase instance, or create one if none exist. For example: 32e2a8fdddb69cb76b0e8309c42e5a7d008fdefc
1. Go to <code>[[http://demo.openlinksw.com/ods/oauth_test.vsp][http://demo.openlinksw.com/ods/oauth_test.vsp]]</code>
1. Complete the form as follows —
* *Server*: <code><nowiki>http://demo.openlinksw.com/ods/api</nowiki></code>
* *Consumer Key*: <code>32e2a8fdddb69cb76b0e8309c42e5a7d008fdefc</code>
* *API method*: <code>briefcase.resource.store</code>
* *API parameters*: <code>path=/DAV/home/demo/Public/mytest&content=TEST</code>
* *Query options*: choose <b><code>Generate URI and Submit</code></b> from the menu
%BR%%BR%<img src="%ATTACHURLPATH%/obf1.png" style="wikiautogen"/>%BR%%BR%
1. Click the <b>Execute</b> button.
1. Click the <b>Authorize</b> button.
%BR%%BR%<img src="%ATTACHURLPATH%/obf2.png" style="wikiautogen"/>%BR%%BR%
1. 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: <code>110997</code>
%BR%%BR%<img src="%ATTACHURLPATH%/obf3.png" style="wikiautogen"/>%BR%%BR%
1. Now let's get the data for the created resource. Complete the form as follows —
* *API method*: <code>briefcase.resource.get</code>
* *API parameters*: <code>path=/DAV/home/demo/Public/mytest</code>
* *Query options*: choose <b><code>Generate URI and Submit</code></b> from the menu
1. Click the <b>Execute</b> button.
1. The <b>Response Body</b> text-area will show the retrieved content for the resource with the given ID.
%BR%%BR%<img src="%ATTACHURLPATH%/obf4.png" style="wikiautogen"/>%BR%%BR%
CategoryBriefcase CategoryODS CategoryOdsBriefcase CategoryTutorial CategoryOAuth CategoryDocumentation
|
id
| - 8fcf66f34c2c43030a52a09a712c27af
|
link
| |
has container
| |
http://rdfs.org/si...ices#has_services
| |
atom:title
| - VirtOAuthTestToolExampleBriefcase
|
links to
| |
atom:source
| |
atom:author
| |
atom:published
| |
atom:updated
| |
topic
| |
is made
of | |
is container of
of | |
is link
of | |
is http://rdfs.org/si...vices#services_of
of | |
is links to
of | |
is creator of
of | |
is atom:entry
of | |
is atom:contains
of | |