-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Fern as sponsor
- Loading branch information
Showing
16 changed files
with
103 additions
and
16 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
--- | ||
meta: | ||
title: Mockoon release v6.1.0 | ||
description: Discover Mockoon applications new v6.1.0 release with the new callbacks feature, CLI import/export commands, bug fixes and more. | ||
date: '2023-12-29' | ||
--- | ||
|
||
Welcome to this new release of Mockoon, the last of 2023! | ||
It brings two new exciting features: **CRUD filtering and searching**, and **global variables**. Read on to learn more about this release. | ||
|
||
--- | ||
|
||
## Our platinum sponsors | ||
|
||
[![GitHub](https://mockoon.com/images/sponsors/github.png)](https://github.blog/2023-04-12-github-accelerator-our-first-cohort-and-whats-next/) | ||
[![Localazy](https://mockoon.com/images/sponsors/localazy.png)](https://localazy.com/register?ref=a9CiDC61gOac-azO) | ||
[![Peakcrypto](https://mockoon.com/images/sponsors/peakcrypto.png)](https://www.peakcrypto.com/) | ||
|
||
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](https://github.com/mockoon/mockoon/blob/main/backers.md) who helped this project over time! | ||
|
||
[![sponsor button](https://mockoon.com/images/sponsor-btn-250.png?)](https://github.com/sponsors/mockoon) | ||
|
||
--- | ||
|
||
## 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 the 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 the data: | ||
|
||
`/users?search=john` | ||
|
||
Read more about this feature in the [documentation](https://mockoon.com/docs/latest/api-endpoints/crud-routes/#filtering-sorting-and-pagination-on-the-main-get-route). | ||
|
||
(Issue [#1047](https://github.com/mockoon/mockoon/issues/1047)) | ||
|
||
## Global variables | ||
|
||
Mockoon now supports **global variables** that can be set and accessed using the [`setGlobalVar`](https://mockoon.com/docs/latest/templating/mockoon-helpers/#setglobalvar) and [`getGlobalVar`](https://mockoon.com/docs/latest/templating/mockoon-helpers/#getglobalvar) helpers at runtime. | ||
|
||
```handlebars | ||
{{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 more about this feature in the [documentation](https://mockoon.com/docs/latest/global-variables/overview/). | ||
|
||
## OpenAPI import improvements | ||
|
||
- The OpenAPI v3 specification `server.url` is now correctly parsed when it only contains a path (no protocol or domain). (Issue [#1221](https://github.com/mockoon/mockoon/issues/1221)) | ||
- The CLI is now correctly reporting the OpenAPI import errors alongside Mockoon's format parser errors. (Issue [#1229](https://github.com/mockoon/mockoon/issues/1229)) | ||
- Files with `.yml` extensions are now selectable in the OpenAPI import dialog. (Issue [#1229](https://github.com/mockoon/mockoon/issues/1229)) | ||
|
||
## Desktop application | ||
|
||
- Fix the data bucket name not being displayed on a CRUD route view when creating from the template modal. (Issue [#1234](https://github.com/mockoon/mockoon/issues/1234)) | ||
- Fix the Faker.js locale not being applied from the settings on startup. (Issue [#1222](https://github.com/mockoon/mockoon/issues/1222)) | ||
- Fix callbacks not being removed from the route response's callbacks view when deleted, in the case multiple responses were present. (Issue [#1215](https://github.com/mockoon/mockoon/issues/1215)) | ||
|
||
## CLI and Serverless new Faker.js options | ||
|
||
New flags were added to the CLI, and new options to the Serverless package, to allow setting the Faker.js locale and seed. | ||
|
||
For the CLI, use the `--faker-locale` and `--faker-seed` flags. More information in the [CLI's documentation](https://github.com/mockoon/mockoon/blob/main/packages/cli/README.md#fakerjs-options). | ||
|
||
For the Serverless package, use the `fakerOptions.locale` and `fakerOptions.seed` options: | ||
|
||
```javascript | ||
const mockoonServerless = new mockoon.MockoonServerless(mockEnv, { | ||
fakerOptions: { | ||
locale: 'en_GB', | ||
seed: 1234 | ||
} | ||
}); | ||
``` | ||
|
||
More information in the [Serverless package's documentation](https://github.com/mockoon/mockoon/blob/main/packages/serverless/README.md#fakerjs-options) | ||
|
||
(Issue [#669](https://github.com/mockoon/mockoon/issues/669)) | ||
|
||
--- | ||
|
||
### Thank you | ||
|
||
A big thank you to the following people who helped to make Mockoon better: | ||
|
||
- [@HighLiuk](https://github.com/HighLiuk): CRUD filtering and searching. (Issue [#1047](https://github.com/mockoon/mockoon/issues/1047)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters