This repository has been archived by the owner on Nov 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: Add logs and fix Scala warnings (#83) * refactor(logs): Create basic stdout logger * refactor: Remove unused request object in get methods * style: Fix typos and remove unneeded enclosing blocks * docs(http): Add bruno collection (#84) * docs(http): Add bruno collection * fix: Include files size (#86) * docs(openapi): Update spec * fix: Include files size when listing files * fix: Use `int` instead of `long` to store files size
- Loading branch information
1 parent
8e5154f
commit 6a405fc
Showing
41 changed files
with
517 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"version": "1", | ||
"name": "bruno", | ||
"type": "collection" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
meta { | ||
name: can-read | ||
type: http | ||
seq: 1 | ||
} | ||
|
||
get { | ||
url: {{BASE_URL}}/files/can_read/e1139bb6-d291-4170-8fb0-94dd787fa84b/22a7c6ca-8e57-46d2-9977-43dcbfcac760 | ||
body: none | ||
auth: none | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
meta { | ||
name: file-in-folder | ||
type: http | ||
seq: 8 | ||
} | ||
|
||
post { | ||
url: {{BASE_URL}}/files | ||
body: json | ||
auth: none | ||
} | ||
|
||
headers { | ||
Content-Type: application/json | ||
} | ||
|
||
body:json { | ||
{ | ||
"userUUID": "5c8e5e9d-7d82-450f-9fe3-43fc73aa5a39", | ||
"parentUUID": "32693db3-cc27-470b-b54e-442e7184b3fd", | ||
"fileType": "archive", | ||
"fileName": "distributed-systems-notes", | ||
"fileExtension": "md", | ||
"fileSize": 24 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
meta { | ||
name: file-in-root | ||
type: http | ||
seq: 10 | ||
} | ||
|
||
post { | ||
url: {{BASE_URL}}/files | ||
body: json | ||
auth: none | ||
} | ||
|
||
headers { | ||
Content-Type: application/json | ||
} | ||
|
||
body:json { | ||
{ | ||
"userUUID": "5c8e5e9d-7d82-450f-9fe3-43fc73aa5a39", | ||
"parentUUID": null, | ||
"fileType": "archive", | ||
"fileName": "tasks", | ||
"fileExtension": "md", | ||
"fileSize": 15 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
meta { | ||
name: file-no-extension | ||
type: http | ||
seq: 7 | ||
} | ||
|
||
post { | ||
url: {{BASE_URL}}/files | ||
body: json | ||
auth: none | ||
} | ||
|
||
headers { | ||
Content-Type: application/json | ||
} | ||
|
||
body:json { | ||
{ | ||
"userUUID": "5c8e5e9d-7d82-450f-9fe3-43fc73aa5a39", | ||
"parentUUID": null, | ||
"fileType": "archive", | ||
"fileName": "rare", | ||
"fileExtension": null, | ||
"fileSize": 15 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
meta { | ||
name: folder-in-folder | ||
type: http | ||
seq: 6 | ||
} | ||
|
||
post { | ||
url: {{BASE_URL}}/files | ||
body: json | ||
auth: none | ||
} | ||
|
||
headers { | ||
Content-Type: application/json | ||
} | ||
|
||
body:json { | ||
{ | ||
"userUUID": "5c8e5e9d-7d82-450f-9fe3-43fc73aa5a39", | ||
"parentUUID": "034bc5d4-1334-4f15-b986-31ea14ee03d9", | ||
"fileType": "directory", | ||
"fileName": "nested", | ||
"fileExtension": null, | ||
"fileSize": 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
meta { | ||
name: folder-in-root | ||
type: http | ||
seq: 9 | ||
} | ||
|
||
post { | ||
url: {{BASE_URL}}/files | ||
body: json | ||
auth: none | ||
} | ||
|
||
headers { | ||
Content-Type: application/json | ||
} | ||
|
||
body:json { | ||
{ | ||
"userUUID": "5c8e5e9d-7d82-450f-9fe3-43fc73aa5a39", | ||
"parentUUID": null, | ||
"fileType": "directory", | ||
"fileName": "university", | ||
"fileExtension": null, | ||
"fileSize": 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
vars { | ||
BASE_URL: http://localhost:8080/api/v1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
meta { | ||
name: get-metadata | ||
type: http | ||
seq: 2 | ||
} | ||
|
||
get { | ||
url: {{BASE_URL}}/files/metadata/70bd47dc-13e2-4ab0-a16c-8f4871cdd980 | ||
body: none | ||
auth: none | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
meta { | ||
name: files-in-folder | ||
type: http | ||
seq: 3 | ||
} | ||
|
||
get { | ||
url: {{BASE_URL}}/files/list/5c8e5e9d-7d82-450f-9fe3-43fc73aa5a39?parentUUID=034bc5d4-1334-4f15-b986-31ea14ee03d9 | ||
body: none | ||
auth: none | ||
} | ||
|
||
query { | ||
parentUUID: 034bc5d4-1334-4f15-b986-31ea14ee03d9 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
meta { | ||
name: files-in-root | ||
type: http | ||
seq: 4 | ||
} | ||
|
||
get { | ||
url: {{BASE_URL}}/files/list/5c8e5e9d-7d82-450f-9fe3-43fc73aa5a39 | ||
body: none | ||
auth: none | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
meta { | ||
name: mark-as-ready | ||
type: http | ||
seq: 2 | ||
} | ||
|
||
put { | ||
url: {{BASE_URL}}/files/ready/70bd47dc-13e2-4ab0-a16c-8f4871cdd980 | ||
body: json | ||
auth: none | ||
} | ||
|
||
headers { | ||
Content-Type: application/json | ||
} | ||
|
||
body:json { | ||
{ | ||
"volume": "1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
meta { | ||
name: move-file | ||
type: http | ||
seq: 2 | ||
} | ||
|
||
put { | ||
url: {{BASE_URL}}/files/move/5c8e5e9d-7d82-450f-9fe3-43fc73aa5a39/0cbd00a1-fc6c-43b3-96d6-9bb52b739290 | ||
body: json | ||
auth: none | ||
} | ||
|
||
headers { | ||
Content-Type: application/json | ||
} | ||
|
||
body:json { | ||
{ | ||
"parentUUID": "bc421da0-684c-497f-bfd6-224305c04655" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
meta { | ||
name: rename-file | ||
type: http | ||
seq: 2 | ||
} | ||
|
||
put { | ||
url: {{BASE_URL}}/files/rename/5c8e5e9d-7d82-450f-9fe3-43fc73aa5a39/89c2ff2e-836a-4a40-85da-d52cd91450bb | ||
body: json | ||
auth: none | ||
} | ||
|
||
headers { | ||
Content-Type: application/json | ||
} | ||
|
||
body:json { | ||
{ | ||
"name": "renamed" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
meta { | ||
name: share-file | ||
type: http | ||
seq: 1 | ||
} | ||
|
||
post { | ||
url: {{BASE_URL}}/files/share/5c8e5e9d-7d82-450f-9fe3-43fc73aa5a39/e237038f-32e5-4b50-bc95-5ab88537ec5d | ||
body: json | ||
auth: none | ||
} | ||
|
||
headers { | ||
Content-Type: application/json | ||
} | ||
|
||
body:json { | ||
{ | ||
"otherUserUUID": 'e1139bb6-d291-4170-8fb0-94dd787fa84b' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
meta { | ||
name: shared-with-me | ||
type: http | ||
seq: 2 | ||
} | ||
|
||
get { | ||
url: {{BASE_URL}}/files/shared_with_me/e1139bb6-d291-4170-8fb0-94dd787fa84b | ||
body: none | ||
auth: none | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
meta { | ||
name: shared-with-who | ||
type: http | ||
seq: 2 | ||
} | ||
|
||
get { | ||
url: {{BASE_URL}}/files/shared_with_who/22a7c6ca-8e57-46d2-9977-43dcbfcac760 | ||
body: none | ||
auth: none | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.