...
Description | Check if the user logged in user is any one in a given list of users |
URI | https:// api.cloud.wso2.com /publisher/site/blocks/item-add/ajax/add.jag |
URI Parameters | action=validateRoles&roles=<list of roles> |
HTTP Methods | GET |
Example | curl -b cookies " https:// api.cloud.wso2.com /publisher/site/blocks/item-add/ajax/add.jag?action=validateRoles&roles=admin" |
Get List of API Creators
Description | Get the list of all the API creators. |
---|---|
URI | https://api.cloud.wso2.com/publisher/site/blocks/stats/api-usage-user/ajax/stats.jag |
Request Headers | "Content-Type" -> "application/x-www-form-urlencoded" |
HTTP Methods | POST |
Payload | action=getAPIUsageByUser¤tLocation=/publisher/site/pages/all-statistics.jag&fromDate=2014-05-10 00:00:00&toDate=2016-12-16 13:41:13&apiFilter=allAPIs |
Example | curl -v -b cookies -XPOST -H "Content-type: application/x-www-form-urlencoded" -d 'action=getAPIUsageByUser¤tLocation=/publisher/site/pages/all-statistics.jag&fromDate=2014-05-10 00:00:00&toDate=2016-12-16 13:41:13&apiFilter=allAPIs' ' https://api.cloud.wso2.com/publisher/site/blocks/stats/api-usage-user/ajax/stats.jag ' |
Sample Response | < HTTP/1.1 200 OK |
Get Subscriber Count
Description | Get the number of subscribers. |
---|---|
URI | https://api.cloud.wso2.com/publisher/site/blocks/stats/api-subscriptions/ajax/stats.jag |
Request Headers | "Content-Type" -> "application/x-www-form-urlencoded" |
HTTP Methods | POST |
Payload | action:getSubscriberCountByAPIs |
Example | curl -v -b cookies -XPOST -H "Content-type: application/x-www-form-urlencoded" -d 'action=getSubscriberCountByAPIs¤tLocation=/publishe/site/pages/all-statistics.jag&apiFilter=allAPIs' 'https://api.cloud.wso2.com/publisher/site/blocks/stats/api-subscriptions/ajax/stats.jag' |
Sample Response | < HTTP/1.1 200 OK |
Get API Usage By Resource Path
Description | Get the API usage based on the resource path. |
---|---|
URI | https://api.cloud.wso2.com/publisher/site/blocks/stats/api-usage-resource-path/ajax/stats.jag |
Request Headers | "Content-Type" -> "application/x-www-form-urlencoded" |
HTTP Methods | POST |
Payload | action:getAPIUsageByResourcePath |
Example | curl -v -b cookies -XPOST -H "Content-type: application/x-www-form-urlencoded" -d 'action=getAPIUsageByResourcePath¤tLocation=%2Fpublisher%2Fsite%2Fpages%2Fall-statistics.jag&fromDate=2014-05-10+00%3A00%3A00&toDate=2016-12-16+14%3A34%3A33&apiFilter=allAPIs' 'https://api.cloud.wso2.com/publisher/site/blocks/stats/api-usage-resource-path/ajax/stats.jag' |
Sample Response | < HTTP/1.1 200 OK |
Get API Usage By Destination
Description | Get the API usage based on the destination |
---|---|
URI | https://api.cloud.wso2.com/publisher/site/blocks/stats/api-usage-destination/ajax/stats.jag |
Request Headers | "Content-Type" -> "application/x-www-form-urlencoded" |
HTTP Methods | POST |
Payload | action:getAPIUsageByDestination |
Example | curl -v -b cookies -XPOST -H "Content-type: application/x-www-form-urlencoded" -d 'action=getAPIUsageByDestination¤tLocation=%2Fpublisher%2Fsite%2Fpages%2Fall-statistics.jag&fromDate=2014-05-10+00%3A00%3A00&toDate=2016-12-16+14%3A34%3A33&apiFilter=allAPIs' 'https://api.cloud.wso2.com/publisher/site/blocks/stats/api-usage-destination/ajax/stats.jag' |
Sample Response | < HTTP/1.1 200 OK |
Get API Usage by Provider
Description | Get API Usage by Provider. |
---|---|
URI | https://api.cloud.wso2.com/publisher/site/blocks/stats/api-usage/ajax/stats.jag |
Request Headers | "Content-Type" -> "application/x-www-form-urlencoded" |
HTTP Methods | POST |
Payload | action:getProviderAPIUsage |
Example | curl -v -b cookies -XPOST -H "Content-type: application/x-www-form-urlencoded" -d 'ac |
Sample Response | < HTTP/1.1 200 OK |
Get API and Application Throttling Data
Description | Get the throttling related data related to the APIs and applications. |
---|---|
URI | https://api.cloud.wso2.com/publisher/site/blocks/stats/api-throttledcounts/ajax/stats.jag |
Request Headers | "Content-Type" -> "application/x-www-form-urlencoded" |
HTTP Methods | POST |
Payload | action:getThrottleDataOfAPIAndApplication |
Example | curl -v -b cookies -XPOST -H "Content-type: application/x-www-form-urlencoded" -d 'action=getThrottleDataOfAPIAndApplication¤tLocation=%2Fpublisher%2Fsite%2Fpages%2Fall-statistics.jag&apiName=Cedum&appName=&fromDate=2014-05-10+00%3A00%3A00&toDate=2016-12-16+15%3A07%3A00&apiFilter=allAPIs' 'https://api.cloud.wso2.com/publisher/site/blocks/stats/api-throttledcounts/ajax/stats.jag' |
Sample Response | < HTTP/1.1 200 OK |
Get API Response Fault Count
Description | Get the response fault count of APIs. |
---|---|
URI | https://api.cloud.wso2.com/publisher/site/blocks/stats/faulty-invocations/ajax/stats.jag |
Request Headers | "Content-Type" -> "application/x-www-form-urlencoded" |
HTTP Methods | POST |
Payload | action:getThrottleDataOfAPIAndApplication |
Example | curl -v -b cookies -XPOST -H "Content-type: application/x-www-form-urlencoded" -d 'action=getAPIResponseFaultCount¤tLocation=%2Fpublisher%2Fsite%2Fpages%2Fall-statistics.jag&fromDate=2014-05-10+00%3A00%3A00&toDate=2016-12-16+15%3A07%3A00&apiFilter=allAPIs' 'https://api.cloud.wso2.com/publisher/site/blocks/stats/faulty-invocations/ajax/stats.jag ' |
Sample Response | < HTTP/1.1 200 OK |