Conclui a implementação do projeto prático de Minimal API#4
Open
BrunoAlbuquerqu3 wants to merge 1 commit intodigitalinnovationone:mainfrom
Open
Conclui a implementação do projeto prático de Minimal API#4BrunoAlbuquerqu3 wants to merge 1 commit intodigitalinnovationone:mainfrom
BrunoAlbuquerqu3 wants to merge 1 commit intodigitalinnovationone:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Consegui terminar o projeto da Minimal API, aplicando bastante coisa que aprendi sobre ASP.NET Core e Entity Framework Core para gerenciar administradores e veículos. Foi um desafio, mas aprendi muito!
O que eu fiz de mais importante:
POST /administradores/login).AdmouEditor) consiga usar.DbContextopara conectar no MySQL, que deu um pouco de trabalho, mas funcionou!AdministradoreVeiculocom Data Annotations.HasData) lá.AdministradorServico,VeiculoServico) com os métodos deIncluir,Listar Todos,Buscar por ID,AtualizareApagar.GET,POST,PUT,DELETE) para todas essas operações.Esse projeto me ajudou a entender melhor como funciona uma API RESTful com .NET, a parte de segurança básica e como salvar dados no banco. Estou feliz com o resultado!