Valandur / Web-API

RESTful web server for Minecraft Sponge including an admin panel
https://valandur.github.io/Web-API/
MIT License
66 stars 17 forks source link

Command endpoint status 415 #125

Closed beardyraider closed 5 years ago

beardyraider commented 5 years ago

When I try to run an command via /cmd, I am getting status 415, Unsupported Media Type. Already tried: curl -X POST http://localhost:8080/api/v5/cmd -H "X-WebAPI-Key: MYKEY" -d '[{"command": "weather clear", "hiddenInConsole": true, "name": "test", "waitLines": 0, "waitTime": 0}]' .