Details
-
Type:
Bug
-
Status: New
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:
-
Notability:3
Description
The swagger UI curl example for the tasks/run API does not work as shown:
curl -X 'POST' \ 'http://localhost:8081/service/rest/v1/tasks/42592698-59bf-4207-a208-baaeef1baea5/run' \ -H 'accept: application/json' \ -d ''
The "-d" parameter causes an empty content to be sent, and this fails because the content type is recognized.
Expected: The API example should either leave "-d" off, or add: -H "Content-Type: application/json"