HTTP endpoints for your apps | Anvil
阿新 • • 發佈:2018-12-29
« Anvil Blog
New: Make an API for your Anvil app
Sometimes we want to connect other programs with our Anvil apps. Whether it’s a native mobile app, a shell script, or a web service like Twilio, most things expect to make REST or plain HTTP requests.
As of today, this is all it takes to publish an HTTP API that returns some JSON:
We can demonstrate it with the curl
command-line program:
$ curl https://http-endpoint-demo.anvilapp.net/_/api/greet/Joanne {"message":"Hello, Joanne!"}