-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Conrado Costa <[email protected]>
- Loading branch information
1 parent
0cb076d
commit ef5f9c7
Showing
8 changed files
with
268 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
""" | ||
Former OSIM API endpoints marked as deprecated | ||
""" | ||
|
||
import logging | ||
|
||
from drf_spectacular.utils import extend_schema | ||
|
||
from apps.workflows import api | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
||
@extend_schema(deprecated=True, extensions={"x-sunset": "2024-07-01"}) | ||
class index(api.index): | ||
"""deprecated osim index API endpoint""" | ||
|
||
|
||
@extend_schema(deprecated=True, extensions={"x-sunset": "2024-07-01"}) | ||
class healthy(api.healthy): | ||
"""deprecated osim unauthenticated health check API endpoint""" | ||
|
||
|
||
@extend_schema(deprecated=True, extensions={"x-sunset": "2024-07-01"}) | ||
class adjust(api.adjust): | ||
"""deprecated osim adjustion API endpoint""" | ||
|
||
|
||
@extend_schema(deprecated=True, extensions={"x-sunset": "2024-07-01"}) | ||
class promote(api.promote): | ||
"""deprecated osim promote API endpoint""" | ||
|
||
|
||
@extend_schema(deprecated=True, extensions={"x-sunset": "2024-07-01"}) | ||
class reject(api.reject): | ||
"""deprecated osim reject API endpoint""" | ||
|
||
|
||
@extend_schema(deprecated=True, extensions={"x-sunset": "2024-07-01"}) | ||
class classification(api.classification): | ||
"""deprecated osim classification API endpoint""" | ||
|
||
|
||
@extend_schema(deprecated=True, extensions={"x-sunset": "2024-07-01"}) | ||
class workflows(api.workflows): | ||
"""deprecated osim info API endpoint""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
""" | ||
Former OSIM URLs marked as deprecated | ||
""" | ||
|
||
import logging | ||
|
||
from django.urls import path | ||
|
||
from .api_deprecated import adjust, classification, healthy, index, workflows | ||
from .constants import WORKFLOWS_API_VERSION | ||
from .views import classification as graph_classification | ||
from .views import workflows as graph_workflows | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
urlpatterns = [ | ||
path("", index.as_view()), | ||
path("healthy", healthy.as_view()), | ||
path(f"api/{WORKFLOWS_API_VERSION}/workflows", workflows.as_view()), | ||
path(f"api/{WORKFLOWS_API_VERSION}/workflows/<str:pk>", classification.as_view()), | ||
path(f"api/{WORKFLOWS_API_VERSION}/workflows/<str:pk>/adjust", adjust.as_view()), | ||
path(f"api/{WORKFLOWS_API_VERSION}/graph/workflows", graph_workflows.as_view()), | ||
path( | ||
f"api/{WORKFLOWS_API_VERSION}/graph/workflows/<str:pk>", | ||
graph_classification.as_view(), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.