GA Logo

Routing Lab


Using the opinionated framework in your new language create a new project and create and test the following routes. The end points are listed using express style route syntax.

method endpoint return value
GET /hello {hello: "world"}
GET /my/:id {id: [id]}
POST /getthebody request body
GET /getthequery url query
GET /:route/:param {route: [route], param: [param]}

Hungry For More

  • Google how to change the response headers
  • Look into CORS headers and what they mean

What you will learn


GA Logo

Lab and Homework - MORE PETS


You've created full CRUD for Turtles in today's class, and tonight you'll be creating some company for them by creating the following models with full-crud. Make sure to test each one out in postman. All should have name and age just like turtle.

  1. Dogs
  2. Cats
  3. Birds

Hungry for More?

  • add additional properties like a boolean for adopted

Resources to Learn More