Via HTTP
You can call into a Reboot application directly using HTTP in
circumstances where you aren't using React or can't use an
ExternalContext because we don't generate code in the language
you're using.
tip
If you're trying to call into a Reboot application using React, go here!
For example, to call the reader method called Messages on the
Hello state type (declared in the hello.v1 package):
curl -XPOST http://localhost:9991/hello.v1.HelloMethods/Messages \
-H "x-reboot-state-ref:hello.v1.Hello:reboot-hello"
...incorporates:
localhost:9991- your Reboot application's URLhello.v1.HelloMethods-servicenameMessages- method namehello.v1.Hello- statemessagenamereboot-hello- state ID
Note that HTTP calls always use POST.
Here is another example, calling a writer method named Send with a "request"
as JSON:
curl -XPOST "http://localhost:9991/hello.v1.HelloMethods/Send" \
-H "x-reboot-state-ref:hello.v1.Hello:reboot-hello" \
-d '{"message":"Hello, World!"}'