args_api/endpoint/organization/
get_organization.rs1use serde::{Deserialize, Serialize};
2
3use crate::{endpoint::Endpoint, resource::organization::OrganizationResource};
4
5pub struct GetOrganization;
6
7impl Endpoint for GetOrganization {
8 const PATH: &'static str = "/organization/{org_name}";
9 const METHOD: http::Method = http::Method::GET;
10
11 type Request = GetOrganizationRequest;
12 type Response = GetOrganizationResponse;
13}
14
15#[derive(ApiRequest, Debug, Serialize, Deserialize)]
16pub struct GetOrganizationRequest {}
17
18pub type GetOrganizationResponse = OrganizationResource;