Current APIs
For a complete list of the currently supported Publisher APIs, go to https://docs.wso2.com/display/AM200/apidocs/publisher.
...
Description | Add a new API. | ||||||||||||||||||||||||||||||||||||||||||
URI | http://localhost:9763/publisher/site/blocks/item-add/ajax/add.jag | ||||||||||||||||||||||||||||||||||||||||||
URI Parameters | Given below are the parameters that you can pass with an Add-API call. Mandatory ones are marked with a *.
| ||||||||||||||||||||||||||||||||||||||||||
HTTP Methods | POST | ||||||||||||||||||||||||||||||||||||||||||
Example | curl -X POST -b cookies http://localhost:9763/publisher/site/blocks/item-add/ajax/add.jag -d "action=addAPI&name=PhoneVerification&context=/phoneverify&version=1.0.0&visibility=public&thumbUrl=&description=Verify a phone number&tags=phone,mobile,multimedia&endpointType=nonsecured&tiersCollection=Gold,Bronze&http_checked=http&https_checked=https&resourceCount=0&resourceMethod-0=GET&resourceMethodAuthType-0=Application&resourceMethodThrottlingTier-0=Unlimited&uriTemplate-0=/*&default_version_checked=default_version&bizOwner=xx&bizOwnerMail=xx@ee.com&techOwner=xx&techOwnerMail=ggg@ww.com" -d'endpoint_config={"production_endpoints":{"url":"http://ws.cdyne.com/phoneverify/phoneverify.asmx","config":null},"endpoint_type":"http"}'; |
...
Description | Change the API's status. |
URI | http://localhost:9763/publisher/site/blocks/life-cycles/ajax/life-cycles.jag |
URI Parameters | action=updateStatus&name=xxx&version=1.0.0&provider=apiCreateName&status=PUBLISHED&publishToGateway=true&requireResubscription=true |
HTTP Methods | POST |
Example | curl -X POST -b cookies 'http://localhost:9763/publisher/site/blocks/life-cycles/ajax/life-cycles.jag' -d 'action=updateStatus&name=PhoneVerification&version=1.0.0&provider=admin&status=PUBLISHED&publishToGateway=true&requireResubscription=true' |
...
Description | Add a new API document. | ||
URI | http://localhost:9763/publisher/site/blocks/documentation/ajax/docs.jag | ||
URI Parameters | Add Document: action=addDocumentation&provider=xxx&apiName=xxx&version=xxx&docName=xxx&summary=xxx&docType=xxx& sourceTypenewType=xxx& docUrlsourceType=xxx& summarydocUrl= xxx&docLocation=xxx&docVisibility=owner_only/ privateprivate Note that docVisibility is applicable only if you have enabled it. See API documentation visibility. Add Document file: action=addDocumentation&provider=xxx&apiName=xxx&version=xxx&docName=xxx&docTypesummary=xxx&sourceTypedocType=xxx&docUrlnewType=xxx&summarysourceType=xxx&docUrl=&docLocation=xxx Update Document: action=addDocumentation&mode=Updatexxx&provider=xxx&apiName=xxx&version=xxx&docName=xxx&summary=xxx&docType=xxx&sourceTypenewType=xxx&docUrlsourceType=xxx&summarydocUrl=xxx&docLocation=xxx
| ||
HTTP Methods | POST | ||
Example | Add Document: curl -X POST -b cookies http://localhost:9763/publisher/site/blocks/documentation/ajax/docs.jag -d "action=addDocumentation&provider=adminxxx&apiName=PhoneVerificationxxx&version=1.0.0xxx&docName=xxx&summary=testDocxxx&docType=how toxxx&newType=xxx&sourceType=inlinexxx&docUrl=&summary=testing&docLocation=" Add Document file: curl -X POST -b cookies http://localhost:9763/publisher/site/blocks/documentation/ajax/docs.jag -F "action=addDocumentation" -F "provider=admin" -F "apiName=testAPi" -F "version=1.0.0" -F "docName=testDoc2" -F "docType=how to" -F "sourceType=file" -F "docUrl=" -F "summary=testing" -F "docLocation=@test.txt" Update Document: curl -X POST -b cookies http://localhost:9763/publisher/site/blocks/documentation/ajax/docs.jag -d "action=addDocumentation&mode=Update&provider=admin&apiName=PhoneVerificationPizzaShackAPI&version=1.0.0&docName=testDocSample&summary=sample summary updated&docType=how to=other&newType=primary&sourceType=inline&docUrl=&summary=new summary&docLocation=" |
Remove an API Document
Description | Remove an API document. |
URI | http://localhost:9763/publisher/site/blocks/documentation/ajax/docs.jag |
URI Parameters | action=removeDocumentation&provider=xxx&apiName=xxx&version=xxx&docName=xxx&docType=xxx |
HTTP Methods | POST |
Example | curl -X POST -b cookies http://localhost:9763/publisher/site/blocks/documentation/ajax/docs.jag -d '"action=removeDocumentation&provider=admin&apiName=PhoneVerificationPizzaShackAPI&version=1.0.0&docName=testDocSample&docType=How To'HowTo" |
Get all Throttling Tiers
Description | Get the throttling tiers that can be applied to APIs |
URI | http://localhost:9763/publisher/site/blocks/item-add/ajax/add.jag? |
URI Parameters | action=getTiers |
HTTP Methods | GET |
Example | curl -b cookies http://localhost:9763/publisher/site/blocks/item-add/ajax/add.jag?action=getTiers |
...