Forum Discussion

jvondam's avatar
jvondam
New Contributor
4 years ago
Solved

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" -...
  • HKosova's avatar
    HKosova
    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!