Skip to content

Commit

Permalink
feat: update api with new implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanttV committed Feb 2, 2024
1 parent c49526e commit 651794e
Show file tree
Hide file tree
Showing 2 changed files with 163 additions and 88 deletions.
14 changes: 9 additions & 5 deletions platform_plugin_turnitin/api/v1/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,28 @@
app_name = "platform_plugin_turnitin"

urlpatterns = [
path("upload-file/", views.TurnitinUploadFileAPIView.as_view(), name="upload-file"),
path(
"submission/<uuid:submission_id>/",
"upload-file/<uuid:ora_submission_id>/",
views.TurnitinUploadFileAPIView.as_view(),
name="upload-file",
),
path(
"submission/<uuid:ora_submission_id>/",
views.TurnitinSubmissionAPIView.as_view(),
name="get-submission",
),
path(
"similarity-report/<uuid:submission_id>/",
"similarity-report/<uuid:ora_submission_id>/",
views.TurnitinSimilarityReportAPIView.as_view(),
name="generate-similarity-report",
),
path(
"similarity-report/<uuid:submission_id>/",
"similarity-report/<uuid:ora_submission_id>/",
views.TurnitinSimilarityReportAPIView.as_view(),
name="get-similarity-report",
),
path(
"viewer-url/<uuid:submission_id>/",
"viewer-url/<uuid:ora_submission_id>/",
views.TurnitinViewerAPIView.as_view(),
name="viewer-url",
),
Expand Down
Loading

0 comments on commit 651794e

Please sign in to comment.