Skip to content

Instantly share code, notes, and snippets.

View DonThePhan's full-sized avatar

Donny DonThePhan

View GitHub Profile
function htmlValidate(str) {
console.log('test')
}
@DonThePhan
DonThePhan / rest_exercise.md
Last active December 9, 2021 17:31 — forked from DominicTremblay/rest_exercise.md
Creating routes according to REST

REST exercise

  • You are asked to build an API for a photo app.
  • You need to create the routes according to REST for the following actions:
  1. The end-user wants to see a list of photos GET /photos

  2. The end-user wants to see a particular photo GET /photos/:photo_id