aiondemand / aiondemand/AIOD-rest-api

Add `PATCH` endpoints for assets

Abierto
#600 1 comentario 0 reacciones 0 asignados Ver en GitHub
enhancement
Lenguaje dominante
Python
Estrellas
36
Forks
77
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

`PUT` endpoints to replace an entire document are already available, but typically users just want to update individual fields, for which a `PATCH` endpoint is normally used. We can rely on largely the same schema, but make each required attribute optional and figure out which fileds are set through `__fields_set__` (https://roman.pt/posts/handling-unset-values-in-fastapi-with-pydantic/). Branch `update/no-name` has some references on how to make fields optional programmatically. The `PUT` should support schema conversions between different versions of the REST API.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.