You will need to utilize postman and access the following endpoints
127.0.0.1:8080/reset_and_pop_db
and
127.0.0.1:8080/schedule/FIGTEST
You will need to download and install postgres and create a .env
file in the API project like shown in .env.example
.
The postgres table creations are located in /api/migrations.
The diesel schemas are in /api/schema.rs
with relevant handlers in /api/handlers.
and models in /api/models/
Most of these can be found in /api/handlers/types.rs
, with some internally used structs in /api/handlers/schedule.rs
.
Located in /api/handlers/schedule.rs
Catalog is hardcoded in /api/handlers/catalog.rs
curl http://127.0.0.1:8080/universities -H "Content-Type: application/json" -d '{"name": "Purdue", "description": "testing"}'
curl -X DELETE http://127.0.0.1:8080/universities/1 -H "Content-Type: application/json"
curl -X PATCH http://127.0.0.1:8080/universities/2 -H "Content-Type: application/json" -d '{"description": "this description has been updated"}'
npm start
cargo run