Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Action

Description

Screenshot

  1. Upload assignment

  1. Click to the 'Upload your assignment' button and upload file (picture, audio, video, pdf):

    Event: upload_assignment is sent.
    Request URL:
    http://local.edly.io:8000/courses/course-v1:f+f+f/xblock/block-v1:f+f+f+type@edx_sga+block@6e0fd8e8cb3b41bfbe8dc10cba835f0c/handler/upload_assignment
    Request Method: POST
    Payload:
    ------WebKitFormBoundaryeJ0dBLCR091snpxM Content-Disposition: form-data; name="assignment"; filename="smile_742751.png" Content-Type: image/png ------WebKitFormBoundaryeJ0dBLCR091snpxM--

    Response:

    Code Block
    {
        "display_name": "Staff Graded Assignment",
        "uploaded": {
            "filename": "smile_742751.png"
        },
        "annotated": null,
        "graded": null,
        "max_score": 100,
        "upload_allowed": true,
        "solution": "<p>Put your question or theme here</p>",
        "base_asset_url": "/asset-v1:f+f+f+type@asset+block@"
    }

Screenshot 2024-05-16 at 11.57.59.png

  1. Grade Submissions

  1. Press GRADE SUBMISSIONS button (it works only for the staff or course instructor)
    Event: get_staff_grading_data is sent.
    Request URL:
    http://local.edly.io:8000/courses/course-v1:f+f+f/xblock/block-v1:f+f+f+type@edx_sga+block@6e0fd8e8cb3b41bfbe8dc10cba835f0c/handler/get_staff_grading_data
    Request Method: GET
    PayloadPreview:

    Code Block
    0: {module_id: 64, student_id: "d7f90c9b193a3e02ddb7bd53ebcf2339",…}
    annotated: ""
    approved: false
    comment: ""
    filename: "smile_742751.png"
    finalized: false
    fullname: ""
    may_grade: true
    module_id: 64
    needs_approval: false
    score: null
    student_id: "d7f90c9b193a3e02ddb7bd53ebcf2339"
    submission_id: "f99d6ea6-1b3f-4c7b-9ec0-d5dfc64f3f11"
    timestamp: "2024-05-16T09:05:13.228339"
    username: "kyrylo"
    display_name: "Staff Graded Assignment"
    max_score: 100
    

    Response:Screenshot 2024-05-16 at 12.18.12.png

    Code Block
    {
        "assignments": [
            {
                "module_id": 64,
                "student_id": "d7f90c9b193a3e02ddb7bd53ebcf2339",
                "submission_id": "f99d6ea6-1b3f-4c7b-9ec0-d5dfc64f3f11",
                "username": "kyrylo",
                "fullname": "",
                "filename": "smile_742751.png",
                "timestamp": "2024-05-16T09:05:13.228339",
                "score": null,
                "approved": false,
                "needs_approval": false,
                "may_grade": true,
                "annotated": "",
                "comment": "",
                "finalized": false
            }
        ],
        "max_score": 100,
        "display_name": "Staff Graded Assignment"
    }

Screenshot 2024-05-16 at 12.18.12.pngImage Added

Screenshot 2024-05-16 at 12.18.48.pngImage Added

  1. Submit file

  1. Submit uploaded file:
    Event: finalize_uploaded_assignment is sent.
    Request URL:
    http://local.edly.io:8000/courses/course-v1:f+f+f/xblock/block-v1:f+f+f+type@edx_sga+block@6e0fd8e8cb3b41bfbe8dc10cba835f0c/handler/finalize_uploaded_assignment
    Request Method: POST
    Payload: None
    Response:

    Code Block
    {
        "display_name": "Staff Graded Assignment",
        "uploaded": {
            "filename": "smile_742751.png"
        },
        "annotated": null,
        "graded": null,
        "max_score": 100,
        "upload_allowed": false,
        "solution": "<p>Put your question or theme here</p>",
        "base_asset_url": "/asset-v1:f+f+f+type@asset+block@"
    }
    

Screenshot 2024-05-16 at 12.22.11.pngImage Added

  1. Enter Grade

  1. Enter Grade in staff modal window and submit:
    Event: enter_grade is sent.
    Request URL:
    http://local.edly.io:8000/courses/course-v1:f+f+f/xblock/block-v1:f+f+f+type@edx_sga+block@6e0fd8e8cb3b41bfbe8dc10cba835f0c/handler/enter_grade
    Request Method: POST
    Payload:

    Code Block
    module_id=65&submission_id=ed9dbcb2-8a3f-4463-b026-ab28f21c13fb&grade=88&comment=Grate+job!

    Response:

    Code Block
    {
        "assignments": [
            {
                "module_id": 65,
                "student_id": "d7f90c9b193a3e02ddb7bd53ebcf2339",
                "submission_id": "ed9dbcb2-8a3f-4463-b026-ab28f21c13fb",
                "username": "kyrylo",
                "fullname": "",
                "filename": "smile_742751.png",
                "timestamp": "2024-05-16T09:28:19.683966",
                "score": 88,
                "approved": true,
                "needs_approval": false,
                "may_grade": true,
                "annotated": "",
                "comment": "Grate job!",
                "finalized": true
            }
        ],
        "max_score": 100,
        "display_name": "Staff Graded Assignment"
    }

Screenshot 2024-05-16 at 12.32.01.pngImage Added

Screenshot 2024-05-16 at 12.32.38.pngImage Added