The following APIs allow you to interact with datasets.
const result = await axios.get(
`https://dibby.ai/api/datasets`,
);
{
"items": [
{
"name": "some string",
"desc": "some string",
"user": {
"name": "some string"
}
}
],
"totalPages": 0,
"currentPage": 0
}
const owner = 'some string';
const name = 'some string';
const result = await axios.post(
`https://dibby.ai/api/datasets/${owner}/${name}/search`,
);
{
"items": [
{
"id": "some string",
"values": {
"some string": {
"rowId": "some string",
"column": "some string",
"type": "STRING",
"value": "some string"
}
}
}
],
"totalPages": 0,
"currentPage": 0
}
const owner = 'some string';
const name = 'some string';
const column = 'some string';
const result = await axios.put(
`https://dibby.ai/api/datasets/${owner}/${name}/columns/${column}`,
{"name":"some string"}
);
{}
const owner = 'some string';
const name = 'some string';
const column = 'some string';
const result = await axios.delete(
`https://dibby.ai/api/datasets/${owner}/${name}/columns/${column}`,
);
{}
const owner = 'some string';
const name = 'some string';
const result = await axios.get(
`https://dibby.ai/api/datasets/${owner}/${name}/columns`,
);
{
"columns": [
{
"name": "some string",
"type": "STRING"
}
]
}
const owner = 'some string';
const name = 'some string';
const result = await axios.post(
`https://dibby.ai/api/datasets/${owner}/${name}/columns`,
{"name":"some string","type":"STRING"}
);
{
"name": "some string",
"type": "STRING"
}
const owner = 'some string';
const name = 'some string';
const id = 'some string';
const result = await axios.delete(
`https://dibby.ai/api/datasets/${owner}/${name}/rows/${id}`,
);
{}
const owner = 'some string';
const name = 'some string';
const result = await axios.post(
`https://dibby.ai/api/datasets/${owner}/${name}/rows`,
);
{
"id": "some string"
}
const owner = 'some string';
const name = 'some string';
const result = await axios.put(
`https://dibby.ai/api/datasets/${owner}/${name}/cell`,
{
"rowId": "some string",
"column": "some string",
"type": "STRING",
"value": "some string"
}
{ headers: { 'Content-Type': 'multipart/form-data' }}
);
{}