OAS: example payload

This commit is contained in:
realaravinth
2021-03-31 15:27:23 +05:30
parent 8aeab69303
commit 55dd3fffe5
4 changed files with 20 additions and 6 deletions

View File

@@ -31,6 +31,8 @@ pub struct AddLevels {
pub name: String,
}
// TODO try for non-existent token names
#[post("/api/v1/mcaptcha/domain/token/levels/add")]
pub async fn add_levels(
payload: web::Json<AddLevels>,