For each route that you are mocking, you can add multiple responses, with different HTTP response codes. The response marked as active will be returned by the server.
This allows you to test success and error conditions, and switch between them on the fly.
You can define route parameters, and regex routes, just like you would in ExpressJS.
Any valid ExpressJS route is also a valid mocktastic route.
A fully featured code editor, allows you to customize your response body easily, while offering helpful hints and suggestions.
You can switch the code editor between plaintext, HTML, XML and JSON formats by setting the appropriate Content-Type header.
You are not limited to sending text responses with mocktastic. You can also choose to serve static files.
When a request is setup to serve a file, the request body is ignored even if it is set, and Content-Type headers are changed automatically to reflect the file type.
Your mocktastic server can be setup to proxy requests through to any server.
You can even tell it to proxy to the remote server, even if a response has been defined locally.
If you have setup request proxying, mocktastic allows you to automatically record all incoming responses.
So now you can easily clone a server running on a developers machine by proxying requests through to their machine, and then you will no longer have to ask them to keep the servers running.
You can create your own teams on mocktastic and invite people to join via email.
Once you have created a team, anyone on that team who is either an Admin or a Publisher, can start publishing their local servers to the team.
Whenever you publish a server to your team, everyone on the team gets notified automatically.
They can then choose to download/update the newly published server. An update takes just two clicks. It's that simple.
You can define any custom header or HTTP response code for your requests.
Even if they aren't standard, mocktastic will happily server them.
All mocktastic servers keep a log of all incoming requests and outgoing responses, in the current session.
You can drill down and analyze each request and response in the log items individually. Logs also provide information about response time and the source of the response (local or proxy).
All features included
Priority support via email
Currently, mocktastic is in public beta. While in beta, all users get an unlimited free account.
Are you a lone wolf? Don't need team features? Want mocktastic for individual use? Just download the app and get going! No need to create an account.
Student? Open source project? Email firstname.lastname@example.org for an unlimited free account.