Store APIs provide the following REST resources.
Table of Contents | ||
---|---|---|
|
...
Description | Log out from API Store. |
URI | http://localhost:9763/store/site/blocks/user/login/ajax/login.jag?action=logout |
URI Parameters | ?action=logout |
HTTP Methods | GET |
Example | curl -b cookies http://localhost:9763/store/site/blocks/user/login/ajax/login.jag?action=logout |
...
Description | Add a new application. |
URI | http://localhost:9763/store/site/blocks/application/application-add/ajax/application-add.jag |
URI Parameters | action=addApplication&applicationName=xxx&tier=xxx&description=xxx&callbackUrl |
HTTP Methods | POST |
Example | curl -X POST -b cookies http://localhost:9763/store/site/blocks/application/application-add/ajax/application-add.jag -d 'action=addApplication&applicationName=NewApp1&tier=Unlimited&description=&callbackUrl=' |
...
Description | Remove an existing application. |
URI | http://localhost:9763/store/site/blocks/application/application-remove/ajax/application-remove.jag |
URI Parameters | action=removeApplication&applicationNameapplication=xxx |
HTTP Methods | POST |
Example | curl -X POST -b cookies http://localhost:9763/store/site/blocks/application/application-remove/ajax/application-remove.jag -d "action=removeApplication&applicationNameapplication=NewApp2" |
Generate an Application Key
Description | Generate the key and secret values for a new application. |
URI | http://localhost:9763/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag |
URI Parameters | action=generateApplicationKey&applicationName=<app_name>&keytype=<PRODUCTION|SANDBOX>&callbackUrl=<URL>&authorizedDomains=<The domains from which requests are allowed to the APIs>&validityTime=<time duration in seconds>&tokenScope
|
HTTP Methods | POST |
Examples |
|
Add a Subscription
Description | Add a new API subscription. |
URI | http://localhost:9763/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag |
URI Parameters |
|
HTTP Methods | POST |
Example |
|
...
Description | List all applications with active subscriptions, along with the access key information of each application. |
URI | http://localhost:9763/store/site/blocks/subscription/subscription-list/ajax/subscription-list.jag |
URI Parameters | action=getAllSubscriptions, selectedApp (optional) You can give an application's name in the s |
HTTP Methods | GET |
Examples |
|
...
Description | Provisions an OAuth client that was created out-of-band. |
URI | http://localhost:9763/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag |
URI Parameters | action=mapExistingOauthClient&applicationName=<APPLICATION_NAME>&keytype=PRODUCTION/SANDBOX&callbackUrl=<URL>&authorizedDomains=<The domains from which requests are allowed to the APIs>&validityTime=<time duration in seconds>&client_id=<client ID> |
HTTP Methods | POST |
Example | curl -X POST -b cookies http://localhost:9763/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag -d 'action=mapExistingOauthClient&applicationName=semi&keytype=PRODUCTION&callbackUrl=google.com&authorizedDomains=ALL&validityTime=3600&client_id=mPbgvinvpEk1QcSrw962TLICriUa&jsonParams={"username":"admin","key_type":"PRODUCTION","client_secret":"ynEI1ugq1_RCTJ9bM8jtD9RCsdoa","validityPeriod":3600,"client_id":"mPbgvinvpEk1QcSrw962TLICriUa"}' |
Clean Partially Created Keys
...