Handling Operation

About this task

As the picture shows, there are some parameters required for the process. Here lists all the parameters and the example values:
  • {Project Name}: TestRestChannel
  • {OperationName}: restChannelsOp
  • {KColl Name}:restKcollOp
  • {Data Name}:stringDataOp
  • {IColl Name}:listOp
  • {Index}:0

Procedure

  1. Execute Operation. Access the URL by method.
    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.
    1. Access URL:
      http://localhost:8080/TestRestChannel/rest/operations/restChannelsOp/
    2. Content Options is application/json
    3. Input parameter
      • field:{"stringDataOp":"bca"}. It would return all the in Operation and change stringDataOp to bca.
      • KColl:{"restKcollOp":{"stringDataOp":"bca"}}. It would return all the in Operation and change stringDataOp of restKcollOp into bca.
      • IColl:{"listOp":[{"stringDataOp":"bca"}]}. It would return all the in Operation and change the data with Index 0 in stringDataOp of listOp into bca.
        Tip: If you want to edit the data with index 1, you could use {"listOp":[{},{"stringDataOp":"bca"}]}