- Write a
campus
model with the following information:- name: not empty or null
- imageUrl: with a default value
- address: not empty or null
- description: extremely large text
- Write a
student
model with the following information:- firstName: not empty or null
- lastName: not empty or null
- email: not empty or null; must be a valid email
- imageUrl: with a default value
- gpa: decimal between 0.0 and 4.0
- Students may be associated with at most one campus. Likewise, campuses may be associated with many students.
- Write a route to serve up all students
- Write a route to serve up all campuses
- Write a route to serve up a single campus (based on its id), including the students enrolled at that campus
- Write a route to serve up a single student (based on their id), including the campus the student is enrolled at
- Write a route to add a new campus
- Write a route to add a new student
- Write a route to remove a campus (based on its id)
- Write a route to remove a student (based on their id)