π οΈ Create Dataset
π Endpoints Required
ποΈ Data Schema
Describe or paste the expected request/response shape below.
{
name: string,
definition: { key values of column name, types, other options }, # e.g. { turbidity: { type: decimal } }
rows: Array of data to insert, must have all the req. columns from defininition,
}
Note: See dataset.test.ts for examples of how to use the Dataset API.
β
Acceptance Criteria
π Auth & Permissions
N/A
π Related
π¬ Additional Context
This Endpoint will require writing data into a junction table when the dataset is created, called datasets.data_sources_data_sets. The constructor for that model looks like:
{
data_source_id: number,
dataset_name: string
}
π οΈ Create Dataset
π Endpoints Required
POST/api/v1/data_sources/:id/datasetsβ create resourceποΈ Data Schema
Describe or paste the expected request/response shape below.
{ name: string, definition: { key values of column name, types, other options }, # e.g. { turbidity: { type: decimal } } rows: Array of data to insert, must have all the req. columns from defininition, }Note: See dataset.test.ts for examples of how to use the Dataset API.
β Acceptance Criteria
π Auth & Permissions
N/A
π Related
π¬ Additional Context
This Endpoint will require writing data into a junction table when the dataset is created, called
datasets.data_sources_data_sets. The constructor for that model looks like: