mockwave is a tool that allows you to create mock APIs for testing and development. It helps simulate API responses, enabling you to test your frontend or integration workflows without relying on the actual backend or production API.
Read docs to know more
mockwave enables you to simulate real-world API behavior without needing to wait for the backend to be ready or risking interference with production data. It's perfect for testing your application's functionality and handling various API responses during development.
Read docs to know more
You can create a project by specifying a project name, API prefix, and version in the configuration. This creates the base structure for all endpoints and responses related to that project.
Read docs to know more
An endpoint in mockwave represents a specific path where an API request will be handled. You configure the endpoint name, the method (GET, POST, PUT, DELETE), and define mock responses for each one. The endpoint structure mimics what you would have in your real API.
Read docs to know more
To configure an endpoint, provide the project name, specify the endpoint path (like /users), and choose the HTTP method (e.g., GET or POST). After setting it up, the endpoint will be available for testing.
Read docs to know more
If no response is configured for an endpoint, mockwave will return the following default response:
To create a response, you must specify an HTTP status code (e.g., 200, 404) and the desired response body in JSON format. You can also set rules to determine which response will be returned based on query or body parameters.
Read docs to know more
Response rules allow you to simulate different API behaviors based on incoming requests. For example, you can create a rule where, if a query parameter like user-id=1 is present, the API will return a specific response such as a 201 status code. You can access query and body parameters using reserved variables like $query.{param_name}.
Read docs to know more
Yes! mockwave allows you to generate dynamic or fake data using the $faker library. For example, you can use $faker.string.uuid() to generate a random user ID or $faker.person.fullName() for a random name.
Read docs to know more
You can use the $loop variable to generate an array of objects. For example, you can loop a user object 10 times to simulate a list of users.
Read docs to know more
Yes, mockwave supports adding a delay to simulate slow network responses. You can add a delay={seconds} query parameter to your API call, with a maximum delay of 60 seconds.
Read docs to know more
Yes, mockwave imposes limits for performance reasons. The maximum JSON depth is 10, and the maximum response size is 512 KB.
Read docs to know more
Yes, possible to access query and body parameters during configure response, using $query.{param_name} and $body.{param_name} variables respectively to access query and body parameters.
Read docs to know more
No, you can only access query and body parameters.
Yes, in same ip, you can only send 5 request per second.
No, we don't allow to add collaborator at this moment.