Client API Gitea avec authentification et pagination #1

Closed
opened 2026-03-10 18:38:33 +01:00 by admin · 0 comments
Owner

Description

Creer un client API Gitea reutilisable qui gere :

  • Authentification par header Authorization: token <TOKEN>
  • Pagination automatique (parametre page/limit, header X-Total-Count)
  • Configuration via variables d'environnement (GITEA_URL, GITEA_TOKEN)

Endpoints a supporter

  • GET /api/v1/user/repos
  • GET /api/v1/repos/{owner}/{repo}/releases/latest
  • GET /api/v1/repos/{owner}/{repo}/milestones

Criteres d'acceptation

  • Authentification fonctionnelle
  • Pagination transparente pour les listes
  • Gestion des erreurs HTTP (404 pour releases manquantes)
  • Tests unitaires avec mocks
## Description Creer un client API Gitea reutilisable qui gere : - Authentification par header `Authorization: token <TOKEN>` - Pagination automatique (parametre `page`/`limit`, header `X-Total-Count`) - Configuration via variables d'environnement (`GITEA_URL`, `GITEA_TOKEN`) ## Endpoints a supporter - `GET /api/v1/user/repos` - `GET /api/v1/repos/{owner}/{repo}/releases/latest` - `GET /api/v1/repos/{owner}/{repo}/milestones` ## Criteres d'acceptation - [ ] Authentification fonctionnelle - [ ] Pagination transparente pour les listes - [ ] Gestion des erreurs HTTP (404 pour releases manquantes) - [ ] Tests unitaires avec mocks
admin added this to the (deleted) milestone 2026-03-10 18:38:33 +01:00
admin added the feature label 2026-03-10 18:38:52 +01:00
admin modified the milestone from (deleted) to v1.0.0 2026-03-10 18:41:23 +01:00
admin closed this issue 2026-03-10 19:29:46 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: admin/gitea-dashboard#1