api_builder 0.2.0

A simple client-agnostic API builder, inspired by the GitLab crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use api_builder::{Endpoint, api_endpoint};

#[derive(serde::Deserialize)]
struct Response {
    _success: bool,
}

#[derive(serde::Serialize)]
struct _Payload {
    id: String,
    test: String,
}
#[api_endpoint(method = GET, path = "\"ab\"", self_as_body = "application/json")]
impl Endpoint for _Payload {}

fn main() {}