args-api 0.1.0

Shared API contract types and endpoint definitions for args.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde::{Deserialize, Serialize};

use crate::endpoint::Endpoint;

pub struct PublishReview;

impl Endpoint for PublishReview {
    const PATH: &'static str = "/repository/{owner}/{repo}/review/{number}/publish";
    const METHOD: http::Method = http::Method::POST;

    type Request = PublishReviewRequest;
    type Response = ();
}

#[derive(ApiRequest, Debug, Serialize, Deserialize)]
pub struct PublishReviewRequest {}