2017-05-04 49 views

回答

5

尝试使用批量发布API,像这样:

POST /api/1/services/api/1/deployment/bulk-golive.json?site={siteName}&path={path}&environment={env}

您需要先登录,所以登录并保存调用此API时使用cookie。

4

添加到sumerz响应,你可以使用它来登录

curl -i -b cookies.txt -H "Content-Type:application/x-www-form-urlencoded" -H "Accept:application/json, text/plain, */*" -c cookies.txt -X POST -d "username=admin&password=admin" http://localhost:8080/studio/api/1/services/api/1/user/login.json 

那么你可以使用-b-c使卷曲知道会话。