Skip to content

Commit

Permalink
api: GET /files includes dirs, GET metadata (#18)
Browse files Browse the repository at this point in the history
* api: GET /files includes dirs, GET metadata

Modify GET single file endpoint to use :file_path instead
of :file_name
Modify /print/start to use :file_path instead of :file_name
Modify GET /files response to also return directory vec,
allowing the UI to hit one endpoint for filescreen population
and eventual sorting/filtering
Add GET /files/:location/:file_path/metadata endpoint for getting
metadata for a single file

* api: Suppress warnings on build, let clippy handle it

* api: fix sl1 processing to account for relative paths

* api: revert config crate version

Revert config version to 0.13.4 until the case bug is resolved
rust-cli/config-rs#531

* api: move file_path to query params for /file and /file/metadata

Move /files/:location/:file_path to /file with query params
to support file_path parameter with slashes
Move metadata endpoint to /file/metadata, with same query params
Rename location category param to location

* api: migrate start endpoint to query params
  • Loading branch information
ada-phillips authored Apr 30, 2024
1 parent 4f00b38 commit ef107a2
Show file tree
Hide file tree
Showing 5 changed files with 131 additions and 159 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Update Rust Toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
rustflags: ""
rustflags: "-Awarning"

- name: Compile, Copy, and Compress armv7
run: |
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"
[dependencies]
clap = { version = "4.1.6", features = ["derive"] }
cross = "0.2.5"
config = "0.14.0"
config = "0.13.4"
serde = "1.0"
serde_yaml = "0.9"
zip = "1.1.1"
Expand Down
Loading

0 comments on commit ef107a2

Please sign in to comment.