Desktop release 1.23.0

Welcome to this new release of Mockoon. There are several bug fixes and new features in this version that we hope you will like.


 Our platinum sponsor

Appwrite

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!

sponsor button


 CRUD routes

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.

crud route in the routes menu

 Default listening IP addresses

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:

input field to override the hostname

(Issue #930)

 Add support for OpenAPI's examples

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:

mockoon interface showing 3 responses with examples created after an openapi import

(Issue #967)

 WebDAV HTTP methods

Mockoon now supports WebDAV's HTTP methods for distributed authoring as specified in the RFC2518 Section 8:

mockoon interface showing webdav specific http methods

(Issue #937)

 Auto-start environments

We added a new setting to auto-start the environments when the application launches:

checkbox to enable environments auto-start

(Issue #121)

 Improved logs interface

We improved the logs interface to clarify the purpose of the delete button:

Logs delete button

(Issue #686)

 Small improvements and fixes

  • The Docker image now exposes port 3000 by default when you cannot specify a port to expose (e.g. GitLab CI). You can still override the default exposed port using -p at runtime or ports inside a docker-compose configuration file. (Issue #932)
  • Fixed data buckets request helpers not being detected when imbricated in other helpers. (Issue #928)
  • A missing text/markdown content type was added to the headers auto-completion.

 Thank you

A big thank you to the following people who helped to make Mockoon better: