Coloquei os principais endpoints do CRUD para fazer a manipulação dos dados
Adicionei services adicionais para lidar com os endpoints correspondentes, para assim salvar, deletar, atualizar e ler corretamente os dados
Adicionei uma lib do Kotlin usada de exemplo anteriormente, chamada KotlinLogging, em outro projeto para fazer os logs, para cada service
adicionei uma exception personalizada que vai lidar com o erro da falta da informação a ser requisitada
criei um globalExceptionHandler para tratar as exceptions que podem ser lançadas de forma mais clara e fácil para futuros tratamentos, e uma data class chamada ResponseError para servir de modelo de resposta padronizado para o erro que pode ocorrer
Adicionei um novo pacote chamado response que vai servir como um dto de resposta para requests futuras que precisem retornar os dados para o cliente, usei inicialmente para o endpoint de READ para conseguir retornar a tarefa apenas com o status.
KotlinLogging
, em outro projeto para fazer os logs, para cada serviceglobalExceptionHandler
para tratar as exceptions que podem ser lançadas de forma mais clara e fácil para futuros tratamentos, e uma data class chamadaResponseError
para servir de modelo de resposta padronizado para o erro que pode ocorrerresponse
que vai servir como um dto de resposta para requests futuras que precisem retornar os dados para o cliente, usei inicialmente para o endpoint de READ para conseguir retornar a tarefa apenas com o status.