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

pets-v2 api is categorizing various Macaws and Parrots as cats #53

Open
ToddKerpelman opened this issue Nov 3, 2021 · 0 comments
Open

Comments

@ToddKerpelman
Copy link

ToddKerpelman commented Nov 3, 2021

Sorry -- couldn't seem to find the dev-apis component to file this against, so I'm filing it here.

I added some pagination to my completed project (hooray!) and got back some rather confusing results that I thought were issues in my data, but turned out to be an issue with the API. Specifically, if you check out something like

https://pets-v2.dev-apis.com/pets?animal=cat&location=&breed=&page=1

You'll see at the bottom a few results like:

    {
      "id": 37,
      "name": "Rose",
      "animal": "cat",
      "city": "Minneapolis",
      "state": "MN",
      "description": "Morbi non lectus. Aliquam sit amet diam in magna bibendum imperdiet. Nullam orci pede, venenatis non, sodales sed, tincidunt eu, felis.",
      "breed": "Parrot",
      "images": [
        "http://pets-images.dev-apis.com/pets/bird6.jpg"
      ]
    },
    {
      "id": 39,
      "name": "Mayne",
      "animal": "cat",
      "city": "Dayton",
      "state": "OH",
      "description": "Quisque id justo sit amet sapien dignissim vestibulum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Nulla dapibus dolor vel est. Donec odio justo, sollicitudin ut, suscipit a, feugiat et, eros.\n\nVestibulum ac est lacinia nisi venenatis tristique. Fusce congue, diam id ornare imperdiet, sapien urna pretium nisl, ut volutpat sapien arcu sed augue. Aliquam erat volutpat.",
      "breed": "Macaw",
      "images": [
        "http://pets-images.dev-apis.com/pets/bird3.jpg"
      ]
    },

Perhaps this is some very clever adaption on the part of cats to better catch their dinner by disguising themselves as exotic birds, but I'm thinking maybe it's just a copy-and-paste error in the API.

Anyway, not a huge deal, but it definitely made me think I was doing something wrong at first.

@ToddKerpelman ToddKerpelman changed the title pets-v2 api is categorizing various Macaws and Parrots as pets-v2 api is categorizing various Macaws and Parrots as cats Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant