cURL
curl --request POST \ --url http://localhost:8080/workspaces/{ws_id}/endpoints \ --header 'Content-Type: application/json' \ --data '{ "id": "<string>", "name": "<string>", "description": "<string>", "enabled": true, "request": { "method": "POST", "headers": null, "timeout": 10000 }, "retry": { "strategy": "fixed", "config": { "attempts": [ 0, 60, 3600 ] } }, "events": [], "metadata": {}, "rate_limit": { "quota": 1, "period": 2 } }'
{ "id": "<string>", "name": "<string>", "description": "<string>", "enabled": true, "request": { "method": "POST", "headers": null, "timeout": 10000 }, "retry": { "strategy": "fixed", "config": { "attempts": [ 0, 60, 3600 ] } }, "events": [], "metadata": {}, "rate_limit": { "quota": 1, "period": 2 }, "created_at": 123, "updated_at": 123 }
The workspace id
"default"
Show child attributes
The rate limit that uses GCRA algorithm (a variant of the leaky bucket algorithm that supports bursts).
OK