Contract: pin the response body of `POST /api/v1/uploads/{id}/complete`

Aperta
#48 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
kotlin
Ambito
api, mobile

Direzione di ricerca

Read the API reference and trace POST /api/v1/uploads/{id}/complete in hub/cloudbridge_hub/app.py, then inspect hub/tests/test_uploads.py and the Android code under android/core/sync/. Pin the response body in the reference and hub test, update Android to parse it while retaining the older hub fallback, and add unit tests for both paths.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

android backend difficulty: intermediate

Context

The completion response body is not pinned by the contract; the app falls back to GET /api/v1/uploads/{id} when it
cannot parse it. Pinning it removes a round trip and an ambiguity.

Acceptance criteria

  • The body is documented in the API reference and asserted by a hub test.
  • The Android client parses it directly; the fallback stays for older hubs.
  • Unit tests for both paths.

Pointers

  • hub/cloudbridge_hub/app.py, hub/tests/test_uploads.py, android/core/sync/
Lingua principale
Kotlin
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ft-dev-org/cloudbridge-oss

Tutte le issue di ft-dev-org/cloudbridge-oss

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.