Commit Graph
41 Commits
Author SHA1 Message Date
Sebastian Martinez 2e8b817d53 httpd: Copy RADICLE_VERSION to /
Also deprecates it on `api/v1/`
2024-12-05 14:21:07 +01:00
Sebastian Martinez 2fef0f5c9c httpd: Move CorsLayer to / 2024-12-05 14:13:56 +01:00
Sebastian Martinez f456731f42 Fix radicle-httpd tests for radicle 1.1.0 2024-12-05 14:13:56 +01:00
Sebastian Martinez cb7e01105b Update radicle-httpd to latest radicle crate 2024-12-05 09:21:19 +01:00
Rūdolfs Ošiņš f815b2dbca Bump httpd version numbers
Bump httpd version numbers
2024-11-11 18:30:39 +01:00
Rūdolfs Ošiņš 9d981f9210 http: Fix encoding issue in raw file handler
Turns out "content-type: text; charset=utf-8" wasn't valid, it had to be
"content-type: text/plain; charset=utf-8" for browsers to recognise it
properly.
2024-11-08 12:08:31 +01:00
Sebastian Martinez 5657a6ff47 http: Filter by delegate before fetching repo info 2024-10-02 12:05:07 +02:00
Sebastian Martinez 9dd61d3bf3 http: Apply warnings from clippy 2024-09-04 07:24:34 +02:00
Sebastian Martinez fc83829ef6 http: Decouple api responses from heartwood crates 2024-09-03 15:22:22 +02:00
Sebastian Martinez 3d4d76cf53 http: Move querystring structs into own module 2024-09-03 15:22:22 +02:00
Sebastian Martinez 859d22319f http: Run cargo fmt 2024-09-03 15:22:22 +02:00
Sebastian Martinez 30647fbb26 Update heartwood and radicle-httpd releases 2024-08-29 11:02:04 +02:00
Sebastian Martinez 139bab5809 http: Update radicle crate to v0.13.0 2024-08-29 11:02:04 +02:00
Sebastian Martinez 995e23936b http: Update naming for delegate dids
The usage of the term `delegate` when handling a DID isn't explicit
enough, so this commit changes the places where the word `delegate` is
used when actually it's a DID.
2024-08-23 08:58:06 +02:00
Sebastian Martinez 02234eac1d Update apiVersion to 5.0.0 2024-08-22 15:50:42 +02:00
Sebastian Martinez c798e5d4e9 http: Modify payloads fields
Don't require a repo to have a `xyz.radicle.project` payload.
If there are issues with obtaining the repo `head`, issue count or patch
count, filter that repo from the list.
2024-08-22 09:44:51 +02:00
Sebastian Martinez 4fda686bad http: Rename files from projects to repos 2024-08-21 23:37:37 +02:00
Sebastian Martinez 5d7eb71eab http: Rename LoC with projects ocurrences to repos 2024-08-21 23:37:37 +02:00
Dawid Ciężarkiewicz 5444875e71 http: Display simple info page on / 2024-08-08 11:50:51 +02:00
Sebastian Martinez a23c704c24 http: Use pinned repo length for per_page unwrap instead of fixed number
This allows us to avoid querying the repo stats and relying on maybe bad
routing tables and take the hardcoded pinned repo array in case of
querying for pinned repos.
2024-07-29 07:55:54 -03:00
Rūdolfs Ošiņš c0049f83ba Redesign node view and use it as the landing-page 2024-07-26 10:20:01 +02:00
Rūdolfs Ošiņš c60b6451d3 http: Remove all authentication related code
We also remove the `/api/v1/profile` endpoint because that was only
supposed to be used with a local node and not publicly accessible. All
fields that are still used in the UI were moved to `/api/v1/node`.

We bump the API and crate versions since this is a breaking change.

squash or drop!: Small suggestion for improvement
2024-07-19 08:11:47 -03:00
Rūdolfs Ošiņš b105d06fae http: Only count publicly seeded repositories
Previously the /api/v1/stats endpoint would count any repository that is
in the storage regardless of whether the repository is publicly seeded or not.
2024-07-19 05:32:42 -03:00
Sebastian Martinez c4aa4f04f2 http: Update crate to 0.14.0 and api version to 3.0.0 2024-07-12 10:44:32 +02:00
Sebastian Martinez 7347d031e7 http: Rename IssueState and PatchState to IssueStatus and PatchState 2024-07-04 15:21:10 +02:00
Sebastian Martinez 49a299f9e3 http: Rename state query param to status
This allows us to match the query param with the output that is
`{ "status": "open" | "merged" | ... }`
2024-07-04 15:18:38 +02:00
Sebastian Martinez 25a16869d7 http: Add All as state query option for cobs 2024-07-04 15:18:38 +02:00
Sebastian Martinez 76fb2e2dc6 http: Add missing issue and patch endpoint tests 2024-07-04 15:17:52 +02:00
Sebastian Martinez 6fd6375005 http: Add ssh keys and full did to nodes handler 2024-07-04 15:12:20 +02:00
Sebastian Martinez 41b1bcafd5 Update API version to 2.0.0 2024-07-04 11:48:41 +02:00
Sebastian Martinez ea6a7fb028 http: Remove session and all read-write endpoints
Updates API version to 2.0.0 and crate to 0.13.0
2024-07-03 14:04:07 +02:00
Richard Levitte 02057b5b08 http: accept .org as repository README extension 2024-07-01 11:52:33 +02:00
Sebastian Martinez ce842b0ca4 Update api version to 1.2.0
In the node endpoint the version field has been renamed to agent
2024-06-28 21:43:32 +02:00
Sebastian Martinez fe5ec4432a http: Change /api/v1/node version to node user agent
We used the `RADICLE_VERSION` env variable to display the node version,
which as of recently matched always the `radicle-httpd` version.
Since the separation this isn't the case anymore, and the user agent
seems a more reliable metric.
2024-06-28 21:43:32 +02:00
Sebastian Martinez 37a88bbb83 http: Add node endpoint tests 2024-06-28 13:59:35 +02:00
Sebastian Martinez b39389c1a1 http: Add repo policy endpoint 2024-06-28 13:59:35 +02:00
Sebastian Martinez 7fc2edd10f http: Update radicle crate dependency to 0.11.1 2024-06-27 11:54:24 +02:00
Sebastian Martinez 0b5a45207e http: Removal of rad-web
rad-web requires the radicle-cli dependency which we shouldn't require
in radicle-httpd.
2024-06-27 11:54:24 +02:00
Sebastian Martinez 473f893b2b http: release radicle-httpd v0.11.0 2024-06-21 14:19:43 +02:00
Sebastian Martinez abcf8f34a1 http: Add version and help flag 2024-06-21 12:10:44 +02:00
Rūdolfs Ošiņš 2f1a5dcdfe Rename http-server -> radicle-httpd
So that the directory name matches the crate name.
2024-06-20 11:44:44 +02:00