This is project code for the Udacity Full-Stack Web Developer Nanodegree
- Python 3.6
- Flask 0.12.2
$ vagrant up
$ vagrant ssh
- Go into the
vagrant
directory located in root. You should seeapplication.py
somewhere in that directory.
$ python3 database_setup.py
- This sets up the initial database models$ python3 application.py
- The webserver is now running- You can browse to
localhost:5000
/api/classroom
- [GET] will return a list of all classrooms
- [POST] will add new Classroom's
name
- Name of the teacher's Classroom
/api/classroom/<int:id>
- [GET] will return information on a specific classroom
- [POST] will create a new Student in classroom with
id
name
- Name of the Studentdescription
- A description of the Student
- [DELETE] will delete the Classroom with
id
/api/student
- [GET] will return all Student's in database
/api/student/<int:id>
- [GET] will return information on Student with
id
- [DELETE] will delete Student with
id