This documentation is for WSO2 API Manager 1.4.0 View documentation for the latest release.
Page Comparison - Store APIs (v.17 vs v.18) - API Manager 1.4.0 - WSO2 Documentation

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

DescriptionLog in to API Store.
URI http://localhost:9763/store/site/blocks/user/login/ajax/login.jag
URI Parametersaction=login&username=xxx&password=xxx
HTTP MethodsPOST
Examplecurl -X POST -c cookies http://localhost:9763/store/site/blocks/user/login/ajax/login.jag -d 'action=login&username=user1&password=xxx'

...

DescriptionLog out from API Store.
URI http://localhost:9763/store/site/blocks/user/login/ajax/login.jag
URI Parameters?action=logout
HTTP MethodsGET
Examplecurl -b cookies http://localhost:9763/publisher/site/blocks/user/login/ajax/login.jag?action=logout

...

DescriptionAdd a new API Consumer.
URI  http://localhost:9763/store/site/blocks/user/sign-up/ajax/user-add.jag
URI Parametersaction=addUser&username=xxx&password=xxx&allFieldsValues=xxx
HTTP MethodsPOST
Example

curl -X POST -b cookies http://localhost:9763/store/site/blocks/user/sign-up/ajax/user-add.jag -d “action=addUser&username=user2&password=xxx”'

curl -X POST -b cookies http://localhost:9763/store/site/blocks/user/sign-up/ajax/user-add.jag -d "action=addUser&username=user1&password=password1&allFieldsValues=test"

Get all Published APIs

DescriptionGet a list of all published APIs.
URIhttp://localhost:9763/store/site/blocks/api/listing/ajax/list.jag
URI Parameters?action=getAllPublishedAPIs
HTTP MethodsGET
Examplecurl -b cookies   http://localhost:9763/store/site/blocks/api/listing/ajax/list.jag?action=getAllPublishedAPIs

...

DescriptionAdd a new application.
URI     http://localhost:9763/store/site/blocks/application/application-add/ajax/application-add.jag
URI Parametersaction=addApplication&application=xxx
HTTP MethodsPOST
Examplecurl -X POST -b cookies    http://localhost:9763/store/site/blocks/application/application-add/ajax/application-add.jag -d 'action=addApplication&application=app1&tier=unlimited&callbackUrl="

...

Description Update an existing application.
URI   http://localhost:9763/store/site/blocks/application/application-update/ajax/application-update.jag
URI Parameters

action=updateApplication&applicationOld=xxx&applicationNew=xxx

HTTP MethodsPOST
Examplecurl -X POST -b cookies    http://localhost:9763/store/site/blocks/application/application-update/ajax/application-update.jag -d 'action=updateApplication&applicationOld=app1&applicationNew=app2'

...

DescriptionGet details of an application.
URI  http://localhost:9763/store/site/blocks/application/application-list/ajax/application-list.jag
URI Parameters?action=getApplications&username=xxx
HTTP MethodsGET
Examplecurl -b cookies       http://localhost:9763/store/site/blocks/application/application-list/ajax/application-list.jag?action=getApplications&username=user1

...

DescriptionRemove an existing application.
URI   http://localhost:9763/store/site/blocks/application/application-remove/ajax/application-remove.jag
URI Parameters

action=removeApplication&application=xxx

HTTP MethodsPOST
Examplecurl -X POST -b cookies    http://localhost:9763/store/site/blocks/application/application-remove/ajax/application-remove.jag -d "action=removeApplication&application=app2"

...

DescriptionAdd a new API subscription.
URI   http://localhost:9763/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag
URI Parameters

action=addSubscription&name=xxx&version=xxx&provider=xxx&tier=xxx&applicationId=xxx

HTTP MethodsPOST
Examplecurl -X POST -b cookies    http://localhost:9763/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag -d 'action=addSubscription&name=API1&version=1.0.0&provider=user1&tier=gold&applicationId=1'

...

DescriptionList all API subscriptions.
URI   http://localhost:9763/store/site/blocks/subscription/subscription-list/ajax/subscription-list.jag
URI Parameters

action=getAllSubscriptions&username=xxx

HTTP MethodsGET
Examplecurl -b cookies    http://localhost:9763/store/site/blocks/subscription/subscription-list/ajax/subscription-list.jag?action=getAllSubscriptions&username=user1

...

DescriptionRemove an API subscription.
URI   http://localhost:9763/store/site/blocks/subscription/subscription-remove/ajax/subscription-remove.jag
URI Parameters

action=removeSubscription&name=xxx&version=xxx&provider=xxx&applicationId=xxx

HTTP MethodsPOST
Examplecurl -X POST -b cookies   http://localhost:9763/store/site/blocks/subscription/subscription-remove/ajax/subscription-remove.jag -d “action=removeSubscription&name=API1&version=1.0.0&provider=user1&applicationId=1”

...

DescriptionAdd a comment for an API.
URI   http://localhost:9763/store/site/blocks/comment/comment-add/ajax/comment-add.jag
URI Parameters

action=addComment&name=xxx&version=xxx&provider=xxx&comment=xxx

HTTP MethodsPOST
Examplecurl -X POST -b cookies    http://localhost:9763/store/site/blocks/comment/comment-add/ajax/comment-add.jag -d “action=addComment&name=API1&version=1.0.0&provider=user1&comment=Hello”