Skip to content

Testing the API

Using the Postman collection runner for tests

Postman, the API creation and testing tool, has a command line version of the tooling called Newman. Newman can run locally from the command line to test a locally-running version of the Digital Growth Charts API against all our standard queries.

At present, this only checks for a 200 (OK) response, not the actual content of the response. This will be improved in the near future.

newman run --env-var "baseUrl=localhost:8000"

This command gets the Collection information from our public RCPCH Postman workspace, and runs it against the local server.