Sample course manager for DBLandIT. Developed using Node JS & Expresss. No Auth required.
Contact information:
[email protected]
License: Apache 2.0
Find out more about Swagger
api_key
apiKey
API Key
Name
api_key
In
header
Add a new course to database
Name
Located in
Description
Required
Schema
body
body
Course object that will be added
Yes
Course
Code
Description
400
Invalid input
Finds courses, filtering by year and/or duration
Name
Located in
Description
Required
Schema
duration
query
Duration to be filtered by
No
integer
Code
Description
200
Courses
Delete a course by ID
For valid response try integer _id. Non-valid values will generate API errors
Name
Located in
Description
Required
Schema
courseId
path
ID of course to that needs to be deleted
Yes
string
Code
Description
200
Course was deleted
400
Invalid ID supplied
/courses/{courseId}/students
Get Students of a given course
Name
Located in
Description
Required
Schema
courseId
path
ID of course to that needs to be deleted
Yes
string
Code
Description
Schema
200
successful operation
[ object ]
400
Invalid id value
/courses/{courseId}/student
Adds a student to the course
Name
Located in
Description
Required
Schema
courseId
path
ID of course to add the Student
Yes
string
body
body
Student object that will be added
Yes
object
Code
Description
400
Non-existing course or student already in course
/courses/{courseId}/students/top
Gets the student with the top grade in a given course
Name
Located in
Description
Required
Schema
courseId
path
ID of course to get the top Student
Yes
string
Code
Description
400
Non-existing course or student already in course
Name
Type
Description
Required
year
long
No
duration
long
Duration in hours
No
subject
string
Subject given in course
No
students
[ object ]
May not be provided
No
Name
Type
Description
Required
DNI
long
No
name
string
No
surname
string
No
address
string
No
Name
Type
Description
Required
code
integer
No
type
string
No
message
string
No