Draft: feat(US2502) Endpoint para component data
Co-authored-by: HulkFront [email protected] criado endpoint para as datas do front da task US2502 OBS: foi necessário alterar o tipo do campo "dtDate" de Timestamp para "Date" na tabela "Events" atualizado script de insert para facilitar testes. exemplo response do insomnia: [ { "date": "2023-06-20", "events": [ { "status": 1, "title": "Consulta com Psicólogo", "startTime": "10:00", "endTime": "11:00", "professional": { "name": "Adalberto Lourenço", "specialty": "PSICÓLOGO" } }, { "status": 1, "title": "Consulta com Psicólogo", "startTime": "10:00", "endTime": "11:00", "professional": { "name": "Guilherme Souza", "specialty": "PSICÓLOGO" } }, { "status": 2, "title": "Terapia Integrativa", "startTime": "10:00", "endTime": "11:00", "professional": { "name": "Ana Carolina Cordova", "specialty": "TERAPEUTA" } } ] }, { "date": "2023-06-22", "events": [ { "status": 1, "title": "Consulta com Psicólogo", "startTime": "10:00", "endTime": "11:00", "professional": { "name": "Adalberto Lourenço", "specialty": "PSICÓLOGO" } }, { "status": 1, "title": "Consulta com Psicólogo", "startTime": "10:00", "endTime": "11:00", "professional": { "name": "Guilherme Souza", "specialty": "PSICÓLOGO" } } ] }, { "date": "2023-06-24", "events": [ { "status": 1, "title": "Consulta com Psicólogo", "startTime": "10:00", "endTime": "11:00", "professional": { "name": "Adalberto Lourenço", "specialty": "PSICÓLOGO" } }, { "status": 1, "title": "Consulta com Psicólogo", "startTime": "10:00", "endTime": "11:00", "professional": { "name": "Guilherme Souza", "specialty": "PSICÓLOGO" } } ] }, { "date": "2023-06-26", "events": [ { "status": 1, "title": "Consulta com Psicólogo", "startTime": "10:00", "endTime": "11:00", "professional": { "name": "Adalberto Lourenço", "specialty": "PSICÓLOGO" } }, { "status": 1, "title": "Consulta com Psicólogo", "startTime": "10:00", "endTime": "11:00", "professional": { "name": "Guilherme Souza", "specialty": "PSICÓLOGO" } } ] } ]