Author: Kyle Hardgrave (kyleh@seas)
This is a spec for how I'm going to refactor the PCR API, both internally and externally.
- Make the API routing and controller code more fitting with Django standards
- Make the external API simpler, more RESTful, and more useful
- Adding functionality to the API
- Changing model representation
- Much of views will likely be rewritten
{
latest_description: '...',
aliases: [
'CIS-140',
'LING-140',
'PSYC-140',
'COGS-001'
],
// ... other course-general info, non-semester-specific
reviews: [
// ... review.toJson()
]
}
A list of the above, paginated and sorted by ascending course number
{
name: 'History',
code: 'HIST',
courses: [
//... course.toShortJson()
]
}
{
first_name: 'James',
last_name: 'Bond',
pennkey: '',
courses: [
//... course.toShortJson()
]
reviews: [
//...review.toJson()
]
}