jvondam
4 years agoNew Contributor
Curl command on Rest API giving HTTP 415 Unsupported Media Type
I'm trying use curl to send a custom format POST using the Rest API. I'm attempting to follow the documentation but am still getting the 415 response. curl -H "Content-Type: application/json"
-...
- 6 years ago
Hi mewalig,
I have fixed the example in the docs - the error was that the "servers" definition was missing the "url" key:
# Incorrect servers: - https://hooks.slack.com # Correct servers: - url: https://hooks.slack.com
The GitHub repository is the recommended place to report issues with swagger.io docs, but we monitor this forum as well.
Thanks!