Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Have a look at the copy method.

  

The copy method accepts 2 arguments:

  • sourcePath
  • targetPath

  

Notice that those 2 arguments are annotated with FormParam annotation, which indicates that the parameters are to be specified in the body of the request (in the form of URL encoded key-value pairs).

Let's do a quick test. Launch your web browser again and type the following in the address bar (replace hostname with the name or IP address of your IBM i server):

 

...

 

...

 http://<hostname>:8080/lansa-tutorial/files/copy

You should get the following response.

...