当我执行 curl 请求以在 API Manager-Publisher 中发布 api 时,它显示它已添加...但无法更改其状态.. !!! 也无法打开该 API !!!
我的请求:
curl -X POST -b cookies http://my.api-site.com:9763/publisher/site/blocks/item-add/ajax/add.jag \
-d "action=addAPI&name=TwitterAPI&context=/twitter&version=1.0.0&tier=Bronze&tier=Gold&transports=http&http_checked=http&transports=https&https_checked=https&description=Twitter&visibility=public API&tags=twitter,api&resourceCount=0&resourceMethod-0=GET,PUT,POST,DELETE,OPTIONS&resourceMethodAuthType-0=Application & Application User,Application & Application User,Application & Application User,Application & Application User,None&uriTemplate-0=/*&resourceMethodThrottlingTier-0=Unlimited, Unlimited, Unlimited, Unlimited, Unlimited&tiersCollection=Bronze,Gold,Silver,Unlimited" \
-d 'endpoint_config={"production_endpoints":{"url":"http://search.twitter.com","config":null},"endpoint_type":"http"}'
回应:
{"error" : true, "message" : " null"}
谁能帮忙!!!