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

Abierto
#48 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
55/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
kotlin
Área
api, mobile

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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/
Lenguaje dominante
Kotlin
Estrellas
0
Forks
0
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ft-dev-org/cloudbridge-oss

Todos los issues de ft-dev-org/cloudbridge-oss

Issues similares

Más issues de Kotlin

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.