Multi-domain support

moclojer supports multi-domain (host)

To add a specific domain for the endpoint just put the tag β€œhost” for which domain the endpoint will respond to the request:

- endpoint:
    host: sub.moclojer.com
    method: GET
    path: /multihost-sub
    response:
      status: 200
      headers:
        Content-Type: application/json
      body: >
        {
          "domain": "sub.moclojer.com"
        }

Swagger:

GET sub.moclojer.com/multihost-sub

Specific domain for the endpoint (aka baseUrl).

{
  "domain": "sub.moclojer.com"
}

Last updated