args_api/endpoint/auth/
refresh_session.rs1use serde::{Deserialize, Serialize};
2
3use crate::{endpoint::Endpoint, resource::auth::AuthTokensResource};
4
5pub struct RefreshSession;
6
7impl Endpoint for RefreshSession {
8 const PATH: &'static str = "/auth/refresh";
9 const METHOD: http::Method = http::Method::POST;
10
11 type Request = RefreshSessionRequest;
12 type Response = AuthTokensResource;
13}
14
15#[derive(ApiRequest, Debug, Serialize, Deserialize)]
16pub struct RefreshSessionRequest {
17 pub refresh_token: String,
18}