GET - Evaluated Student Assignment Sheet
The API retrieves the evaluated assignment sheet for a specific student. It returns detailed information about the assignment, including the parent and child questions, student answers, marks awarded, and feedback from the evaluator.
This endpoint is typically used after evaluation has been completed and provides a comprehensive view of the student’s performance.
curl --request GET \
--url https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/answer-sheet/{ansSheetId}/score/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/answer-sheet/{ansSheetId}/score/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/answer-sheet/{ansSheetId}/score/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/answer-sheet/{ansSheetId}/score/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/answer-sheet/{ansSheetId}/score/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/answer-sheet/{ansSheetId}/score/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/answer-sheet/{ansSheetId}/score/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"assignmentName": "Maths",
"instruction": "Solve the following problems.",
"marks": 2,
"grade": "A",
"courseId": "12231232",
"parentQuestions": [
{
"id": "cabb699a-ef46-447c-85d2-f320d83f9745",
"questionNumber": "Q1",
"text": "Solve the following.",
"marks": 0,
"questions": [
{
"id": "2edd8bfd-3616-4899-95e9-98d67489ca11",
"questionNumber": "a",
"text": "There are 5 lions in the jungle and 4 lions in the grassland. What is the total number of lions altogether?",
"marks": 1,
"diagramDescription": "Illustration of lions in jungle and grassland.",
"answer": {
"id": "741cd09f-543f-460e-9b6e-826cf2809cb1",
"text": "7",
"marks": 1,
"feedbacks": [
{
"feedback": "The student correctly solved the problem and provided the right answer. However, including a step-by-step explanation would enhance clarity and show their thought process.",
"student_text": "9",
"justification": "The student's answer of 9 is correct as it accurately represents the total number of lions calculated by adding the lions in the jungle (5) and the lions in the grassland (4).",
"marks_deducted": "0",
"room_for_improvement": "The student could provide a brief explanation of how they arrived at the answer to demonstrate their understanding of the addition process."
}
]
}
}
]
}
]
}{
"error": {
"code": 400,
"message": {
"non_field_errors": [
"Assignment sheet is not evaluated yet"
]
}
}
}{
"detail": "Token has expired"
}{
"error": {
"code": 404,
"message": {
"non_field_errors": [
"Assignment is not found"
]
}
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Unique identifier of the assignment
Unique identifier of the answer sheet
Response
Assignment retrieved successfully.
Unique identifier for the assignment
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
Name of the assignment
"Maths"
Instructions for the assignment
"Solve the following problems."
Total marks for the assignment
2
Grade of the assignment
"A"
ID of the course
"12231232"
List of parent questions in the assignment
Show child attributes
Show child attributes
Was this page helpful?
curl --request GET \
--url https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/answer-sheet/{ansSheetId}/score/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/answer-sheet/{ansSheetId}/score/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/answer-sheet/{ansSheetId}/score/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/answer-sheet/{ansSheetId}/score/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/answer-sheet/{ansSheetId}/score/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/answer-sheet/{ansSheetId}/score/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/answer-sheet/{ansSheetId}/score/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"assignmentName": "Maths",
"instruction": "Solve the following problems.",
"marks": 2,
"grade": "A",
"courseId": "12231232",
"parentQuestions": [
{
"id": "cabb699a-ef46-447c-85d2-f320d83f9745",
"questionNumber": "Q1",
"text": "Solve the following.",
"marks": 0,
"questions": [
{
"id": "2edd8bfd-3616-4899-95e9-98d67489ca11",
"questionNumber": "a",
"text": "There are 5 lions in the jungle and 4 lions in the grassland. What is the total number of lions altogether?",
"marks": 1,
"diagramDescription": "Illustration of lions in jungle and grassland.",
"answer": {
"id": "741cd09f-543f-460e-9b6e-826cf2809cb1",
"text": "7",
"marks": 1,
"feedbacks": [
{
"feedback": "The student correctly solved the problem and provided the right answer. However, including a step-by-step explanation would enhance clarity and show their thought process.",
"student_text": "9",
"justification": "The student's answer of 9 is correct as it accurately represents the total number of lions calculated by adding the lions in the jungle (5) and the lions in the grassland (4).",
"marks_deducted": "0",
"room_for_improvement": "The student could provide a brief explanation of how they arrived at the answer to demonstrate their understanding of the addition process."
}
]
}
}
]
}
]
}{
"error": {
"code": 400,
"message": {
"non_field_errors": [
"Assignment sheet is not evaluated yet"
]
}
}
}{
"detail": "Token has expired"
}{
"error": {
"code": 404,
"message": {
"non_field_errors": [
"Assignment is not found"
]
}
}
}