Skip to main content

args_api/endpoint/runner/
refresh_runner_token.rs

1use crate::{endpoint::Endpoint, resource::runner::RunnerTokenResource};
2
3pub struct CreateRunnerToken;
4
5impl Endpoint for CreateRunnerToken {
6    const PATH: &'static str = "/ci/runner/{owner}/{name}/token";
7    const METHOD: http::Method = http::Method::POST;
8
9    type Request = RefreshRunnerTokenRequest;
10    type Response = RefreshRunnerTokenResponse;
11}
12
13pub type RefreshRunnerTokenRequest = ();
14pub type RefreshRunnerTokenResponse = RunnerTokenResource;