Skip to content

sadabnepal/mountebank-api-mock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

service virtualization using mountebank

getting started

git clone https://github.com/sadabnepal/mountebank-api-mock.git &&
cd mountebank-api-mock

pre-requisite

NodeJs

install package

npm install

start stub

npm start

stub details

The project is using mountebank as a service virtualization tool, which provides following endpoints.

Base URL: http://localhost:4545/api 
http call endpoint status code payload
GET /users/{id} 200 N/A
GET /users?page={number} 200 N/A
POST /users 201 {"name": "sadab", "job": "tester" }
PUT /users/{id} 200 {"name": "saqib", "job": "admin" }
POST /register 200 {"email": "test@test.com", "password": "test@123" }
POST /login 200 {"email": "test@test.com", "password": "test@123" }

Note: default response will be empty object {} with response code: 404

Other Mocking libraries:

About

Service virtualization example using Mountebank to mock REST APIs and simulate backend services for testing and development.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors