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

Create new endpoint for tags with stats #1315

Closed
acelaya opened this issue Jan 9, 2022 · 0 comments · Fixed by #1317
Closed

Create new endpoint for tags with stats #1315

acelaya opened this issue Jan 9, 2022 · 0 comments · Fixed by #1317
Milestone

Comments

@acelaya
Copy link
Member

acelaya commented Jan 9, 2022

Create a new endpoint to get tags with stats, let's say GET /tags/stats, which effectively deprecates GET /tags?withStats=true.

That endpoint would return a payload like this:

{
  "tags": {
    "data": [
      {
        "tag": "games",
        "shortUrlsCount": 10,
        "visitsCount": 521
      },
      {
        "tag": "shlink",
        "shortUrlsCount": 7,
        "visitsCount": 1087
      }
    ],
    "pagination": {...}
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant