-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrest.http
More file actions
72 lines (50 loc) · 1.17 KB
/
rest.http
File metadata and controls
72 lines (50 loc) · 1.17 KB
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
### Home
GET http://localhost:1203
### Register
POST http://localhost:1203/api/auth/register
Content-Type: application/json
{
"name": "Ashish1",
"email": "ashish1@example.com",
"password": "123456"
}
### Login
POST http://localhost:1203/api/auth/login
Content-Type: application/json
{
"email": "ashish@example.com",
"password": "123456"
}
### Login
POST http://localhost:1203/api/auth/login
Content-Type: application/json
{
"email": "ashish1@example.com",
"password": "123456"
}
### Create Task
POST http://localhost:1203/api/tasks
Content-Type: application/json
{
"title": "Learn nodejs",
"description": "Build API's",
"status": "pending",
"priority": "low",
"dueDate": "2026-05-15"
}
### Get My Tasks
GET http://localhost:1203/api/tasks
### Get Single Task
GET http://localhost:1203/api/tasks/69c5cb0cbd8152a3e41904cf
### Update Task
PUT http://localhost:1203/api/tasks/69c5cb0cbd8152a3e41904cf
Content-Type: application/json
{
"title": "Learn Advanced Backend",
"status": "in-progress",
"priority": "medium"
}
### Delete Task
DELETE http://localhost:1203/api/tasks/69c5cb0cbd8152a3e41904cf
### Logout
POST http://localhost:1203/api/auth/logout