tangled
alpha
login
or
join now
kacaii.dev
/
senac-brigade-server
0
fork
atom
wip: currently rewriting the project as a full stack application
tangled.org/kacaii.dev/sigo
gleam
0
fork
atom
overview
issues
1
pulls
pipelines
:memo: add docs describing some endpoints
kacaii.dev
2 months ago
6846a002
85f71aca
+47
1 changed file
expand all
collapse all
unified
split
README.md
+47
README.md
···
109
109
UUID brigade_id FK
110
110
}
111
111
```
112
112
+
113
113
+
114
114
+
## /user
115
115
+
116
116
+
### POST /user/login
117
117
+
118
118
+
#### Request
119
119
+
120
120
+
```json
121
121
+
{
122
122
+
"matricula": "000",
123
123
+
"senha": "wibble"
124
124
+
}
125
125
+
```
126
126
+
127
127
+
#### Response
128
128
+
129
129
+
`200 OK`
130
130
+
131
131
+
132
132
+
```json
133
133
+
{
134
134
+
"id": "3aedc1d9-79cc-45fe-a294-938351b9f83d",
135
135
+
"role": "bombeiro"
136
136
+
}
137
137
+
```
138
138
+
139
139
+
### PUT /user/password
140
140
+
141
141
+
#### Request
142
142
+
143
143
+
```json
144
144
+
{
145
145
+
"senhaAtual": "wibble",
146
146
+
"novaSenha": "wobble",
147
147
+
"confirmarSenha": "wobble"
148
148
+
}
149
149
+
```
150
150
+
151
151
+
#### Response
152
152
+
153
153
+
`200 OK`
154
154
+
155
155
+
156
156
+
```plaintext
157
157
+
Senha atualizada com sucesso!
158
158
+
```