This page dictates the API for the interaction between the UI and Server.
Since UI will be a Single Page Application, every page will be generated based on the data from the backend
Need dedicated API for UI
Data required from backend
For any date or date time communication, we will be using ISO 8601 format
No need pagination
GET /admin/schema
[
{
"modelType": String,
"collectionName": String,
"displayName": String,
"singularName": String,
"pluralName": String,
"description": String,
"attributes": [{
"name": String,
"showInTable": Boolean,
"simplifiedDataType": [String|Boolean|Date|DateTime|Timestamp|Number],
"detailedDataType": [String|Boolean|Date|Int|Timestamp|DateTime|Float],
"required": Boolean,
"max": Number,
"min": Number,
"maxLength": Number,
"minLength": Number,
"editable": Boolean,
"default": String,
"nullable": Boolean,
"unique": Boolean,
"enum": [String],
}]
},
...
]
POST /admin/schema
Create a new model
PUT /admin/schema/{modelName}
Update a model