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

[Propuesta] #24

Open
Naza26 opened this issue Sep 27, 2022 · 0 comments
Open

[Propuesta] #24

Naza26 opened this issue Sep 27, 2022 · 0 comments

Comments

@Naza26
Copy link

Naza26 commented Sep 27, 2022

💥 Propuesta

Quizas podriamos refactorizar los metodos de las apis con un enum e implementar el trait FromStr para ese enum (GET, POST, PUT).
Tambien podriamos con un enum los statusCode e implementar el trait Display para ver que status recibimos (200 = Ok, 400 = Bad Request)
Realmente no creo que sea algo prioriotario/necesario pero quizas agrega mas legibilidad al codigo y lo "modulariza" aun mas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant