Skip to content

[FEATURE REQUEST] List all the counters of a namespace #50

@KingJorjai

Description

@KingJorjai

Conceptual Design

Endpoint: https://api.counterapi.dev/v1/:namespace/:name/all_counters

Method: GET

Parameters:

  • :namespace (required): The namespace to retrieve the counters from.
  • :name (required): The value is ignored, required not to break the rest of the API (maybe consider refactoring?)
  • order_by (optional): Ordering the results. e.g. count_asc, count_desc, updated_asc, updated_desc.

Response:

A JSON array of counter objects, removing redundant information like namespace_id and namespace.

[
    {
        "id": 1,
        "name": "test",
        "count": 39,
        "created_at": "2024-06-27T11:08:32.461593Z",
        "updated_at": "2025-02-28T12:18:17.4834034Z"
    },
    {
        "id": 2,
        "name": "test2",
        "count": 4,
        "created_at": "2024-06-27T18:04:33.227832Z",
        "updated_at": "2025-02-28T12:19:11.418109054Z",
    },
    ...
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions