[SOLVED] How work with Defold http-api?

found that you can work with engine via http request → https://github.com/defold/defold/blob/dev/editor/doc/http-api.md

if i type follwing to terminal it shows json table with list of available commands:

curl http://localhost:43257/command/

but if type:

curl http://localhost:43257/command/build
# output: 405 Method Not Allowed
curl http://localhost:43257/command/thiscommanddoesntexists
# output: 405 Method Not Allowed

any tips?

You are missing the post I believe

curl -s -X POST localhost:43257/command/build

1 Like