Function backend::routes::content::create_reply [−][src]
pub async fn create_reply(
auth: Auth,
db: Connection<PgDb>,
reply_info: Json<ReplyInfo>,
producer: Connection<PulsarMq>
) -> (Status, Result<Json<ReplyCreateResponse>, Json<ErrorResponse>>)Expand description
Create Reply
Parameters
Auth: Authenticated userConnection<PgDb>: Postgres connectionJson<ReplyInfo>: Reply informationConnection<PulsarMq>: Pulsar connection
Returns
Status: HTTP statusPostCreateResponse: Response of create reply
Errors
ErrorResponse: Error messageErrorCode::PostNotExistErrorCode::UserNotExistErrorCode::UserForbiddenErrorCode::BurrowInvalidErrorCode::DatabaseErr