This application plays the role of Back-end in our program. Namely, it handles the communication between remote TA2 server and process the response. Different pages will be rendered based on the url received.
All acceptable url patterns (in regex) are presented below (Most url pattern here should not be directly called, they are just part of other application):
where ‘?’ denotes optional extra pattern, please refer to corresponding section for detailed information.
Return a web page that the user can submit the problem form
Location: views_user_problem.py
Send a HttpRequest that contains a json string that describes user-defined problem.
Location: views_user_problem.py
Return a web page that describes the problem schema. (BUG)
Location: views_additional.py
Return a web page that the user can submit the problem form
Location: views_additional.py
Return a web page presents the output of specific task
Location: views_additional.py
A http request to download a file
Location: views_additional.py
Pattern: retrieve-output-confusion-data
Return a web page presents the confusion matrix of specific task
Location: views_additional.py
Pattern: retrieve-output-EFD-data
Return a web page presents the EFD of specific task
Location: views_additional.py
Pattern: stored-request/(?P
Return a web page that shows the list of stored requests
Location: views_saved_requests.py
None
Pattern: stored-response/(?P
Return a web page that shows the list of stored responses.
Location: views_saved_requests.py
Pattern: view-grpc-search-history-json/(?P
Return a list of recent grpc search history in json format.
Location: views_saved_requests.py
Pattern: view-grpc-stored-history/(?P
Return a list of recent grpc search history in json format.
Location: views_saved_requests.py
None
Pattern:clear-grpc-stored-history
Clear the grpc history
Location: views_saved_requests.py