REST

Common tests for REST APIs

Features of this Example

  • Basic authentication

  • Storing and Reading Environment Variables in Asserted

  • Test the list, create, get, update, and remove REST endpoints

Walkthrough

This example was referenced in a walkthrough about Node API Health Checks and Uptime

Try it out

Repo is available here.

# Clone example
git clone https://github.com/assertedio/node-uptime

# Enter directory and install
cd graphql-uptime/
npm install

# Run asserted tests
npm run test:asrtd

Tests

Can also be viewed on github here.

Last updated

Was this helpful?