This project is a self made web server that enables you to mock any path with any method that returns any body.
It's based on node and Express
To launch the server just type:
npm run devand the server will start on localhost:8080
To run this server with some endpoints, you just need to put specific .json files in the resources folder. The .json need to have the following structure to work:
{
"name": "endpoint name",
"description": "what it does (just for doc.)",
"path": "/path/to/resource",
"queryParam": {
"name": "fooo"
},
"method": "GET",
"code": 200,
"response": {
"unfiltered": "Hello unknown",
"filtered": "Hello fooo"
}
}To launch the server just type:
npm run devand the server will start on localhost:8080
After the server started, you just go on http://localhost:3000/ to get the answer from you mock endpoint