diff --git a/content/docs/latest/global-variables/global-variables.md b/content/docs/latest/global-variables/overview.md similarity index 100% rename from content/docs/latest/global-variables/global-variables.md rename to content/docs/latest/global-variables/overview.md diff --git a/content/docs/latest/openapi/import-export-openapi-format.md b/content/docs/latest/openapi/import-export-openapi-format.md index 8adf3476..ab3b4e37 100644 --- a/content/docs/latest/openapi/import-export-openapi-format.md +++ b/content/docs/latest/openapi/import-export-openapi-format.md @@ -27,5 +27,3 @@ To export an environment to a JSON file, open the **Import/export** menu, select ### Compatibility Compatibility between the OpenAPI specification and Mockoon's features is only partial and detailed in the [next article](docs:openapi/openapi-specification-compatibility). - ->
{"type": "##sponsoring##", "text": "For those looking to further leverage OpenAPI specifications in their workflow, consider Fern. Fern is an open-source toolkit that uses your API definition to generate idiomatic SDKs, server-side code, and beautiful documentation. Its schema-first design approach and automated outputs can provide a comprehensive solution for those seeking to optimize their OpenAPI workflow.", "link": "https://www.devmark.ai/fern/?utm_source=mockoon&utm_loc=docs-1&utm_type=embedding"}
diff --git a/content/docs/latest/openapi/openapi-specification-compatibility.md b/content/docs/latest/openapi/openapi-specification-compatibility.md index f28c21f9..34121e93 100644 --- a/content/docs/latest/openapi/openapi-specification-compatibility.md +++ b/content/docs/latest/openapi/openapi-specification-compatibility.md @@ -28,5 +28,3 @@ OpenAPI import and export currently support the following API information: - Routes paths (including route parameters translated to `/:param`), methods, responses with status code (200, etc.), headers, and descriptions. _Import only_: sample responses and JSON bodies are created from OpenAPI schemas and examples during import. - ->
{"type": "##sponsoring##", "text": "For those looking to further leverage OpenAPI specifications in their workflow, consider Fern. Fern is an open-source toolkit that uses your API definition to generate idiomatic SDKs, server-side code, and beautiful documentation. Its schema-first design approach and automated outputs can provide a comprehensive solution for those seeking to optimize their OpenAPI workflow.", "link": "https://www.devmark.ai/fern/?utm_source=mockoon&utm_loc=docs-2&utm_type=embedding"}
diff --git a/content/old-releases/desktop/1.19.0.md b/content/old-releases/desktop/1.19.0.md index 359d5dde..01a9309d 100644 --- a/content/old-releases/desktop/1.19.0.md +++ b/content/old-releases/desktop/1.19.0.md @@ -79,7 +79,7 @@ We updated the [OpenAPI documentation](https://mockoon.com/docs/latest/openapi/o ### Thank you -A big thank you to the following people that helped to make Mockoon better: +A big thank you to the following people who helped to make Mockoon better: - [@barefootdeveloper](https://github.com/barefootdeveloper): Improved default route response selection. (Issue [#252](https://github.com/mockoon/mockoon/issues/252)) - [@tsgodara](https://github.com/tsgodara): Logs crashing when malformed URI sent. (Issue [#689](https://github.com/mockoon/mockoon/issues/689)) diff --git a/content/old-releases/desktop/1.22.0.md b/content/old-releases/desktop/1.22.0.md index 6fe3d3ac..46f561a2 100644 --- a/content/old-releases/desktop/1.22.0.md +++ b/content/old-releases/desktop/1.22.0.md @@ -54,7 +54,7 @@ Head over to the [dedicated documentation](https://github.com/mockoon/mockoon/tr ### Thank you -A big thank you to the following people that helped to make Mockoon better: +A big thank you to the following people who helped to make Mockoon better: - [@AndreiOrmanji](https://github.com/AndreiOrmanji): Add HTTP status message in the logs. (Issue [#852](https://github.com/mockoon/mockoon/issues/852)) - [@dashie](https://github.com/dashie): New `status` helper. (Issue [#894](https://github.com/mockoon/mockoon/pull/894)) diff --git a/content/old-releases/desktop/1.23.0.md b/content/old-releases/desktop/1.23.0.md index 028e1cd1..a6946a3a 100644 --- a/content/old-releases/desktop/1.23.0.md +++ b/content/old-releases/desktop/1.23.0.md @@ -103,7 +103,7 @@ We improved the logs interface to clarify the purpose of the delete button: ### Thank you -A big thank you to the following people that helped to make Mockoon better: +A big thank you to the following people who helped to make Mockoon better: - [@daniel-schulz](https://github.com/daniel-schulz): WebDAV methods. (Issue [#937](https://github.com/mockoon/mockoon/issues/937)) - [@mathilde-lannes](https://github.com/mathilde-lannes): OpenAPI examples support. (Issue [#967](https://github.com/mockoon/mockoon/pull/967)) diff --git a/content/releases/3.0.0.md b/content/releases/3.0.0.md index 4a28f7ec..0aa9ee27 100644 --- a/content/releases/3.0.0.md +++ b/content/releases/3.0.0.md @@ -76,7 +76,7 @@ We also made the following improvements: ### Thank you -A big thank you to the following people that helped to make Mockoon better: +A big thank you to the following people who helped to make Mockoon better: - [@gerwazy102](https://github.com/gerwazy102): Docker image Arm64 arch. (Issue [#670](https://github.com/mockoon/mockoon/issues/670)) - [@likileads](https://github.com/likileads): Node.js 14 end of support. (Issue [#959](https://github.com/mockoon/mockoon/issues/959)) diff --git a/content/releases/3.1.0.md b/content/releases/3.1.0.md index 29d2dc03..7b5484bf 100644 --- a/content/releases/3.1.0.md +++ b/content/releases/3.1.0.md @@ -74,7 +74,7 @@ You can now zoom in and out using the `Ctrl + +` and `Ctrl + -` shortcuts. The z ### Thank you -A big thank you to the following people that helped to make Mockoon better: +A big thank you to the following people who helped to make Mockoon better: - [@roybarber](https://github.com/roybarber): Serverless instructions for Netlify. (Issue [#1060](https://github.com/mockoon/mockoon/pull/1060)) - [@vishwasganatra](https://github.com/vishwasganatra): status code in logs. (Issue [#1031](https://github.com/mockoon/mockoon/issues/1031)) diff --git a/content/releases/4.0.0.md b/content/releases/4.0.0.md index d07061ad..6aa74460 100644 --- a/content/releases/4.0.0.md +++ b/content/releases/4.0.0.md @@ -169,7 +169,7 @@ Finally, the new logging format automatically filters out credentials from the l ### Thank you -A big thank you to the following people that helped to make Mockoon better: +A big thank you to the following people who helped to make Mockoon better: - [@ajatkj](https://github.com/ajatkj): Faker.js methods containing numbers. (Issue [#1078](https://github.com/mockoon/mockoon/issues/1078)) - [@martin-bucinskas](https://github.com/martin-bucinskas): CLI refactoring and PM2 removal. (Issue [#1081](https://github.com/mockoon/mockoon/issues/1081)) diff --git a/content/releases/4.1.0.md b/content/releases/4.1.0.md index e4f8e076..4db1ce99 100644 --- a/content/releases/4.1.0.md +++ b/content/releases/4.1.0.md @@ -49,7 +49,7 @@ The templating helpers are now supported in the rule values letting you create d ### Thank you -A big thank you to the following people that helped to make Mockoon better: +A big thank you to the following people who helped to make Mockoon better: - [@ajatkj](https://github.com/ajatkj): Support for properties with dots in `queryParam` and `queryParamRaw` helpers. (Issue [#1115](https://github.com/mockoon/mockoon/issues/1115)) - [@edtoken](https://github.com/edtoken): `filter` and `object` templating helpers and `eq` helper update. (Issues [#1103](https://github.com/mockoon/mockoon/issues/1103) and [#1114](https://github.com/mockoon/mockoon/issues/1114)) diff --git a/content/releases/5.0.0.md b/content/releases/5.0.0.md index f15e36d9..a64ad03f 100644 --- a/content/releases/5.0.0.md +++ b/content/releases/5.0.0.md @@ -84,6 +84,6 @@ We also updated the desktop application's demo environment to showcase this new ### Thank you -A big thank you to the following people that helped to make Mockoon better: +A big thank you to the following people who helped to make Mockoon better: - [@ajatkj](https://github.com/ajatkj): JSONPath support. (Issue [#995](https://github.com/mockoon/mockoon/issues/995)) diff --git a/content/releases/5.1.0.md b/content/releases/5.1.0.md index 19680b26..077eec4a 100644 --- a/content/releases/5.1.0.md +++ b/content/releases/5.1.0.md @@ -62,7 +62,7 @@ Head over to the [documentation](http://mockoon.com/docs/latest/response-configu ### Thank you -A big thank you to the following people that helped to make Mockoon better: +A big thank you to the following people who helped to make Mockoon better: - [@ajatkj](https://github.com/ajatkj): Faker.js v8 migration. (Issue [#1150](https://github.com/mockoon/mockoon/issues/1150)) - [@PineappleIOnic](https://github.com/PineappleIOnic): Range header support. (Issue [#1044](https://github.com/mockoon/mockoon/issues/1044)) diff --git a/content/releases/6.0.0.md b/content/releases/6.0.0.md index 7cda0dd7..255387e1 100644 --- a/content/releases/6.0.0.md +++ b/content/releases/6.0.0.md @@ -104,7 +104,7 @@ You will find more information about these commands in the [CLI documentation](h ### Thank you -A big thank you to the following people that helped to make Mockoon better: +A big thank you to the following people who helped to make Mockoon better: - [@fabhoarau](https://github.com/fabhoarau): Bootstrap 5 migration. (Issue [#1185](https://github.com/mockoon/mockoon/issues/1185)) - [@isuru89](https://github.com/isuru89): Callbacks feature. (Issue [#709](https://github.com/mockoon/mockoon/issues/709)) diff --git a/content/releases/6.0.1.md b/content/releases/6.0.1.md index e62cd245..fa33b26c 100644 --- a/content/releases/6.0.1.md +++ b/content/releases/6.0.1.md @@ -114,7 +114,7 @@ You will find more information about these commands in the [CLI documentation](h ### Thank you -A big thank you to the following people that helped to make Mockoon better: +A big thank you to the following people who helped to make Mockoon better: - [@fabhoarau](https://github.com/fabhoarau): Bootstrap 5 migration. (Issue [#1185](https://github.com/mockoon/mockoon/issues/1185)) - [@isuru89](https://github.com/isuru89): Callbacks feature. (Issue [#709](https://github.com/mockoon/mockoon/issues/709)) diff --git a/content/releases/6.1.0.md b/content/releases/6.1.0.md new file mode 100644 index 00000000..4333b4f7 --- /dev/null +++ b/content/releases/6.1.0.md @@ -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)) diff --git a/pages/public-roadmap.tsx b/pages/public-roadmap.tsx index c2db99cd..6faeedbc 100644 --- a/pages/public-roadmap.tsx +++ b/pages/public-roadmap.tsx @@ -37,7 +37,7 @@ const faq: AccordionData = [ const tasks = { released: [ { - link: 'TODO', + link: '/docs/latest/global-variables/overview/', title: 'Global variables', pro: false },