Runtime tools : Channels components : REST channel : Tasks : Handling Operation
  
Handling Operation
{Project Name}: TestRestChannel
{OperationName}: restChannelsOp
{KColl Name}: restKcollOp
{Data Name}: stringDataOp
{IColl Name}: listOp
{Index}:0
 
 
Resource
Method
Parameters
Consume
Produce
rest/operations/{operation}
POST
 
 
application/json
 
POST
 
application/json
application/json
1 Execute Operation. Access the URL.
http://localhost:8080/TestRestChannel/rest/operations/restChannelsOp
It would return a json string with all the context data in Operation.
2 Edit data value of Operation.
Access URL:
http://localhost:8080/TestRestChannel/rest/operations/restChannelsOp/
Input parameter
field: {"stringDataOp":"bca"}. It would return all the context data in Operation and change stringDataOp to bca.
KColl: {"restKcollOp":{"stringDataOp":"bca"}}. It would return all the context data in Operation and change stringDataOp of restKcollOp into bca.
IColl: {"listOp":[{"stringDataOp":"bca"}]}. It would return all the context data in Operation and change the data with Index 0 in stringDataOp of listOp into bca.
Note If you want to edit the data with index 1, you could use {"listOp":[{},{"stringDataOp":"bca"}]}
Go up to
Tasks