AE-2299: Made changes to reporting framework w.r.t report log id

Review Request #1243 — Created Dec. 18, 2025 and submitted

apoorva.sn
AMP
amp_4_0
AE-2299
mmiriam, ngurunathan, pmurugaiyan, pradeep, shuinvy

Problem

The current reporting framework did not have functionalities w.r.t view or delete report logs

Solution

Have made changes to view report log for a given log id and to delete report log with log id

GET report logs:

curl 'http://127.0.0.1:8000/report/log' \
-X GET \
-H 'Accept: application/json, text/plain, /' \
-H 'Content-Type: application/json' \
-H 'X-CSRFToken:IkLRrX1gpNs8QAIxNFphziYGDGwHQf70' \
-b 'csrftoken=IkLRrX1gpNs8QAIxNFphziYGDGwHQf70; hive_key=1; django_language=en; csrf_token=IkLRrX1gpNs8QAIxNFphziYGDGwHQf70; current_user=array; hive_sess=e13c8b3f-f683-426a-831a-11851b41cd87' \
--insecure

GET report log for log id:

curl 'http://127.0.0.1:8000/report/log/33' \
-X GET \
-H 'Accept: application/json, text/plain, /' \
-H 'Content-Type: application/json' \
-H 'X-CSRFToken:62CE0hqokyMUsfk8GaH2oxg1fNtyXRv7' \
-b 'csrftoken=62CE0hqokyMUsfk8GaH2oxg1fNtyXRv7; hive_key=1; django_language=en; csrf_token=62CE0hqokyMUsfk8GaH2oxg1fNtyXRv7; current_user=array; hive_sess=cf6efdb3-08d4-465b-ac47-2bd97521a17b' \
--insecure

DELETE Report for log id:

curl 'http://127.0.0.1:8000/report/log/33' \
-X DELETE \
-H 'Accept: application/json' \
-H 'X-CSRFToken:IkLRrX1gpNs8QAIxNFphziYGDGwHQf70' \
-b 'csrftoken=IkLRrX1gpNs8QAIxNFphziYGDGwHQf70; hive_key=1; django_language=en; csrf_token=IkLRrX1gpNs8QAIxNFphziYGDGwHQf70; current_user=array; hive_sess=e13c8b3f-f683-426a-831a-11851b41cd87' \
--insecure

shuinvy
  1. Ship It!
  2. 
      
apoorva.sn
Review request changed

Status: Closed (submitted)

Loading...