2
我試圖更新發布的API與此捲曲招搖:WSO2更新招搖公佈的API
curl -X POST -b cookies "http://localhost:9763/publisher/site/blocks/item-add/ajax/add.jag" -d 'action=updateAPI&name=datumvalidatie&provider=admin&version=1.0.0&visibility=public&thumbUrl=&description=test&tags=validation&endpointType=nonsecured&tiersCollection=Gold,Bronze&http_checked=http&https_checked=https' -d 'endpoint_config={"production_endpoints":{"url":"https://www.test.com/datumvalidatieWebApi/api","config":null},"endpoint_type":"http"}' -d 'swagger={"basePath" : "/DatumvalidatieWebApi", "paths" : {"/perioden/ingangsdatum" : {"get": {"summary" : "test", "x-auth-type": "Application \u0026 Application User", "deprecated" : false, "produces" : ["application/json", "text/json", "application/xml", "text/xml"], "operationId" : "Ingangsdatum_Get", "responses" : {"200": {"schema" : {"$ref": "#/definitions/Periode"}, "description": "OK"}, "400" : {"schema" : {"type": "array", "items" : {"$ref" : "#/definitions/Object"}}, "description" : "BadRequest"}}, "x-throttling-tier" : "Unlimited", "tags" : ["Ingangsdatum"], "consumes": []}}}, "host" : "*******", "schemes" : ["http"], "definitions" : {"Periode" : {"description" : "Een periode", "type" : "object", "properties" : {"DatumVan " : {"format" : "date-time", "type" : "string"}, "DatumTot" : {"format" : "date-time", "type" : "string"}}}, "Object" : {"type" : "object", "properties" : {}}}, "swagger" : "2.0", "info" : {"description" : "Een collectie methoden om datumvalidaties uit te voeren.", "title" : "datumvalidatie", "version" : "1.0.0"}}'
我得到這樣的迴應:
"error" : true, "message" : "timeout"
curl: (6) Could not resolve host: \u0026
curl: (6) Could not resolve host: Application
curl: (3) [globbing] bad range in column 43
curl: (3) [globbing] unmatched brace in column 38
curl: (3) [globbing] unmatched close brace/bracket in column 85
curl: (6) Could not resolve host: collectie
curl: (6) Could not resolve host: methoden
......
是否有人知道我可以解決這個問題?
是的,我登錄之前,我試過這個。 我從登錄中得到了一個「error:false」消息,因此不能成爲問題。 – Rajco5
雖然你的捲髮適合我。 – Bee
嗯,在這種情況下,我可能需要查看AM的連接設置。如果我能找到解決方案,我會在這裏發佈。 謝謝你的時間。 – Rajco5