Skip to content

Commit dbe0a79

Browse files
author
Andrés Mejía
authored
Elaborate on why base64_encoded is needed on GET requests
See discussion at https://rapidapi.com/hermanzdosilovic/api/judge0/discussions?issueId=17008.
1 parent efe5dde commit dbe0a79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api/submissions/get_a_submission.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ By default Judge0 is sending 8 attributes for submission. By sending `fields` qu
77

88
+ Parameters
99
+ token (required, string, `d85cd024-1548-4165-96c7-7bc88673f194`) ... Token of submission. You got this token when you created submission.
10-
+ base64_encoded (optional, boolean, `false`) ... Set to `true` if you want to receive Base64 encoded data from Judge0.
10+
+ base64_encoded (optional, boolean, `false`) ... Set to `true` if you want to receive Base64 encoded data from Judge0. You should set this to `true` if you expect the program's stdout to contain non-printable characters or if you expect the compiler to output non-printable characters during a compile error (GCC does this, for instance).
1111
+ fields = `stdout,time,memory,stderr,token,compile_output,message,status` (optional, string, `stdout,stderr,status_id,language_id`) ... Return only the desired attributes.
1212

1313
+ Response 200 (applicatiion/json)
@@ -36,7 +36,7 @@ By default Judge0 is sending 8 attributes for submission. By sending `fields` qu
3636
}
3737

3838
+ Response 200 (application/json)
39-
Recieving Base64 encoded data for text type attributes. Note that in this reques `base64_encoded` query parameter **must** be set to `true`.
39+
Receiving Base64 encoded data for text type attributes. Note that in this request `base64_encoded` query parameter **must** be set to `true`.
4040
+ Body
4141
{
4242
"stdout": "aGVsbG8sIEp1ZGdlMAo=\n",

0 commit comments

Comments
 (0)