Difficulty: ★★☆☆☆ (Intermediate)
Rewards: ★★☆☆☆ (Medium)
Context: Dataflow Context
Read Time: 5 min
Web API server allows us to expose services on the internet through HTTP protocol.
Making web API server is quite easy once you understand the concepts. If you need a refresher, consult Knowledge Base on the topic.
We can make use of Ol'ista's Web API feature to develop simple web API servers in a graphical manner in the dataflow context:
On the server side, just use the Web API Capability, along with graph references (or embedded subgraphs) to define endpoint behaviors:
On the client side, we can use Send Requst with corresponding method type.
For the referenced graphs:
String Map
and String
;EndpointResponse
;EndpointResponse
object.Below shows the complete setup. The top two windows are the subgraphs referenced as handlers.
After running the server Serve, we can view the result of Send Request on the client (lower right).