Last updated 10 months ago
Creates a new resource with data.
created
Retrieves a list of all resources from the service.
success
const response = await fetch('/events', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "experiment_id": "text", "event_name": "text" }), }); const data = await response.json();
{ "id": "text", "experiment_id": "text", "event_name": "text" }
const response = await fetch('/events', { method: 'GET', headers: {}, }); const data = await response.json();
[ { "id": "text", "experiment_id": "text", "event_name": "text" } ]