Add missing x-total-count header for pagination APIs #6095

Closed
opened 2025-11-02 06:44:58 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @pd4d10 on GitHub (Oct 6, 2020).

  • Gitea version (or commit ref): v1.1.1
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Description

User's repo list API has a x-total-count response header to give the total count info.

Is there any plan to add it to other pagination APIs?

Haven't checked all APIs yet. Just find these in GitTouch's development.

Related issue: https://github.com/git-touch/git-touch/issues/106

Originally created by @pd4d10 on GitHub (Oct 6, 2020). - Gitea version (or commit ref): v1.1.1 - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (provide example URL) - [ ] No - [ ] Not relevant ## Description [User's repo list API](https://gitea.com/api/swagger#/user/userListRepos) has a `x-total-count` response header to give the total count info. Is there any plan to add it to other pagination APIs? - [x] https://gitea.com/api/swagger#/user/userListRepos - [ ] https://gitea.com/api/swagger#/user/userListStarred - [ ] https://gitea.com/api/swagger#/user/userListSubscriptions - [ ] https://gitea.com/api/swagger#/repository/repoListStargazers - [ ] https://gitea.com/api/swagger#/repository/repoListSubscribers Haven't checked all APIs yet. Just find these in [GitTouch](https://github.com/git-touch/git-touch)'s development. Related issue: https://github.com/git-touch/git-touch/issues/106
GiteaMirror added the modifies/api label 2025-11-02 06:44:58 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6095