-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHTTPRequest.http
100 lines (79 loc) · 2.13 KB
/
HTTPRequest.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
################################# Insurer #############################################
### Get all
GET http://localhost:8080/project/api/insurers/all
Accept: application/json
### Get one
GET http://localhost:8080/project/api/insurers/3
Accept: application/json
### Post one
POST http://localhost:8080/project/api/insurers
Content-Type: application/json
{
"id": 99,
"name": "Test Insurer"
}
### Put one
PUT http://localhost:8080/project/api/insurers/3
Content-Type: application/json
{
"id": 3,
"name": "Test Insurer"
}
### Delete one
DELETE http://localhost:8080/project/api/insurers/3
Accept: application/json
################################# Insurer Experts #############################################
###Get all
GET http://localhost:8080/project/api/insurer_experts/all
Accept: application/json
###Get one
GET http://localhost:8080/project/api/insurer_experts/5
Accept: application/json
###Post one
POST http://localhost:8080/project/api/insurer_experts
Content-Type: application/json
{
"id": 27,
"name": "Test Insurer Expert",
"email": "asdsd@sdd",
"password": "asd",
"insurer_id": 10
}
###Put one
PUT http://localhost:8080/project/api/insurer_experts/5
Content-Type: application/json
{
"id": 5,
"name": "Test Insurer Expert",
"email": "asdsd@sdd",
"password": "asd",
"insurer_id": 10
}
###Delete one
DELETE http://localhost:8080/project/api/insurer_experts/5
Accept: application/json
################################# Historicals #############################################
###Get all
GET http://localhost:8080/project/api/historical/all
Accept: application/json
###Get one
GET http://localhost:8080/project/api/historical/1
Accept: application/json
###Update one
PUT http://localhost:8080/project/api/historical/1
Content-Type: application/json
{
"id": 1,
"state": "APROVADO_PELA_SEGURADORA",
"description": "Test description 2.0",
"date": "3921-07-01T00:00:00Z[UTC]"
}
###DELETE one
DELETE http://localhost:8080/project/api/historical/1
Accept: application/json
##############
PUT http://localhost:8080/project/api/occurrences/approval_type/1/change
Content-Type: application/json
{
"approval_type": "APPROVED"
}