`management:
port: 8000
services:
- port: 8001
name: Mock Server
endpoints:
- path: /create-user
method: POST
headers:
Accept: application/json
body:
schema:
type: object
properties:
name:
type: string
instanceId:
type: string
id:
type: string
response:
status: 200
headers:
content-type: application/json
body: '{ "name": {{ body.schema.properties.name }}, "id": {{ body.schema.properties.id }}, "message": "User created" }'`
I have tried above post method moch with body data as object., Kindly check and update if any configuration is missing.
`management:
port: 8000
services:
name: Mock Server
endpoints:
method: POST
headers:
Accept: application/json
body:
schema:
type: object
properties:
name:
type: string
instanceId:
type: string
id:
type: string
response:
status: 200
headers:
content-type: application/json
body: '{ "name": {{ body.schema.properties.name }}, "id": {{ body.schema.properties.id }}, "message": "User created" }'`
I have tried above post method moch with body data as object., Kindly check and update if any configuration is missing.