Categories
News

New: Template Mocks 2.0

moustache

After three months of development and testing, we are pleased to announce we released improved template mocks. A version 2.0 of template mocks runtime was rewritten from scratch to be faster, more efficient, and feature-rich. Besides using the latest version of Handlebars – a simple templating language, we also included our implementation of helper basing on the newest version (5.0.0) of faker.js – the library generating fake data. We also bundled into the runtime the extensive subset of handlebars-helpers. Embedded libraries enable our customers to generate a large amount of fake data and include conditional output rendering to simulate real services better. We trust this release is another step to make SmartMock.io the first choice HTTP server mock software for our customers.

Support for version 1.0

All clients using the previous version of the template mocks runtime may use both versions (1.0 and 2.0). We’ll still support version 1.0 until at least September 2022.

All accounts created after September 1st, 2020, may use version 2.0 only. If, for some reason, you find using version 1.0 critical for your use case, please contact our support at support@smartmock.io and ask us to enable version 1.0 for you.

Documentation and examples

We also published extensive documentation describing available helpers, state, and request fields access. We’ll keep that documentation up to date with further improvements in the runtime.

How to upgrade

To upgrade your template mocks using runtime of 1.0, you should perform the following actions:

  1. Edit your workspace, select version 2.0 of the template mocks, and save workspace changes.
  2. Adjust your mocks to use the helpers provided by version 2.0 – usually, it is an easy task, but if you have any questions, please contact our support at support@smartmock.io.
Categories
News

New: Proxy Mocks

Not so long ago, we released a new feature of SmartMock.io – Proxy mocks. Proxy mocks allow for selective forwarding of the HTTP requests to other systems. It means that for some criteria, defined by request matching, SmartMock.io may give static, template, dynamic, or failure response, and for other criteria, proxy the original request to some user-defined HTTP address. These may be your own mock services that you migrate to SmartMock.io or real services.

Proxy mocks also allow to:

  • override some original HTTP headers before being forwarded to the destination service
  • add custom response headers
  • setup custom request timeout towards the destination service

Proxy mocks open completely new possibilities for our customers. We already see adoption and the first extension requests that will be a subject of further evaluation.

Proxy mocks are available for all our paid plans. If you would like to know more check https://docs.smartmock.io/proxy-mocks/