Easily mock server responses for apps with an easy to use GUI on your local device.
Please update to new the newest version to have a better experience.
- Data Persistence.
- Better Error Handling.
- Support for more HTTP verbs.
- Switch between profiles from UI.
- Inline JSON Editor.
- Integration with your Projects.
- VSCODE extension.
- GRAPHQL support
- More flexibility.
- Interactive UI
- Working API in 3 clicks
- Runs Locally
- Data Persistence
- Cross platform
Install mock-ui with npm
npm install -g mock-ui
mock-ui
POST http://localhost:8008/routes
POST http://localhost:8008/user/add
POST http://localhost:8008/api/:user-id
Parameter | Type | Description |
---|---|---|
user-id |
string |
Required. id of your user |
POST http://localhost:8008/routes/add
{
"id": "1Qupx5C5BU",
"route": "users",
"response": {
"name": "John Doe",
"age": 20
}
}
Parameter | Type | Description |
---|---|---|
id |
string |
Required. id of your user |
route |
string |
Required. name of route |
response |
string |
Required. JSON that will be returned as response |
POST http://localhost:8008/:user-id/:route
Parameter | Type | Description |
---|---|---|
id |
string |
Required. id of your user |
route |
string |
Required. name of route |
PATCH http://localhost:8008/routes/update
{
"id": "1Qupx5C5BU",
"route": "users",
"response": {
"name": "Jane Doe",
"email": "jane@email.com",
"age": 25
}
}
Parameter | Type | Description |
---|---|---|
id |
string |
Required. id of your user |
route |
string |
Required. name of route |
response |
string |
Required. JSON that will be returned as response |
DELETE http://localhost:8008/routes/del
{
"id": "yWqkIj5riP",
"route": "users"
}
Parameter | Type | Description |
---|---|---|
id |
string |
Required. id of your user |
route |
string |
Required. name of route |
Clone the project
git clone https://github.com/elliot40404/mock-server.git mock-ui
Go to the project directory
cd mock-ui
Install dependencies
npm install
Start the server
npm run start
Create a link to run globally
npm link
Contributions are always welcome!
Client: VUE3
Server: Node, Express
Checkout https://chaos-8ef21.web.app/ for an web editor