Versions Compared

Key

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

...

Action

Description

Screenshot

  1. Show and hide related resources

  1. Show related resources

    Event: event is sent.
    Request URL:

    http://local.overhang.io:8000/event
    Request Method: POST
    Payload: (Form Data)

    Code Block
    event_type=mit.recommender.hideShow&event=%7B%22status%22%3A%22show%22%2C%22element%22%3A%22block-v1%3Ad%2Bd%2Bd%2Btype%40recommender%2Bblock%409a9fb119dccc4387be5ecbf06b985167%22%7D&courserun_key=course-v1%3Ad%2Bd%2Bd&page=http%3A%2F%2Flocal.overhang.io%3A8000%2Fxblock%2Fblock-v1%3Ad%2Bd%2Bd%2Btype%40vertical%2Bblock%400603289c7f49411d8e4ab4a07de014ca%3Fshow_title%3D0%26show_bookmark_button%3D0%26recheck_access%3D1%26view%3Dstudent_view
    

    Response: success

  2. Hide related resources
    Event: event is sent.
    Request URL:

    http://local.overhang.io:8000/event
    Request Method: POST
    Payload: (Form Data)

    Code Block
    event_type=mit.recommender.hideShow&event=%7B%22status%22%3A%22hide%22%2C%22element%22%3A%22block-v1%3Ad%2Bd%2Bd%2Btype%40recommender%2Bblock%409a9fb119dccc4387be5ecbf06b985167%22%7D&courserun_key=course-v1%3Ad%2Bd%2Bd&page=http%3A%2F%2Flocal.overhang.io%3A8000%2Fxblock%2Fblock-v1%3Ad%2Bd%2Bd%2Btype%40vertical%2Bblock%400603289c7f49411d8e4ab4a07de014ca%3Fshow_title%3D0%26show_bookmark_button%3D0%26recheck_access%3D1%26view%3Dstudent_view

    Response: success

Screenshot 2024-05-16 at 17.56.50.pngImage Added

  1. Upload resources

Press upload resources button

  1. Event: event is sent.
    Request URL:

    http://local.overhang.io:8000/event
    Request Method: POST
    Payload: (Form Data)

    Code Block
    event_type=mit.recommender.importResource&event=%7B%22status%22%3A%22Entering+import+resource+mode%22%2C%22element%22%3A%22block-v1%3Ad%2Bd%2Bd%2Btype%40recommender%2Bblock%409a9fb119dccc4387be5ecbf06b985167%22%7D&courserun_key=course-v1%3Ad%2Bd%2Bd&page=http%3A%2F%2Flocal.overhang.io%3A8000%2Fxblock%2Fblock-v1%3Ad%2Bd%2Bd%2Btype%40vertical%2Bblock%400603289c7f49411d8e4ab4a07de014ca%3Fshow_title%3D0%26show_bookmark_button%3D0%26recheck_access%3D1%26view%3Dstudent_view

    Response: success

  2. Event: import_resources is sent.
    Request URL:

    http://local.overhang.io:8000/courses/course-v1:d+d+d/xblock/block-v1:d+d+d+type@recommender+block@9a9fb119dccc4387be5ecbf06b985167/handler/import_resources
    Request Method: POST
    Payload: (Form Data)

    Code Block
    ------WebKitFormBoundarykH70x9xJEoEtPkxb
    Content-Disposition: form-data; name="file"; filename="resource (3).json"
    Content-Type: application/json
    
    
    ------WebKitFormBoundarykH70x9xJEoEtPkxb--

Screenshot 2024-05-16 at 18.07.20.pngImage Added

  1. Download resources

Press button Download resources

  1. Event: export_resources is sent.
    Request URL:

    http://local.overhang.io:8000/courses/course-v1:d+d+d/xblock/block-v1:d+d+d+type@recommender+block@9a9fb119dccc4387be5ecbf06b985167/handler/export_resources
    Request Method: POST
    Payload: (Form Data) {}

    Response:

    Code Block
    {
        "export": {
            "recommendations": {},
            "removed_recommendations": {},
            "endorsed_recommendation_ids": [],
            "endorsed_recommendation_reasons": [],
            "flagged_accum_resources": {}
        }
    }
  2. Event: event is sent.
    Request URL:

    http://local.overhang.io:8000/event
    Request Method: POST
    Payload: (Form Data)

    Code Block
    event_type=mit.recommender.exportResource&event=%7B%22status%22%3A%22Export+resources%22%2C%22information%22%3A%7B%22export%22%3A%7B%22recommendations%22%3A%7B%7D%2C%22removed_recommendations%22%3A%7B%7D%2C%22endorsed_recommendation_ids%22%3A%5B%5D%2C%22endorsed_recommendation_reasons%22%3A%5B%5D%2C%22flagged_accum_resources%22%3A%7B%7D%7D%7D%2C%22element%22%3A%22block-v1%3Ad%2Bd%2Bd%2Btype%40recommender%2Bblock%409a9fb119dccc4387be5ecbf06b985167%22%7D&courserun_key=course-v1%3Ad%2Bd%2Bd&page=http%3A%2F%2Flocal.overhang.io%3A8000%2Fxblock%2Fblock-v1%3Ad%2Bd%2Bd%2Btype%40vertical%2Bblock%400603289c7f49411d8e4ab4a07de014ca%3Fshow_title%3D0%26show_bookmark_button%3D0%26recheck_access%3D1%26view%3Dstudent_view
    

    Response: success

Screenshot 2024-05-16 at 18.08.11.pngImage Added

  1. Add new resource

Press button Add new resource

  1. Event: event is sent.
    Request URL:

    http://local.overhang.io:8000/event
    Request Method: POST
    Payload: (Form Data)

    Code Block
    event_type=mit.recommender.addResource&event=%7B%22status%22%3A%22Entering+add+resource+mode%22%2C%22element%22%3A%22block-v1%3Ad%2Bd%2Bd%2Btype%40recommender%2Bblock%409a9fb119dccc4387be5ecbf06b985167%22%7D&courserun_key=course-v1%3Ad%2Bd%2Bd&page=http%3A%2F%2Flocal.overhang.io%3A8000%2Fxblock%2Fblock-v1%3Ad%2Bd%2Bd%2Btype%40vertical%2Bblock%400603289c7f49411d8e4ab4a07de014ca%3Fshow_title%3D0%26show_bookmark_button%3D0%26recheck_access%3D1%26view%3Dstudent_view
    

    Response: success

  2. Event: event is sent.
    Request URL:

    http://local.overhang.io:8000/event
    Request Method: POST
    Payload: (Form Data)

    Code Block
    event_type=mit.recommender.addResource&event=%7B%22status%22%3A%22Add+new+resource%22%2C%22information%22%3A%7B%22url%22%3A%22https%3A%2F%2Fwww.lipsum.com%2F%22%2C%22title%22%3A%22What+is+Lorem+Ipsum%3F%22%2C%22descriptionText%22%3A%22Lorem+Ipsum+is+simply+dummy+text+of+the+printing+and+typesetting+industry.+Lorem+Ipsum+has+been+the+industry's+standard+dummy+text+ever+since+the+1500s%2C+when+an+unknown+printer+took+a+galley+of+type+and+scrambled+it+to+make+a+type+specimen+book.+It+has+survived+not+only+five+centuries%2C+but+also+the+leap+into+electronic+typesetting%2C+remaining+essentially+unchanged.+It+was+popularised+in+the+1960s+with+the+release+of+Letraset+sheets+containing+Lorem+Ipsum+passages%2C+and+more+recently+with+desktop+publishing+software+like+Aldus+PageMaker+including+versions+of+Lorem+Ipsum.%22%2C%22description%22%3A%22C%3A%5C%5Cfakepath%5C%5Csad_725099.png%22%7D%2C%22element%22%3A%22block-v1%3Ad%2Bd%2Bd%2Btype%40recommender%2Bblock%409a9fb119dccc4387be5ecbf06b985167%22%7D&courserun_key=course-v1%3Ad%2Bd%2Bd&page=http%3A%2F%2Flocal.overhang.io%3A8000%2Fxblock%2Fblock-v1%3Ad%2Bd%2Bd%2Btype%40vertical%2Bblock%400603289c7f49411d8e4ab4a07de014ca%3Fshow_title%3D0%26show_bookmark_button%3D0%26recheck_access%3D1%26view%3Dstudent_view
    

    Response: success

  3. Event: upload_screenshot is sent.
    Request URL:

    http://local.overhang.io:8000/courses/course-v1:d+d+d/xblock/block-v1:d+d+d+type@recommender+block@9a9fb119dccc4387be5ecbf06b985167/handler/upload_screenshot
    Request Method: POST
    Payload: (Form Data)

    Code Block
    event_type=mit.recommender.addResource&event=%7B%22status%22%3A%22Add+new+resource%22%2C%22information%22%3A%7B%22url%22%3A%22https%3A%2F%2Fwww.lipsum.com%2F%22%2C%22title%22%3A%22What+is+Lorem+Ipsum%3F%22%2C%22descriptionText%22%3A%22Lorem+Ipsum+is+simply+dummy+text+of+the+printing+and+typesetting+industry.+Lorem+Ipsum+has+been+the+industry's+standard+dummy+text+ever+since+the+1500s%2C+when+an+unknown+printer+took+a+galley+of+type+and+scrambled+it+to+make+a+type+specimen+book.+It+has+survived+not+only+five+centuries%2C+but+also+the+leap+into+electronic+typesetting%2C+remaining+essentially+unchanged.+It+was+popularised+in+the+1960s+with+the+release+of+Letraset+sheets+containing+Lorem+Ipsum+passages%2C+and+more+recently+with+desktop+publishing+software+like+Aldus+PageMaker+including+versions+of+Lorem+Ipsum.%22%2C%22description%22%3A%22C%3A%5C%5Cfakepath%5C%5Csad_725099.png%22%7D%2C%22element%22%3A%22block-v1%3Ad%2Bd%2Bd%2Btype%40recommender%2Bblock%409a9fb119dccc4387be5ecbf06b985167%22%7D&courserun_key=course-v1%3Ad%2Bd%2Bd&page=http%3A%2F%2Flocal.overhang.io%3A8000%2Fxblock%2Fblock-v1%3Ad%2Bd%2Bd%2Btype%40vertical%2Bblock%400603289c7f49411d8e4ab4a07de014ca%3Fshow_title%3D0%26show_bookmark_button%3D0%26recheck_access%3D1%26view%3Dstudent_view
    

    Response: {"file_name": "fs://6e0ac0d5e8b61274199e225a229209fa.png"}

  4. Event: add_resource is sent.
    Request URL:

    http://local.overhang.io:8000/courses/course-v1:d+d+d/xblock/block-v1:d+d+d+type@recommender+block@9a9fb119dccc4387be5ecbf06b985167/handler/add_resource
    Request Method: POST
    Payload: (Form Data)

    Code Block
    {"url":"https://www.lipsum.com/","title":"What is Lorem Ipsum?","descriptionText":"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.","description":"fs://6e0ac0d5e8b61274199e225a229209fa.png"}

    Response:

    Code Block
    {
        "url": "https://www.lipsum.com/",
        "title": "What is Lorem Ipsum?",
        "description": "/static/djpyfs/block--v1-_d-.d-.d-.type_64_recommender-.block_64_9a9fb119dccc4387be5ecbf06b985167/fs/NONE.NONE/6e0ac0d5e8b61274199e225a229209fa.png",
        "descriptionText": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
        "id": "https://www.lipsum.com/",
        "upvotes": 0,
        "downvotes": 0
    }

Screenshot 2024-05-16 at 18.21.57.pngImage Added

  1. Requirements for the offline ORA xblock running