Skip to content
This repository was archived by the owner on Jan 2, 2024. It is now read-only.
This repository was archived by the owner on Jan 2, 2024. It is now read-only.

Error on getting a collection by Id #175

Open
@irineul

Description

@irineul
  1. I create collection
  2. I run the GET (to return all collections), and it returns:
[
  {
    "id": "-LwU90TtYEcnFCmworbQ",
    "cnpj": "saease",
    "name": "esaes",
    "qty_spots": 1
  },
  {
    "id": "-LwUAxrOD3p3jOOEuU2d",
    "cnpj": "esasea",
    "name": "esaesa",
    "qty_spots": 1
  },
  {
    "id": "-LwUG_rxD2UX0B1snn81",
    "cnpj": "test",
    "name": "xjxjx",
    "qty_spots": 2
  }
]
  1. I run the endpoint GET /{id}:
    curl -X GET "http://localhost:3000/testing/-LwUG_rxD2UX0B1snn81" -H "accept: application/json"

  2. And is not possible to find the entity: "ENTITY_NOT_FOUND"

What can I do to fix that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions