Each JSON request sent to the mock server must contain a session_id
which help identify which session that the client is currently on.
{
"session_id": 1
}
Each session in the mock server has the following scoped to the id:
- WebSocket connection to DerivWS
- DerivWS Authorization
- Account bound-data
To push your custom data to the mock server, you will need to add the generate_mock
property to the call.
{
"generate_mock": "1",
"action": "create" // create | update | delete | read
}
Adding this will allow the mock server to accept mock data directly through this call without heavy validation. Of course, schema level validation is still in place. This allows
List of generator endpoints:
- Accounts