Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Commit

Permalink
release: v0.11.1 (#87)
Browse files Browse the repository at this point in the history
* 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
PedroChaparro authored Oct 14, 2023
1 parent 8e5154f commit 6a405fc
Show file tree
Hide file tree
Showing 41 changed files with 517 additions and 262 deletions.
18 changes: 9 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## [0.11.1](https://github.com/hawks-atlanta/metadata-scala/compare/v0.11.0...v0.11.1) (2023-10-14)


### Bug Fixes

* Include files size ([#86](https://github.com/hawks-atlanta/metadata-scala/issues/86)) ([8d46afa](https://github.com/hawks-atlanta/metadata-scala/commit/8d46afa5721c3ef0d021e504b5e8f8645b06b49a))



# [0.11.0](https://github.com/hawks-atlanta/metadata-scala/compare/v0.10.4...v0.11.0) (2023-10-03)


Expand Down Expand Up @@ -34,12 +43,3 @@



## [0.10.1](https://github.com/hawks-atlanta/metadata-scala/compare/v0.10.0...v0.10.1) (2023-09-26)


### Bug Fixes

* Update is_shared column when a file is shared ([#70](https://github.com/hawks-atlanta/metadata-scala/issues/70)) ([7f63347](https://github.com/hawks-atlanta/metadata-scala/commit/7f63347667d0095616e8d09641d264e888f44ffb))



5 changes: 5 additions & 0 deletions docs/bruno/bruno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"version": "1",
"name": "bruno",
"type": "collection"
}
11 changes: 11 additions & 0 deletions docs/bruno/can-read/can-read.bru
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
}
26 changes: 26 additions & 0 deletions docs/bruno/create-file/file-in-folder.bru
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
}
}
26 changes: 26 additions & 0 deletions docs/bruno/create-file/file-in-root.bru
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
}
}
26 changes: 26 additions & 0 deletions docs/bruno/create-file/file-no-extension.bru
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
}
}
26 changes: 26 additions & 0 deletions docs/bruno/create-file/folder-in-folder.bru
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
}
}
26 changes: 26 additions & 0 deletions docs/bruno/create-file/folder-in-root.bru
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
}
}
3 changes: 3 additions & 0 deletions docs/bruno/environments/development.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
vars {
BASE_URL: http://localhost:8080/api/v1
}
11 changes: 11 additions & 0 deletions docs/bruno/get-metadata/get-metadata.bru
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
}
15 changes: 15 additions & 0 deletions docs/bruno/list-files/files-in-folder.bru
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
}
11 changes: 11 additions & 0 deletions docs/bruno/list-files/files-in-root.bru
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
}
21 changes: 21 additions & 0 deletions docs/bruno/mark-as-ready/mark-as-ready.bru
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"
}
}
21 changes: 21 additions & 0 deletions docs/bruno/move-file/move-file.bru
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"
}
}
21 changes: 21 additions & 0 deletions docs/bruno/rename-file/rename-file.bru
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"
}
}
21 changes: 21 additions & 0 deletions docs/bruno/share-file/share-file.bru
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'
}
}
11 changes: 11 additions & 0 deletions docs/bruno/shared-with-me/shared-with-me.bru
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
}
11 changes: 11 additions & 0 deletions docs/bruno/shared-with-who/shared-with-who.bru
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
}
3 changes: 0 additions & 3 deletions docs/rest/can_read.http

This file was deleted.

3 changes: 0 additions & 3 deletions docs/rest/get_metadata.http

This file was deleted.

3 changes: 0 additions & 3 deletions docs/rest/get_shared_with_user.http

This file was deleted.

3 changes: 0 additions & 3 deletions docs/rest/get_shared_with_who.http

This file was deleted.

7 changes: 0 additions & 7 deletions docs/rest/list_files.http

This file was deleted.

8 changes: 0 additions & 8 deletions docs/rest/mark_as_ready.http

This file was deleted.

17 changes: 0 additions & 17 deletions docs/rest/move_file.http

This file was deleted.

Loading

0 comments on commit 6a405fc

Please sign in to comment.