eddiem3 / live-chair

Web app and api for Live Chair
1 stars 0 forks source link

Barber Format #12

Open eddiem3 opened 9 years ago

eddiem3 commented 9 years ago

Can we make it so that we only have to make one get request for information about a barber. As in viewing information about a particular barber produce would something like...

 [{
      "id": "1"
      "fname": "Bob",
      "lname": "The Builder" 
      "stars": "5",

      "reviews": [{
        "rating": 5,
        "body": "I love this cut!",
        "author": "joe@example.org",
        "createdOn": 1397490980837
      }, {
        "rating": 1,
        "body": "This guy sucks.",
        "author": "tim@example.org",
        "createdOn": 1397490980837
      }]

      "profile": [{
        "sname": "Bob Cutz",
        "address": "123 Street Ave"
        "city": "Orangeburg"
        "state": "SC"
        "zip": "29115"
        "avatar": "barber1.jpg"
        "stars":"5",
        "skills": [fades, travis porter, eye brows, twists]

      }]
 }

And the same for a list of barbers.

ikalu commented 9 years ago

Yes, I think its cool.. But when we are 'get'ing the list of barbers ... it's only the list; their profile info doesn't show on the same page as the list, right?

eddiem3 commented 9 years ago

Correct, just want all the data at once

ikalu commented 9 years ago

:+1: