Configuration Specification
Reference for the Moclojer configuration file format
Overview
Example Configuration
- endpoint:
method: GET
path: /hello/:username
response:
status: 200
headers:
Content-Type: application/json
body: >
{
"hello": "{{path-params.username}}!"
}
- endpoint:
method: POST
path: /users
body: |
{
"name": "string",
"email": "string"
}
response:
status: 201
headers:
Content-Type: application/json
body: >
{
"id": 123,
"name": "{{json-params.name}}",
"email": "{{json-params.email}}"
}Configuration File Structure
Endpoint
Key
Required
Type
Description
Endpoint Object
Key
Required
Type
Description
Path Parameters
Query Parameters
Response Object
Key
Required
Type
Description
Templates
Rate Limiting
Key
Required
Type
Description
Webhook
Key
Required
Type
Description
WebSocket
WebSocket Object
Key
Required
Type
Description
on-connect Object
Key
Required
Type
Description
on-message Object
Key
Required
Type
Description
Templates in WebSockets
External Body
Key
Required
Type
Description
Multiple Domains Support
Full Configuration Example
Last updated
Was this helpful?