47 lines
656 B
Plaintext
47 lines
656 B
Plaintext
meta {
|
|
name: Get Files
|
|
type: http
|
|
seq: 2
|
|
}
|
|
|
|
get {
|
|
url: {{casket_host}}/api/v1/user/{{user_id}}/files?path=&nesting=5
|
|
body: none
|
|
auth: bearer
|
|
}
|
|
|
|
params:query {
|
|
path:
|
|
nesting: 5
|
|
}
|
|
|
|
auth:bearer {
|
|
token: {{access_token}}
|
|
}
|
|
|
|
assert {
|
|
res.status: eq 200
|
|
}
|
|
|
|
tests {
|
|
test("body should be correct", function() {
|
|
const data = res.getBody();
|
|
expect(data).to.eql({
|
|
"files": [
|
|
{
|
|
"name": "test",
|
|
"is_dir": true,
|
|
"children": [
|
|
{
|
|
"name": "blub.txt",
|
|
"is_dir": false,
|
|
"children": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
})
|
|
})
|
|
|
|
}
|