SQL-Templates will be integrated into SQL Playground to allow students to automatically integrate tables and data into their database. ref #1003
To be able to save the templates, we need several API routes.
GET
/api/v2/playground/templates Get all SqlTemplates
POST/UPDATE/DELETE
/api/v2/playground/template/{templateId} Create/Update/Delete SqlTemplates (Nur als Admin)
GET
/api/v2/playground/templates/category Get all TemplateCategories
POST/UPDATE/DELETE
/api/v2/playground/templates/category/{tcatId} Create/Update/Delete SqlTemplates (Nur als Admin)
The required data structure:
interface SqlTemplates {
id: number
name: string,
category: TemplateCategory,
templateQuery: text
}
interface TemplateCategory {
id: number,
name: string,
}
SQL-Templates will be integrated into SQL Playground to allow students to automatically integrate tables and data into their database. ref #1003 To be able to save the templates, we need several API routes.
The required data structure: