Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make PATCH method for updating entities #159

Open
axelinter opened this issue Apr 5, 2020 · 1 comment
Open

Make PATCH method for updating entities #159

axelinter opened this issue Apr 5, 2020 · 1 comment
Assignees
Labels
backend Backend general architecture enhancement New feature or request

Comments

@axelinter
Copy link

Poder actualizar una playlist (Nombre, foto, etc...) Sin tener que pasarle de nuevo todos los otros campos.
Esto viene que al implementar una opción de editar el nombre me ha borrado todas las tracks de la playlist , cuando en el body de la llamada REST(PUT) no he indicado ni el campo track.

@arnaugarcia arnaugarcia self-assigned this Apr 5, 2020
@arnaugarcia arnaugarcia added backend Backend general architecture enhancement New feature or request labels Apr 5, 2020
@arnaugarcia
Copy link
Owner

Hey! Es cierto que algunas APIs permiten utilizar un método PATCH así cómo (PUT, GET o POST) para realizar pequeñas modificaciones a la entidad. Me miraré como lo hace Spotify o SoundCloud y crearé un endpoint para que se pueda hacer ya que en algunos casos puede ser bueno y comprendo que es un poco "farragoso" tener que llevar un modelo completo para realizar un simple update.

@arnaugarcia arnaugarcia changed the title Editar playlist sin borrar sus Tacks Make PATCH method for updating entities Apr 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend general architecture enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants