Skip to main content

post

Attribute Macro post 

Source
#[post]
Expand description

Declares a POST operation. See get for the argument form.

#[post("/users", id = "users.create", summary = "Create a user")]
async fn create_user(Json(input): Json<CreateUser>) -> Created<UserView> { .. }