API testing with JavaScript : Cucumber JS

A test project to learn API testing with request-promise and Cucumber JS.

The test API is based on Node JS, Express and SQLite.

Installation

Clone the project and run the server.

npm start

Usage

npm test

Endpoints and methods

GET localhost:8000/api/users

POST localhost:8000/api/user

GET localhost:8000/api/user/:id

PATCH localhost:8000/api/user/:id

DELETE localhost:8000/api/user/:id

License

MIT

Acknowledgments

The code to create the test server was taken from: developerhowto.com