The following program is an Rails application designed to produce a simple RESTful API for student data.
This api supports the following routes
get
/students
- Lists all students in the systemget
/students/:id
- Lists a specific student with the given iddelete
/students/:id
- Deletes the student with the matching idpatch
/students/:id
- Updates a student with the following information in the request body.fullName
- string, requiredis_present
- booleanemail
- string, required, must be unique
post
/students
- creates a student with the given information in the request bodyfullName
- string, requiredis_present
- booleanemail
- string, required, must be unique
This basic API is designed to support the ada students livecode.