Sort paths alphabetically
This commit is contained in:
parent
cf590046e9
commit
99576a9209
1 changed files with 42 additions and 42 deletions
|
|
@ -10,12 +10,14 @@ use serde::Deserialize;
|
||||||
pub struct PathIndex {}
|
pub struct PathIndex {}
|
||||||
|
|
||||||
#[derive(Deserialize, TypedPath)]
|
#[derive(Deserialize, TypedPath)]
|
||||||
#[typed_path("/graph/")]
|
#[typed_path("/commit/:hash")]
|
||||||
pub struct PathGraph {}
|
pub struct PathCommitByHash {
|
||||||
|
pub hash: String,
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Deserialize, TypedPath)]
|
#[derive(Deserialize, TypedPath)]
|
||||||
#[typed_path("/graph/metrics")]
|
#[typed_path("/graph/")]
|
||||||
pub struct PathGraphMetrics {}
|
pub struct PathGraph {}
|
||||||
|
|
||||||
#[derive(Deserialize, TypedPath)]
|
#[derive(Deserialize, TypedPath)]
|
||||||
#[typed_path("/graph/commits")]
|
#[typed_path("/graph/commits")]
|
||||||
|
|
@ -26,12 +28,12 @@ pub struct PathGraphCommits {}
|
||||||
pub struct PathGraphMeasurements {}
|
pub struct PathGraphMeasurements {}
|
||||||
|
|
||||||
#[derive(Deserialize, TypedPath)]
|
#[derive(Deserialize, TypedPath)]
|
||||||
#[typed_path("/queue/")]
|
#[typed_path("/graph/metrics")]
|
||||||
pub struct PathQueue {}
|
pub struct PathGraphMetrics {}
|
||||||
|
|
||||||
#[derive(Deserialize, TypedPath)]
|
#[derive(Deserialize, TypedPath)]
|
||||||
#[typed_path("/queue/inner")]
|
#[typed_path("/queue/")]
|
||||||
pub struct PathQueueInner {}
|
pub struct PathQueue {}
|
||||||
|
|
||||||
#[derive(Deserialize, TypedPath)]
|
#[derive(Deserialize, TypedPath)]
|
||||||
#[typed_path("/queue/delete/:hash")]
|
#[typed_path("/queue/delete/:hash")]
|
||||||
|
|
@ -40,10 +42,8 @@ pub struct PathQueueDelete {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize, TypedPath)]
|
#[derive(Deserialize, TypedPath)]
|
||||||
#[typed_path("/commit/:hash")]
|
#[typed_path("/queue/inner")]
|
||||||
pub struct PathCommitByHash {
|
pub struct PathQueueInner {}
|
||||||
pub hash: String,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Deserialize, TypedPath)]
|
#[derive(Deserialize, TypedPath)]
|
||||||
#[typed_path("/run/:id")]
|
#[typed_path("/run/:id")]
|
||||||
|
|
@ -51,20 +51,40 @@ pub struct PathRunById {
|
||||||
pub id: String,
|
pub id: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Deserialize, TypedPath)]
|
||||||
|
#[typed_path("/test")]
|
||||||
|
pub struct PathTest {}
|
||||||
|
|
||||||
#[derive(Deserialize, TypedPath)]
|
#[derive(Deserialize, TypedPath)]
|
||||||
#[typed_path("/worker/:name")]
|
#[typed_path("/worker/:name")]
|
||||||
pub struct PathWorkerByName {
|
pub struct PathWorkerByName {
|
||||||
pub name: String,
|
pub name: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize, TypedPath)]
|
|
||||||
#[typed_path("/test")]
|
|
||||||
pub struct PathTest {}
|
|
||||||
|
|
||||||
///////////////////
|
///////////////////
|
||||||
// Admin actions //
|
// Admin actions //
|
||||||
///////////////////
|
///////////////////
|
||||||
|
|
||||||
|
#[derive(Deserialize, TypedPath)]
|
||||||
|
#[typed_path("/admin/queue/add")]
|
||||||
|
pub struct PathAdminQueueAdd {}
|
||||||
|
|
||||||
|
#[derive(Deserialize, TypedPath)]
|
||||||
|
#[typed_path("/admin/queue/add_batch")]
|
||||||
|
pub struct PathAdminQueueAddBatch {}
|
||||||
|
|
||||||
|
#[derive(Deserialize, TypedPath)]
|
||||||
|
#[typed_path("/admin/queue/decrease")]
|
||||||
|
pub struct PathAdminQueueDecrease {}
|
||||||
|
|
||||||
|
#[derive(Deserialize, TypedPath)]
|
||||||
|
#[typed_path("/admin/queue/delete")]
|
||||||
|
pub struct PathAdminQueueDelete {}
|
||||||
|
|
||||||
|
#[derive(Deserialize, TypedPath)]
|
||||||
|
#[typed_path("/admin/queue/increase")]
|
||||||
|
pub struct PathAdminQueueIncrease {}
|
||||||
|
|
||||||
#[derive(Deserialize, TypedPath)]
|
#[derive(Deserialize, TypedPath)]
|
||||||
#[typed_path("/admin/refs/track")]
|
#[typed_path("/admin/refs/track")]
|
||||||
pub struct PathAdminRefsTrack {}
|
pub struct PathAdminRefsTrack {}
|
||||||
|
|
@ -77,33 +97,15 @@ pub struct PathAdminRefsUntrack {}
|
||||||
#[typed_path("/admin/refs/update")]
|
#[typed_path("/admin/refs/update")]
|
||||||
pub struct PathAdminRefsUpdate {}
|
pub struct PathAdminRefsUpdate {}
|
||||||
|
|
||||||
#[derive(Deserialize, TypedPath)]
|
|
||||||
#[typed_path("/admin/queue/add")]
|
|
||||||
pub struct PathAdminQueueAdd {}
|
|
||||||
|
|
||||||
#[derive(Deserialize, TypedPath)]
|
|
||||||
#[typed_path("/admin/queue/add_batch")]
|
|
||||||
pub struct PathAdminQueueAddBatch {}
|
|
||||||
|
|
||||||
#[derive(Deserialize, TypedPath)]
|
|
||||||
#[typed_path("/admin/queue/delete")]
|
|
||||||
pub struct PathAdminQueueDelete {}
|
|
||||||
|
|
||||||
#[derive(Deserialize, TypedPath)]
|
|
||||||
#[typed_path("/admin/queue/increase")]
|
|
||||||
pub struct PathAdminQueueIncrease {}
|
|
||||||
|
|
||||||
#[derive(Deserialize, TypedPath)]
|
|
||||||
#[typed_path("/admin/queue/decrease")]
|
|
||||||
pub struct PathAdminQueueDecrease {}
|
|
||||||
|
|
||||||
/////////
|
/////////
|
||||||
// Api //
|
// Api //
|
||||||
/////////
|
/////////
|
||||||
|
|
||||||
#[derive(Deserialize, TypedPath)]
|
#[derive(Deserialize, TypedPath)]
|
||||||
#[typed_path("/api/worker/status")]
|
#[typed_path("/api/worker/bench_repo/:hash/tree.tar.gz")]
|
||||||
pub struct PathApiWorkerStatus {}
|
pub struct PathApiWorkerBenchRepoByHashTreeTarGz {
|
||||||
|
pub hash: String,
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Deserialize, TypedPath)]
|
#[derive(Deserialize, TypedPath)]
|
||||||
#[typed_path("/api/worker/repo/:hash/tree.tar.gz")]
|
#[typed_path("/api/worker/repo/:hash/tree.tar.gz")]
|
||||||
|
|
@ -112,7 +114,5 @@ pub struct PathApiWorkerRepoByHashTreeTarGz {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize, TypedPath)]
|
#[derive(Deserialize, TypedPath)]
|
||||||
#[typed_path("/api/worker/bench_repo/:hash/tree.tar.gz")]
|
#[typed_path("/api/worker/status")]
|
||||||
pub struct PathApiWorkerBenchRepoByHashTreeTarGz {
|
pub struct PathApiWorkerStatus {}
|
||||||
pub hash: String,
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue