Welcome to this new release of Mockoon. There are several bug fixes and new features in this version that we hope you will like.
Mockoon is an open-source project built by volunteer maintainers. If you like our application, please consider sponsoring us and join all the Sponsors and Backers who helped this project over time!
We are excited to release a new long-awaited feature: the CRUD endpoint. Where Mockoon routes are independent and stateless, CRUD endpoints can generate multiple routes to perform CRUD operations (Create, Read, Update, Delete) on data buckets. Data buckets are generated when the server start, their state persisting between calls. It makes them the perfect tool to simulate small databases.
Head over to the CRUD routes documentation to learn everything you need to make the most of them.
Mockoon desktop and CLI now listen by default to both IPv4 (0.0.0.0) and IPv6 (::) default addresses. You can also override the hostname in the desktop application in the environment settings tab:
(Issue #930)
Mockoon can now create responses from OpenAPI examples
during import. Considering this partial OpenAPI YAML specification file:
/activities:
get:
summary: List of activities
responses:
'200':
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Activity'
examples:
Sports:
value:
- id: 1
name: Basketball
- id: 2
name: Volleyball
Music:
value:
- id: 3
name: Guitar
- id: 4
Mockoon will automatically create multiple responses from the schema and the examples:
(Issue #967)
Mockoon now supports WebDAV's HTTP methods for distributed authoring as specified in the RFC2518 Section 8:
(Issue #937)
We added a new setting to auto-start the environments when the application launches:
(Issue #121)
We improved the logs interface to clarify the purpose of the delete button:
(Issue #686)
-p
at runtime or ports
inside a docker-compose configuration file. (Issue #932)text/markdown
content type was added to the headers auto-completion.A big thank you to the following people who helped to make Mockoon better:
Welcome to this new release of Mockoon. There are several bug fixes and new features in this version that we hope you will like.
Mockoon is an open-source project built by volunteer maintainers. If you like our application, please consider sponsoring us and join all the Sponsors and Backers who helped this project over time!
faker
templating helper is no longer stringifying arrays and objects. It can now be used with other helpers like each
. (Issue #880)data
and dataRaw
helpers do not return the full data bucket anymore when nothing was found at a specific path. (Issue #918)You can now organize your routes into folders and sub-folders:
This new feature allows users to better organize their routes and make their APIs more readable and easier to navigate, with a clearer hierarchy. During the development, we also reworked how the drag and drop and the filtering are handled, which should result in an overall better experience. Head over to our folders documentation to learn more about this feature. (Issue #97)
We published a new @mockoon/serverless package to help you run your mocks in cloud functions and serverless environments (AWS Lambda, GCP/Firebase Functions, etc.). Head over to the dedicated documentation to learn more.
(Issue #861)
dateFormat
helper has been added. (Issue #873)404 - Not Found
) is now visible in the logs tab. (Issue #852)status
templating helper is available. It lets you customize the response status code inside a template. (Issue #894)faker
templating helper is now compatible with some helpers like queryParam
. (Issue #887)data
and dataRaw
helpers do not return the full data bucket anymore when nothing was found at a specific path. (Issue #918)A big thank you to the following people who helped to make Mockoon better:
status
helper. (Issue #894)dateFormat
helper. (Issue #873)dataRaw
helper now correctly returns the data at the object path. Falsy values at path are also supported. (Issue #842)Mockoon is an open-source project built by volunteer maintainers. If you like our application, please consider sponsoring us and join all the Sponsors and Backers who helped this project over time!
setVar
helper has been reworked and is not breaking anymore when used inside an each
. The usage of variables is also uniformized and now requires an @
. See the updated documentation for more information. (Issue #793)We added a new feature called "Data buckets". It's a key-value store available in each environment. Each data bucket is persistent and generated when the server starts. Data buckets can be directly linked to a route response or using one of the two new helpers: data
and dataRaw
.
Read the documentation to learn more.
This first step will make the development of CRUD and GraphQL routes easier.
(Issue #783)
Until now, the save and open dialogs were pointing by default to Mockoon's binary folder. It could result in data loss as the folder could be wiped on some systems during an update. The dialogs now open to the application's data folder and save their current working directory as it should. (Issue #756)
parseInt
helper. (Issue #766)date
helper is now compatible with other helpers like queryParam
. (Issue #781)objectId
helper is now an alias for Faker.js' mongodbObjectId
method. (Issue #829)setVar
helper has been reworked and is not breaking anymore when used inside an each
. The usage of variables is also uniformized and now requires an @
. See the updated documentation for more information. (Issue #793)Welcome to this new release of Mockoon. There are several bug fixes and new features in this version that we hope you will like.
Mockoon is an open-source project built by volunteer maintainers. If you like our application, please consider sponsoring us and join all the Sponsors and Backers who helped this project over time!
setVar
helper has been reworked and is not breaking anymore when used inside an each
. The usage of variables is also uniformized and now requires an @
. See the updated documentation for more information. (Issue #793)We added a new feature called "Data buckets". It's a key-value store available in each environment. Each data bucket is persistent and generated when the server starts. Data buckets can be directly linked to a route response or using one of the two new helpers: data
and dataRaw
.
Read the documentation to learn more.
This first step will make the development of CRUD and GraphQL routes easier.
(Issue #783)
Until now, the save and open dialogs were pointing by default to Mockoon's binary folder. It could result in data loss as the folder could be wiped on some systems during an update. The dialogs now open to the application's data folder and save their current working directory as it should. (Issue #756)
parseInt
helper. (Issue #766)date
helper is now compatible with other helpers like queryParam
. (Issue #781)objectId
helper is now an alias for Faker.js' mongodbObjectId
method. (Issue #829)setVar
helper has been reworked and is not breaking anymore when used inside an each
. The usage of variables is also uniformized and now requires an @
. See the updated documentation for more information. (Issue #793)Welcome to this new release of Mockoon. There are several bug fixes and new features in this version that we hope you will like.
Mockoon is an open-source project built by volunteer maintainers. If you like our application, please consider sponsoring us and join all the Sponsors and Backers who helped this project over time!
There is a new mode alongside randomized and sequential responses: disabled rules. It will always serve the default response and ignore the rules.
(Issue #498)
You can now invert the response rules' operators by clicking on the toggle button with an exclamation mark:
After enabling this option, you can read the operators like this: not a regex match, not equals, etc.
(Issue #690)
multipart/form-data
supportTemplating helpers (body
and bodyRaw
) and response rules are now compatible with multipart/form-data
. Entering requests containing multipart data with the correct Content-Type
will be automatically parsed. You can then retrieve any variable or use them in the rules like you would do with a JSON body.
(Issue #347)
Properties with dots are now supported in the body
and bodyRaw
templating helpers and in the rules. Escape the dots when you want to reach values contained in a property with dots:
Copy{ "property.with.dot": "value" }
(Issue #338)
application/soap+xml
content type. (Issue #757)We started working on a new internal release system that relies more on our own infrastructure rather than GitHub releases (Issue #769). This is a long-term plan that will allow us to offer more release channels in the future.
Welcome to this new release of Mockoon. There are several bug fixes and new features in this version that we hope you will like.
We also started working on the GraphQL mocking. As we want to deliver the right feature, we would be glad to gather more feedback on what you expect. Feel free to reach us on our Discord server, or comment on the issue.
Mockoon is an open-source project built by volunteer maintainers. If you like our application, please consider sponsoring us and join all the Sponsors and Backers who helped this project over time!
After temporarily disabling the new environment files watcher in v1.18.1 due to an issue (#649), we reworked this feature from the ground up. It must now be manually activated in the settings and offers more choices:
You can now activate the file watcher and reload the environments after validating a confirmation prompt, or automatically.
(Issue #649)
Defining the default response is now easier. Before this change, the default response was always the first one. Now, the blue flag indicates the default response and you can change it by clicking on the grey flags:
(Issue #252)
We added new templating helpers: lowercase
, uppercase
, and base64Decode
. (Issues #655 and #625)
We also updated Faker.js to version 6. It offers some new helpers and locales. (Issue #716)
A new context menu entry is available to copy the full API endpoint path:
(Issue #633)
Following the introduction of a custom privacy-friendly telemetry system last year, we removed Google Analytics from the desktop application. (Issue #713)
setVar
helper is now correctly working inside block helpers. (Issue #706)faker
helper now returns the correct value and not only strings. It makes this helper compatible with other helpers that requires numbers, arrays or booleans to work (e.g. int
, if
, each
, etc.). (Issue #699)We moved the project to a monorepo to accelerate the development and reduce the amount of manipulation we have to do when working on features. (Issue #640)
We also updated the CI workflows to always test the packaged desktop application when opening PRs. It will greatly reduce the amount of testing needed during a release.
We updated the OpenAPI documentation to explain the discrepancies between the specification and Mockoon's features.
A big thank you to the following people who helped to make Mockoon better: