Now the database is ready to be populated.
Mock Data
To get dummy data, https://www.mockaroo.com can be used.
- “id” field is not needed, but a “Form” field is required. Change the field name to “Form”, change the type to “Custom List” and set only one option - “Contact”.
- Leave “first_name”, “last_name”, “email” and “gender” unchanged.
- Change ip_address to “city” and set the type to “City”.
- Add another field. Name it “state”, set the type to “State (abbrev)” and change the set to “Only US”.
- Change the format to JSON.
- Download the data.
Bulk Import
Add a request to the Postman collection.
- Rename it “Bulk Create”
- Change “GET” to “POST”
- Set the request URL to “{{HOST}}/bulk/create?dataSource={{CONTACTS}}”.
- On the Headers tab, add a header “Content-Type” set to “application/json”.
- On the Body tab, select raw. Add
{"documents" : }
and paste in the JSON array from Mockaroo as the value of the “documents” property. - Send the request.
Retrieval
Add a request to the Postman collection
- Rename it “GET Documents”
- Set the URL to “{{HOST}}/lists/byName?dataSource={{CONTACTS}}”.
- Send the request.
There are various filter options available as query parameters on getting list entries, e.g. count and start. See the API for more details.
Previous Page Next Page