wip: currently rewriting the project as a full stack application tangled.org/kacaii.dev/sigo
gleam

:memo: add info about profile, occurrences by applicant and available roles

+70
+70
docs/routes/user.md
··· 53 "phone": "+55 (81) 9 8888-8888" 54 } 55 ```
··· 53 "phone": "+55 (81) 9 8888-8888" 54 } 55 ``` 56 + 57 + ### PUT /user/profile 58 + 59 + #### Request 60 + 61 + ```json 62 + { 63 + "full_name": "Fulaninho Moreira", 64 + "email": "email.novo@email.com", 65 + "phone": "+55 (81) 9 8888-8888" 66 + } 67 + ``` 68 + 69 + #### Response 70 + 71 + ```json 72 + { 73 + "full_name": "Fulaninho Moreira", 74 + "email": "email.novo@email.com", 75 + "phone": "+55 (81) 9 8888-8888" 76 + } 77 + ``` 78 + 79 + ### GET /user/roles 80 + 81 + #### Response 82 + 83 + ```json 84 + ["desenvolvedor", "bombeiro", "capitão", "analista"] 85 + ``` 86 + 87 + ### GET /user/{{id}}/occurrences 88 + 89 + #### Response 90 + 91 + ```jsonc 92 + [ 93 + { 94 + "id": "uuid-string", 95 + "status": "em andamento" // | "Finalizada", 96 + "prioridade": "alta" // | "Média" | "Baixa", 97 + "chamado": { 98 + "tipo": "acidente de trânsito" // | "Incêndio" | "Emergência Médica" | "Outro", 99 + "detalhes": "something something", 100 + "solicitante": { 101 + "nome": "Drop Table da Silva" 102 + } 103 + }, 104 + "coordenadas": [-123, 124] // | null, 105 + "timestamps": { 106 + "abertura": 1700000000.0, 107 + "chegadaNoLocal": 1700000050.0 // | null, 108 + "finalizacao": 1700000100.0 // | null 109 + }, 110 + "metadata": { 111 + "nomeUsuario": "Drop Table da Silva", 112 + "matriculaUsuario": "001", 113 + "usuarioId": "uuid-string" 114 + }, 115 + "equipes": [ 116 + { 117 + "id": "brigade-uuid", 118 + "nomeEquipe": "TEAM-ABC", 119 + "lider": "Drop Table da Silva", 120 + "codigoViatura": "VHC-789" 121 + } 122 + ] 123 + } 124 + ] 125 + ```