squarecloud 0.1.1

Async Rust client for the SquareCloud API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::Endpoint;
use reqwest::Method;

#[cfg(feature = "test-utils")]
inventory::submit! { crate::EndpointSpec { method: "post",   path: "/workspaces/applications" } }
#[cfg(feature = "test-utils")]
inventory::submit! { crate::EndpointSpec { method: "delete", path: "/workspaces/applications" } }

impl Endpoint {
    pub(crate) fn workspace_add_app() -> Endpoint {
        Self::builder("/workspaces/applications", Method::POST).build()
    }

    pub(crate) fn workspace_remove_app() -> Endpoint {
        Self::builder("/workspaces/applications", Method::DELETE).build()
    }
}