-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcurl.json
More file actions
85 lines (85 loc) · 1.86 KB
/
curl.json
File metadata and controls
85 lines (85 loc) · 1.86 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
73
74
75
76
77
78
79
80
81
82
83
84
85
[
{
"method": "POST",
"url": "http://localhost:8080/api/v1/node",
"headers": {
"Content-Type": "application/json"
},
"body": {
"name": "src",
"type": "folder",
"parentId": null
},
"expectedStatus": 201,
"description": "Create first folder at root level"
},
{
"method": "POST",
"url": "http://localhost:8080/api/v1/node",
"headers": {
"Content-Type": "application/json"
},
"body": {
"name": "components",
"type": "folder",
"parentId": 1
},
"expectedStatus": 201,
"description": "Create folder inside src"
},
{
"method": "POST",
"url": "http://localhost:8080/api/v1/node",
"headers": {
"Content-Type": "application/json"
},
"body": {
"name": "App.js",
"type": "file",
"size": 1024,
"parentId": 1
},
"expectedStatus": 201,
"description": "Create file inside src folder"
},
{
"method": "POST",
"url": "http://localhost:8080/api/v1/node",
"headers": {
"Content-Type": "application/json"
},
"body": {
"name": "Navbar.js",
"type": "file",
"size": 512,
"parentId": 2
},
"expectedStatus": 201,
"description": "Create file inside components folder"
},
{
"method": "GET",
"url": "http://localhost:8080/api/v1/nodes",
"expectedStatus": 200,
"description": "View all nodes in flat format"
},
{
"method": "POST",
"url": "http://localhost:8080/api/v1/move",
"headers": {
"Content-Type": "application/json"
},
"body": {
"nodeId": 3,
"newParentId": 2
},
"expectedStatus": 200,
"description": "Move App.js from src to components"
},
{
"method": "GET",
"url": "http://localhost:8080/api/v1/tree",
"expectedStatus": 200,
"description": "Check final tree after move operation"
}
]