Skip to content

/lists/NUM returns all lists rather than one by ID #2117

@mikeckennedy

Description

@mikeckennedy

Version:

  • listmonk: 4.0.1
  • OS: macOS

Description of the bug and steps to reproduce:

Doing a GET request against the URL: https://servername/api/lists/5 returns JSON of this style:

{
    "data": {
        "results": [
            {
                "id": 9,
                "uuid": "7a998..."
            },
            {
                "id": 8,
                "uuid": "a12603..."
            },
            {
                "id": 7,
                "uuid": "a12603..."
            },

            {
                "id": 6,
                "uuid": "a12603..."
            },

That is, all of the lists are returned when calling the endpoint at /lists/NUM (in this case I passed 5). It seems like something is wrong with the URL route here and it's being handled in the /lists route, not /lists/{int} route.

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