Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GET /cats/:id #5

Open
Cowa opened this issue Mar 7, 2015 · 0 comments
Open

GET /cats/:id #5

Cowa opened this issue Mar 7, 2015 · 0 comments

Comments

@Cowa
Copy link
Member

Cowa commented Mar 7, 2015

Add a new route to retrieve a specific cat by its id :
GET /cats/:id

Must returns :

{
  "status": "success"
  "data": {
    "id": "...",
    "link": "http://..."
  }
}

In case of error (?) :

{
  "status": "error",
  "message": "Resource not found"
}

The CatShelter will need some modifications too :

  • use a Map instead of an Array for instant access (?)

cat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant