moclojer
GitHub
  • moclojer
  • Creating mock server
  • Moclojer Configuration Specification
  • Using rendering templates
  • External body
  • Multi-domain support
  • Rate Limiting
  • Run it mocker server
  • Webhook support (background request)
  • WebSocket support
  • Using moclojer as a framework
  • ๐Ÿ“‘Releases
    • next
    • v0.4.0
    • v0.3.5
    • v0.3.4
    • v0.3.3.1
    • v0.3.3
    • v0.3.2
    • v0.3.1
    • v0.3.0
    • v0.2
    • v0.1
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub

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"
}
PreviousExternal bodyNextRate Limiting

Last updated 1 year ago

Was this helpful?