Postman Collection to Create Bulk Data - CDCgov/prime-simplereport GitHub Wiki
Using Postman Runner it is possible to create bulk data in any environment, such as creating a bunch of test results or patients.
Downloads
- Postman
- Environment
- Contains a base dev environment. See the steps to setup other environments.
- Collection
- Contains requests for creating test events & creating facilities
Setting up Postman environment
View the instructions to import the environment & collection into postman.
Basically, you can import the environment & collection using the import button seen below.
The token
variable will need to be updated frequently as the token expires within a few hours.
The token
can be fetched from the browser's local storage.
Adding additional environments
Values in each environment will vary. One way to fetch those values is to inspect the network calls and use those values to populate the environments in postman.
Using the runner for bulk requests
View the general instructions for using the postman runner.
Open the runner tab or press the run collection button on the Collection overview. Select or Drag & Drop the requests to be run. Set the number of iterations and delay (not required). 🚀