MessageResponse(MessageResponse)
Response for operations that return only a message, no data payload.Use this for endpoints like finalise-submission, delete confirmations, etc.
where the operation succeeds but there's no data to return.Example:
{
"message": "Application submitted successfully."
}Usage:
@router.post("/finalise-submission", response_model=MessageResponse)
def finalise_submission(...):
return ok_response(message="Application submitted successfully.")
{
"message": "Operation completed successfully."
}