-
Notifications
You must be signed in to change notification settings - Fork 0
/
.http
40 lines (30 loc) · 960 Bytes
/
.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Criar um usuário
# POST http://127.0.0.1:8000/users/
# Content-Type: application/json
# {
# "username": "usuario_teste3333",
# "password": "senha_teste"
# }
### Obter token de acesso
# POST http://127.0.0.1:8000/users/token
# Content-Type: application/x-www-form-urlencoded
# username=usuario_teste3333&password=senha_teste
# # Criar um veículo
# POST http://127.0.0.1:8000/vehicles/
# Content-Type: application/json
# {
# "name": "Volkswagen",
# "brand": "Golf GTI",
# "year": 2023
# }
# # Listar todos os veículos
# GET http://127.0.0.1:8000/vehicles/
# # Listar o veículo com ID 10
# GET http://127.0.0.1:8000/vehicles/10
# # Atualizar o status do veículo com ID 10
# PUT http://127.0.0.1:8000/vehicles/855
# Content-Type: application/json
# Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOjE4NywiZXhwIjoxNzI3MDk5MzIyfQ.l7vCxXBxEuhEqcF1drdrx5ce0TEqyIEuIdT4sNSY62I
# {
# "status": "CONECTADO"
# }