Skip to content

hchood/apprentice-testing-demo-winter-2017

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Instructions

Let's make an app that returns data about music.

Specifically, we'll create the following:

  • An endpoint, GET /artists, to return a list of artists
{
  "artists": [
    {
      "id": "123",
      "created_at": "...",
      "updated_at": "...",
      "name": "Prince"
    },
    {
      "id": "456",
      "created_at": "...",
      "updated_at": "...",
      "name": "David Bowie"
    },
  ]
}
  • An endpoint, GET /artists/:id, to return additional information about an artist, including a list of their albums.
{
  "artist": {
    "id": "123",
    "created_at": "...",
    "updated_at": "...",
    "name": "Prince",
    "description": "...",
    "dob": "...",
    "album_ids": ["abc", "def"]
  },
  "albums": [
    {
      "id": "abc",
      "created_at": "...",
      "updated_at": "...",
      "artist_id": "123",
      "title": "Purple Rain",
      "year": "1984"
    },
    {
      "id": "abc",
      "created_at": "...",
      "updated_at": "...",
      "artist_id": "123",
      "title": "Parade",
      "year": "1985"
    },
  ]
}

We'll do all this using TDD 🎉

About

Demo app for testing workshop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published