File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ struct CorrelatedDataset {
4848 shared_labels : Vec < String > ,
4949}
5050
51- /// GET /api/v1/datasets/{name}/correlated
51+ /// GET /api/v1/datasets/correlated/ {name}
5252/// Returns all datasets sharing at least one tag or label with the named dataset.
5353/// Results are filtered to only include datasets the caller is authorized to read.
5454pub async fn get_correlated_datasets (
Original file line number Diff line number Diff line change @@ -210,15 +210,15 @@ impl Server {
210210 . authorize_for_resource ( Action :: GetRetention ) ,
211211 )
212212 . route (
213- "/tags/{tag }" ,
213+ "/correlated/{name }" ,
214214 web:: get ( )
215- . to ( http:: datasets:: get_datasets_by_tag )
215+ . to ( http:: datasets:: get_correlated_datasets )
216216 . authorize ( Action :: GetStreamInfo ) ,
217217 )
218218 . route (
219- "/{name}/correlated " ,
219+ "/tags/{tag} " ,
220220 web:: get ( )
221- . to ( http:: datasets:: get_correlated_datasets )
221+ . to ( http:: datasets:: get_datasets_by_tag )
222222 . authorize ( Action :: GetStreamInfo ) ,
223223 )
224224 . route (
You can’t perform that action at this time.
0 commit comments