Last updated 10 months ago
Creates a new resource with data.
created
Retrieves a single resource with the given id from the service.
ID of Comment to return
success
Retrieves a list of all resources from the service.
const response = await fetch('/comments', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "body_text": "text" }), }); const data = await response.json();
{ "uuid": "text", "body": { "html": "text", "text": "text" }, "experiment_id": "text", "project_id": "text", "author_id": "text", "created_at": "text", "updated_at": "text" }
const response = await fetch('/comments/{id}', { method: 'GET', headers: {}, }); const data = await response.json();
const response = await fetch('/comments', { method: 'GET', headers: {}, }); const data = await response.json();
{ "total": 0, "limit": 0, "skip": 0, "data": [ { "uuid": "text", "body": { "html": "text", "text": "text" }, "experiment_id": "text", "project_id": "text", "author_id": "text", "created_at": "text", "updated_at": "text" } ] }