-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathreports.http
61 lines (47 loc) · 1.52 KB
/
reports.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
### Reports Endpoints ###
### Get all reports (Local)
GET http://localhost:3000/reports/all
### Get all reports (Remote)
GET https://nisa-invest-tfb-be.vercel.app/reports/all
### Get reports for a specific user (Local)
GET http://localhost:3000/reports/user/1
### Get reports for a specific user (Remote)
GET https://nisa-invest-tfb-be.vercel.app/reports/user/1
### Create a new report (Local)
POST http://localhost:3000/reports
Content-Type: application/json
{
"user_id": 1,
"title": "Monthly Progress Report",
"text": "This is the content of the monthly progress report.",
"priority": "medium"
}
### Create a new report (Remote)
POST https://nisa-invest-tfb-be.vercel.app/reports
Content-Type: application/json
{
"user_id": 1,
"title": "Monthly Progress Report",
"text": "This is the content of the monthly progress report.",
"priority": "medium"
}
### Update a report (Local)
PUT http://localhost:3000/reports/1
Content-Type: application/json
{
"title": "Updated Monthly Progress Report",
"text": "This is the updated content of the monthly progress report.",
"priority": "high"
}
### Update a report (Remote)
PUT https://nisa-invest-tfb-be.vercel.app/reports/1
Content-Type: application/json
{
"title": "Updated Monthly Progress Report",
"text": "This is the updated content of the monthly progress report.",
"priority": "high"
}
### Delete a report (Local)
DELETE http://localhost:3000/reports/1
### Delete a report (Remote)
DELETE https://nisa-invest-tfb-be.vercel.app/reports/1