Cypress automation suite for the simple Node booking RESTful web services. Refer to original repo at https://github.com/mwinteringham/restful-booker for more info on the API This automation suite demonstrates:
- Testing most common HTTP verb APIs: GET, POST, PATCH, PUT, and DELETE
- Verifying status reponse and body contents
- Basic custom input generators
- Use of fakerJS for more extensive input generation
- Ensure mongo is up and running by executing
mongod
in your terminal - Clone the repo
- Navigate into the restful-booker root folder
- Run
npm install
- Run
npm start
Or you can run this via Docker:
- Clone the repo
- Navigate into the restful-booker root folder
- Run
docker-compose build
- Run
docker-compose up
- APIs are exposed on http://localhost:3001
API details can be found on the publically deployed version of Restful-Booker.