Skip to content

RequestView

binarybox edited this page Jun 23, 2017 · 2 revisions

Introduction

The RequestView class is used to submit a request for moderator rights.

The request can be accessed via "clonecademy/user/request/"

Method Details

'get'

Header: user id (for permissions and filtering)

Response: 200 (can submit request), 403 + reason (is mod or to many mod requests)

'post'

Header: user id (for permissions and saving)

Request:

{
"reason": string "the reason for the request",
}

Response: 200 (request sent), 500 + serializer error (error)

Side effects: sends an email to the admins requesting mod access