diff --git a/beat/web/algorithms/api_urls.py b/beat/web/algorithms/api_urls.py index 34ec26de3df3eaab18ded9fd8d5967709a7266b4..cbb3a26021f73b241bc5fb50ff090c330a88cffb 100755 --- a/beat/web/algorithms/api_urls.py +++ b/beat/web/algorithms/api_urls.py @@ -53,19 +53,9 @@ urlpatterns = [ api.RetrieveUpdateDestroyAlgorithmsView.as_view(), name="object", ), - url( - r"^(?P<author_name>\w+)/(?P<object_name>[-\w]+)/$", - api.RetrieveUpdateDestroyAlgorithmsView.as_view(), - name="object", - ), url( r"^(?P<author_name>\w+)/(?P<object_name>[-\w]+)/(?P<version>\d+)/binary/$", api.binary, name="binary", ), - url( - r"^(?P<author_name>\w+)/(?P<object_name>[-\w]+)/binary/$", - api.binary, - name="binary", - ), ] diff --git a/beat/web/databases/api_urls.py b/beat/web/databases/api_urls.py index 3c3c9a1c161aedc8bf48e45968b6af9618aaf413..b84db394a1ed73c278e519034148e9be8f8259d8 100644 --- a/beat/web/databases/api_urls.py +++ b/beat/web/databases/api_urls.py @@ -38,9 +38,4 @@ urlpatterns = [ api.RetrieveDatabaseView.as_view(), name="object", ), - url( - r"^(?P<database_name>[-\w]+)/$", - api.RetrieveDatabaseView.as_view(), - name="object", - ), ] diff --git a/beat/web/dataformats/api_urls.py b/beat/web/dataformats/api_urls.py index c3af3c942207d75932eb80ba98d51e1289f28117..6673f46aae6d5d4fb191c3a624d4b239cca83409 100644 --- a/beat/web/dataformats/api_urls.py +++ b/beat/web/dataformats/api_urls.py @@ -53,9 +53,4 @@ urlpatterns = [ api.RetrieveUpdateDestroyDataFormatsView.as_view(), name="object", ), - url( - r"^(?P<author_name>\w+)/(?P<object_name>[a-zA-Z0-9_\-]+)/$", - api.RetrieveUpdateDestroyDataFormatsView.as_view(), - name="object", - ), ] diff --git a/beat/web/experiments/api_urls.py b/beat/web/experiments/api_urls.py index 219a0bb311b79ec997752ea1ed01cfbf04baec3e..fcd876f0d58d969b05cfb7028b0eb133240d266b 100644 --- a/beat/web/experiments/api_urls.py +++ b/beat/web/experiments/api_urls.py @@ -38,48 +38,24 @@ urlpatterns = [ api.ShareExperimentView.as_view(), name="share", ), - url( - r"^(?P<author_name>\w+)/(?P<toolchain_name>[-\w]+)/(?P<version>\d+)/(?P<name>[-\w]+)/share/$", - api.ShareExperimentView.as_view(), - {"toolchain_author_name": None}, - name="share", - ), # Start url( r"^(?P<author_name>\w+)/(?P<toolchain_author_name>\w+)/(?P<toolchain_name>[-\w]+)/(?P<version>\d+)/(?P<name>[-\w]+)/start/$", api.StartExperimentView.as_view(), name="start", ), - url( - r"^(?P<author_name>\w+)/(?P<toolchain_name>[-\w]+)/(?P<version>\d+)/(?P<name>[-\w]+)/start/$", - api.StartExperimentView.as_view(), - {"toolchain_author_name": None}, - name="start", - ), # Cancelling url( r"^(?P<author_name>\w+)/(?P<toolchain_author_name>\w+)/(?P<toolchain_name>[-\w]+)/(?P<version>\d+)/(?P<name>[-\w]+)/cancel/$", api.CancelExperimentView.as_view(), name="cancel", ), - url( - r"^(?P<author_name>\w+)/(?P<toolchain_name>[-\w]+)/(?P<version>\d+)/(?P<name>[-\w]+)/cancel/$", - api.CancelExperimentView.as_view(), - {"toolchain_author_name": None}, - name="cancel", - ), # Reseting url( r"^(?P<author_name>\w+)/(?P<toolchain_author_name>\w+)/(?P<toolchain_name>[-\w]+)/(?P<version>\d+)/(?P<name>[-\w]+)/reset/$", api.ResetExperimentView.as_view(), name="reset", ), - url( - r"^(?P<author_name>\w+)/(?P<toolchain_name>[-\w]+)/(?P<version>\d+)/(?P<name>[-\w]+)/reset/$", - api.ResetExperimentView.as_view(), - {"toolchain_author_name": None}, - name="reset", - ), # Attestations url( r"^(?P<attestation_number>\d+)/", @@ -97,10 +73,4 @@ urlpatterns = [ api.RetrieveUpdateDestroyExperimentView.as_view(), name="object", ), - url( - r"^(?P<author_name>\w+)/(?P<toolchain_name>[-\w]+)/(?P<version>\d+)/(?P<name>[-\w]+)/$", - api.RetrieveUpdateDestroyExperimentView.as_view(), - {"toolchain_author_name": None}, - name="object", - ), ] diff --git a/beat/web/libraries/api_urls.py b/beat/web/libraries/api_urls.py index 236cd6c1104e200d373d1b121c267e2d90968b7c..8b1248fc1ce5c8ed7ecf648df9490ce5caa41794 100644 --- a/beat/web/libraries/api_urls.py +++ b/beat/web/libraries/api_urls.py @@ -53,9 +53,4 @@ urlpatterns = [ api.RetrieveUpdateDestroyLibrariesView.as_view(), name="object", ), - url( - r"^(?P<author_name>\w+)/(?P<object_name>[-\w]+)/$", - api.RetrieveUpdateDestroyLibrariesView.as_view(), - name="object", - ), ] diff --git a/beat/web/toolchains/api_urls.py b/beat/web/toolchains/api_urls.py index b85538c45f059bdfc01725270de135c168ef6d38..1182d977c1a630e4dd51164283810d5a1afbbb1f 100644 --- a/beat/web/toolchains/api_urls.py +++ b/beat/web/toolchains/api_urls.py @@ -48,9 +48,4 @@ urlpatterns = [ api.RetrieveUpdateDestroyToolchainsView.as_view(), name="object", ), - url( - r"^(?P<author_name>\w+)/(?P<object_name>[-\w]+)/$", - api.RetrieveUpdateDestroyToolchainsView.as_view(), - name="object", - ), ]