MCPcopy Create free account
hub / github.com/Migorithm/rustiful-backend / create_board

Function create_board

bin/src/routes.rs:14–21  ·  view source on GitHub ↗
(
    State(bus): State<Arc<MessageBus>>,
    Json(cmd): Json<CreateBoard>,
)

Source from the content-addressed store, hash-verified

12#[utoipa::path( post, path = "/boards", request_body=CreateBoard)]
13#[axum_macros::debug_handler]
14pub async fn create_board(
15 State(bus): State<Arc<MessageBus>>,
16 Json(cmd): Json<CreateBoard>,
17) -> Result<WebResponse<ServiceResponse>, Exception> {
18 let res = bus.handle(cmd).await.map_err(Exception)?;
19
20 Ok(WebResponse(res))
21}
22
23#[utoipa::path(patch, path = "/boards",request_body=EditBoard)]
24#[axum_macros::debug_handler]

Callers 2

test_create_boardFunction · 0.85
outbox_setupFunction · 0.85

Calls 2

WebResponseClass · 0.85
handleMethod · 0.80

Tested by 1

test_create_boardFunction · 0.68