You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The course contents will require the specified parameteres:
name
type
visible
All the other parameters will not be mandatory, but if sent, will have to be restricted to one of the following types
QUIZ_TEMPLATE_ID
URL
DESCRIPTION
DATETIME All these parameters should be send in the payload on the settings JSON property
The types will be defined as an ENUM type in the course_content_settings table for the "name" column. Each parameter will have to be checked for validation.
The Front-end team should check where these endpoints are used and change the implementation to use the new request/response body
Every content which has a valid URL should be updated so that URL will be moved to the settings table
URL field is still present in content table (will be deleted with a future database reset) but is not used anymore.
Please let me know if something is not clear or is not working and I will try to be present in the next meeting.
The BE issue link: https://github.com/danutchindris/edu-hospice-api/issues/251
The BE specification are as follows:
The course contents will require the specified parameteres:
All the other parameters will not be mandatory, but if sent, will have to be restricted to one of the following types
All these parameters should be send in the payload on the settings JSON property
The types will be defined as an ENUM type in the course_content_settings table for the "name" column. Each parameter will have to be checked for validation.
The request payload should have the JSON format:
{
"name": "Content 10 quiz",
"type": "QUIZ",
"settings": {
"QUIZ_TEMPLATE_ID": "1",
"URL": "test url",
"DATETIME" : "2017-12-03T10:15:30"
},
"visible": true
}
Also, when providing the course content data, on endpoint: https://edu-hospice-api.herokuapp.com/api/admin/courses/41/sections-details the provided information should be for each element of the adminContentDetails property:
The text was updated successfully, but these errors were encountered: