...
An asset created under a sourcing project
Create a Project of the type “Seek assets for Target Collections”
Create a Project of the type “Seek assets for NON-Target Collections”
28th Oct :
Option 1:
Schema
Code Block |
---|
CREATE TABLE form_config (
UUID varchar,
channel varchar,
objectype varchar,
primarycategory varchar,
context varchar,
context_type varchar,
operation varchar,
component varchar,
data JSON,
status boolean, / Active, Inactive
created_on timestamp,
update_on timestamp,
PRIMARY KEY (channel, objectype, primarycategory, context, context_type, operation)
) |
Primary Key for the table
channel, objectype, primarycategory, context, context_type, operation
API's
/read
will only read a form if the form is not retired
`v1/read
`
request object
Code Block |
---|
{
"request": {
"channel": "*",
"objectype" : "*",
"primarycategory" : "*",
"context": "framework",
"context_type": "K-12",
"operation" : "*",
"component": "portal"
}
} |
/create
creates a form if the same form is not available in the DB
v1/create
request Object
Code Block |
---|
{
"request": {
"channel": "*",
"objectype": "*",
"primarycategory": "*",
"context": "framework",
"context_type": "K-12",
"operation": "*",
"data": {
"templateName": "",
"required": [],
"properties": [
{
"code": "board",
"dataType": "string",
"inputType": "select",
"editable": true,
"required": true
},
{
"code": "gradeLevel",
"dataType": "list",
"inputType": "nestedselect",
"editable": true,
"required": true
},
{
"code": "medium",
"dataType": "list",
"inputType": "nestedselect",
"editable": true,
"required": true
},
{
"code": "subject",
"dataType": "list",
"inputType": "nestedselect",
"editable": true,
"required": true
}
]
}
}
} |
Option 2:
...
Forms
Question
question.json
question-framerwork.json
Content
content.json
content-frmaework.json
content-framework-channel.json
content-framework-channel-primarycategory.json
Configurations:
Set of framework types to be used for any sourcing project
For All Channels - System Level -> For channel show K-12 & TPD framework types while creating project.
Code Block { "request": { "rootOrgId": "*", "type": "project", "subType": "framworktype", "action": "*", "value": [ "TPD", "K-12" ] } }
Channel (TN) level → Show only K-12 framework types while creating project.
Code Block { "request": { "rootOrgId": "*", "type": "project", "subType": "framworktype", "action": "*", "value": [ "K-12" ] } }
...
Code Block |
---|
{
"request": {
"rootOrgId": "*",
"framework": '*',
"type": "K-12",
"subType": "framworkCategories",
"action": "*",
"DATA": [
Board, // List, singleSelect
Medium, // List, multiSelect
GradeLevel, // List, multiSelect
Subject, // List, multiSelect
]
}
} |
Code Block |
---|
{ "request": { "rootOrgId": "*", "framework": '*', "frameworkType": "K-12", "sourcingType": "project/NonProject", "object": "*", "type": "framworkCategories", "subType": "*", "action": "*" "DATA": [ Board, // List, singleSelect Medium, // List, multiSelect GradeLevel, // List, multiSelect Subject, // List, multiSelect Topic // List TopicTree ] } } |
2. Asset created independently (not in a sourcing project)
...