WIP: Add simple API #37

Draft
BlakeRain wants to merge 5 commits from 15-api into main
Owner

This PR adds closes #15 by adding an API to Parcel. As describde in the issue, the API is authenticated via a Bearer token in the Authorization header, which the user can generate via the UI.

  • Implement the PUT handler for uploads
  • Implement the download handler
  • Implement the POST handler to create uploads
  • Add a UI for managing user API keys
  • Add API test suite, probably using the poem::test module.
  • Add a test for the API client
  • Add E2E tests for the API keys
This PR adds closes #15 by adding an API to Parcel. As describde in the issue, the API is authenticated via a `Bearer` token in the `Authorization` header, which the user can generate via the UI. - [x] Implement the `PUT` handler for uploads - [ ] Implement the download handler - [ ] Implement the `POST` handler to create uploads - [ ] Add a UI for managing user API keys - [ ] Add API test suite, probably using the [`poem::test`](https://docs.rs/poem/latest/poem/test/index.html) module. - [ ] Add a test for the API client - [ ] Add E2E tests for the API keys
Author
Owner

Blocked for #39

Blocked for #39
Some checks failed
Check / check (pull_request) Has been cancelled
This pull request has changes conflicting with the target branch.
  • crates/model/src/lib.rs
  • crates/server/src/app.rs
  • crates/server/src/app/handlers/teams/settings.rs
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 15-api:15-api
git switch 15-api

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff 15-api
git switch 15-api
git rebase main
git switch main
git merge --ff-only 15-api
git switch 15-api
git rebase main
git switch main
git merge --no-ff 15-api
git switch main
git merge --squash 15-api
git switch main
git merge --ff-only 15-api
git switch main
git merge 15-api
git push origin main
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
BlakeRain/parcel!37
No description provided.