Versions Compared

Key

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

...

  1. Implement a REST API endpoint in the test application itself, which is open only in test environment and which will insert the initialization data upon invocation of the API.



    Note: You may also create a separate application which loads data in your database and provides you an API for that.

  2. Create another application, which provide REST APIs to execute commands on the test machine in which test application's data resides. Now with the help of this application, we can insert database dumps through commands and these commands can be invoked via REST APIs.

    excerpt-include
    Execute a system command, bash script via REST API
    Execute a system command, bash script via REST APInopaneltrue