API download
AnsweredHey, your API currently works through the browser, but I need to download the full documentation so I can reference it offline. Is there a PDF or downloadable version available? If not, any chance you could provide one? Thanks!
0
-
Hi Yakov,
You can navigate to
https://<serverIp>:7001/swagger-ui/openapi_v4.jsonand open and save the JSON output.Or use the following command (For macOS/Linux):
curl -k -s -X POST https://<serverIp>:7001/rest/v4/login/sessions \ -H "Content-Type: application/json" \ -d '{"username": "admin", "password": "password123", "setCookie": true, "durationS": 100, "setSession": true}' \ | jq -r '.token' \ | xargs -I {} curl -k -s -X GET https://<serverIp>:7001/swagger-ui/openapi_v4.json -H "Authorization: Bearer {}" \ | jq '.' > openapi_v4_pretty.jsonWith kind regards.
0
Please sign in to leave a comment.
Comments
1 comment