Comments (3)
@DanNerghes because you don't have access to the backend card, here is the description for backend:
The course contents will require the specified parameters:
- 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 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
}
- The settings properties MUST be sent using uppercase
- The example does not contain a real data payload (the quiz should not have the DATETIME property)
- The timestamp is required as ISO format
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:
- id
- name
- type
- visible
- index
- resourceSummary
- courseContentSettings
from edu-hospice.
Temporary, the endpoint used for the backend is:
edu-hospice-api-temp.heroku.com
from edu-hospice.
The following endpoints are updated to use the implementation with content settings table:
POST
/api/admin/courses/sections/{sectionId}/contents
Create a content unit for a section (course-controller)
PUT
/api/admin/courses/sections/contents/{contentId}/update
Update an existing content (course-controller)
GET
/api/admin/courses/{courseId}/sections-details
Get all the details related to a course sections, course contents and content resources. (course-controller)
GET
/api/courses/content/{contentId}
Retrieve a course content for a user (user-course-controller)
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.
from edu-hospice.
Related Issues (20)
- Provide CSS variables for the app color scheme HOT 4
- After registration, the course list form the current tab should be updated HOT 1
- Investigate the user profile edit for another user than the default one HOT 3
- Investigate the user profile information for the student role HOT 2
- Improvement of refresh route mechanism HOT 1
- Testing, phase I HOT 1
- Add textbox/textarea control - character limit, to be decided if it will be a separate control, or settings for the radio control.
- Implementing feedback quiz / knowledge quiz HOT 3
- Recomended courses display
- Implement a breadcrumbs compoment HOT 3
- Hide the "Home" button from the main menu of the application if the user is authenticated HOT 1
- Testing quiz business logic
- Attach a quiz to a course section
- Implement a search functionality for the users list
- Add a new quiz type column, a purpose column and implement a search functionality for the quiz list HOT 1
- Pending course dialog HOT 1
- Test the backend implementation of course content endpoint HOT 3
- All buttons in dialog have the same background color
- Quiz integration for a student accessing a course HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from edu-hospice.