Skip to content

GET /cats/:id #5

@Cowa

Description

@Cowa

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions