Previous Page Next Page

Now the database is ready to be populated.

Mock Data

To get dummy data, https://www.mockaroo.com can be used.

  1. “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”.
  2. Leave “first_name”, “last_name”, “email” and “gender” unchanged.
  3. Change ip_address to “city” and set the type to “City”.
  4. Add another field. Name it “state”, set the type to “State (abbrev)” and change the set to “Only US”.
  5. Change the format to JSON.
  6. Download the data.

Bulk Import

Add a request to the Postman collection.

  1. Rename it “Bulk Create”
  2. Change “GET” to “POST”
  3. Set the request URL to “{{HOST}}/bulk/create?dataSource={{CONTACTS}}”.
  4. On the Headers tab, add a header “Content-Type” set to “application/json”.
  5. On the Body tab, select raw. Add {"documents" : } and paste in the JSON array from Mockaroo as the value of the “documents” property.
  6. Send the request.

Retrieval

Add a request to the Postman collection

  1. Rename it “GET Documents”
  2. Set the URL to “{{HOST}}/lists/byName?dataSource={{CONTACTS}}”.
  3. 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