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
use crate::{endpoint::Endpoint, resource::migration::MigrationResource};

pub struct GetMigration;

impl Endpoint for GetMigration {
    const PATH: &'static str = "/migration/{number}";
    const METHOD: http::Method = http::Method::GET;

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

pub type GetMigrationResponse = MigrationResource;