mockoon logo with screenshot

December 2023 news

Mockoon quarterly news for December 2023: new releases, callbacks, global variables, API playground, and more.

Guillaume, Founder
Posted by Guillaume, Founder
|
newsreleases

Welcome to the last quarterly news of the year 2023! We wish you a happy New Year 2024, full of API mocking! šŸŽ‰

šŸ’” You can subscribe to this quarterly news by signing up for our newsletter.

In this update, we have a lot to share since September, including exciting new features, upcoming developments, and a new API playground. Read on to discover what's been happening in the world of Mockoon.

Ā šŸ“¦ New releases

We have released three new versions since September:

Ā ā˜Žļø Callbacks

Callbacks are a way to make one or more HTTP calls after an entering request reaches your route. This is useful to call other APIs or micro-services, or to trigger a webhook. Callbacks are fully configurable and can be activated after a certain delay:

callbacks configuration interface

callback invocation interface

šŸ“˜Ā Read the documentation

Ā šŸ—ƒļø CRUD filtering and searching

This new feature adds search and filter options to the main GET endpoint of a CRUD route, using query parameters. Many operators are available to filter your data like _eq,_gt,_lte, or _start. They can filter on any property of your data, including nested properties using the dot notation:

/users?name_eq=John&age_gt=18&address.city_start=New

You can also use the search parameter to search for a string in all properties of your data:

/users?search=john

šŸ“˜Ā Read the documentation

Ā šŸŒ Global variables

Mockoon now supports global variables that can be set and accessed using the setGlobalVar and getGlobalVar helpers at runtime. It's the perfect way to share data between routes or to store data that needs to be reused in multiple places, like simulating an authentication workflow.

Copy
{{setGlobalVar 'myVar' 'myValue'}} {{getGlobalVar 'myVar'}}

These variables can be used anywhere templating is supported, like the response body or headers. Their values are reset when the environment is stopped or restarted.

šŸ“˜Ā Read the documentation

Ā šŸŽØ Command palette

We added a new command palette in the desktop application to quickly access all the application's features. You can open it by pressing Ctrl+P (Windows/Linux) or Cmd+P (MacOS). You can also access it by clicking on the icon in the header.

It currently supports most common actions like creating new environments, starting/stopping them, opening the settings, etc. You can also search for any environment, route, or data bucket by typing their name or path. We will add more actions in the future. Let us know what you think, and do not hesitate to suggest new actions on our Discord server or GitHub discussions.

screenshot of the desktop application with the command palette opened

Ā šŸ”Œ Upcoming WebSocket support

One of our contributors started working on adding support for WebSockets. A long-awaited feature that will surely be appreciated by many of you. Feel free to give feedback on his pull request. Now is the time! šŸ˜‰

Ā šŸ› New API playground

We have created a new API playground. It is a free and ready-to-use mock API offering multiple CRUD endpoints with fake data. The perfect tool to quickly prototype your frontend applications, test your API calls, or learn about APIs.

The API playground is available at https://playground.mockoon.com and was built with Mockoon, of course!

screenshot of the API playground in mockoon desktop

Ā šŸ§‘ā€šŸ« Official course

We started working on an official course to help you get started with Mockoon. It should be available in the first quarter of 2024. You can already subscribe to the waiting list to be notified when it's ready and get a special discount.

We added a search feature to the website covering all the pages, tutorials, documentation, or mock samples. No more being lost in the documentation!

screenshot of the search modal on the website