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

:memo: add docs describing some endpoints

+47
+47
README.md
··· 109 109 UUID brigade_id FK 110 110 } 111 111 ``` 112 + 113 + 114 + ## /user 115 + 116 + ### POST /user/login 117 + 118 + #### Request 119 + 120 + ```json 121 + { 122 + "matricula": "000", 123 + "senha": "wibble" 124 + } 125 + ``` 126 + 127 + #### Response 128 + 129 + `200 OK` 130 + 131 + 132 + ```json 133 + { 134 + "id": "3aedc1d9-79cc-45fe-a294-938351b9f83d", 135 + "role": "bombeiro" 136 + } 137 + ``` 138 + 139 + ### PUT /user/password 140 + 141 + #### Request 142 + 143 + ```json 144 + { 145 + "senhaAtual": "wibble", 146 + "novaSenha": "wobble", 147 + "confirmarSenha": "wobble" 148 + } 149 + ``` 150 + 151 + #### Response 152 + 153 + `200 OK` 154 + 155 + 156 + ```plaintext 157 + Senha atualizada com sucesso! 158 + ```