GET /administrator/restfulsimplifiedexaminer/id

Retrieve a examiner.

The underlying data model where the item is retrieved from is defined in devilry.apps.core.models.Examiner. The Simplified API that the server forwards this request to is devilry.apps.administrator.simplified.simplifiedexaminer.SimplifiedExaminer.read().

Request

Example

GET /administrator/restfulsimplifiedexaminer/id

Another example, this one uses the optional result_fieldgroups parameter.

GET /administrator/restfulsimplifiedexaminer/id

{
    result_fieldgroups: ["userdetails"]
}

Required request parameters encoded in the URL

id

The unique identifier of a examiner. You will typically get this id in response from a search.

Optional request parameters

Optional request parameters are encoded as a JSON object and sent as the request body as shown in the example above.

result_fieldgroups

A list of group names. Each group adds an additional set of fields to the resulting data. The following group names are available:

userdetails

Expands to the following fields:

user__username
Actual location of the field:
django.contrib.auth.models.User
About the field:
Required. 30 characters or fewer. Letters, numbers and @/./+/-/_ characters
Type
String
user__email
Actual location of the field:
django.contrib.auth.models.User

About the field:

Type
String
user__devilryuserprofile__full_name
Actual location of the field:
devilry.apps.core.models.DevilryUserProfile
About the field:
List of many values.
Type
List of strings

Response

On success

Example

200 OK

{
    user: 15,
    id: 15,
    assignmentgroup: 15
}

Success response details

As long as the examiner is deleted without an error, the response is HTTP 200 with the requested data in the body. The result always contains the following fields:

user
Actual location of the field:
django.contrib.auth.models.User
About the field:
Autogenerated identifier.
Type
Integer
id
Actual location of the field:
devilry.apps.core.models.Examiner
About the field:
Autogenerated identifier.
Type
Integer
assignmentgroup
Actual location of the field:
devilry.apps.core.models.AssignmentGroup
About the field:
Autogenerated identifier.
Type
Integer

However, there may be more fields if specified with the result_fieldgroups request parameter.

On error

On errors, we respond with one of the HTTP Error status codes.