Skip to content

Commit

Permalink
Merge a85dd3a into cd1a98a
Browse files Browse the repository at this point in the history
  • Loading branch information
dyohan9 committed Aug 8, 2019
2 parents cd1a98a + a85dd3a commit c2f529e
Show file tree
Hide file tree
Showing 22 changed files with 1,934 additions and 141 deletions.
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ coreapi = "==2.3.3"
whitenoise = "==4.1.2"
pytz = "==2018.7"
drf-yasg = "*"
pyparsing = "==2.4.2"

[dev-packages]
"flake8" = "*"
Expand Down
150 changes: 88 additions & 62 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

75 changes: 72 additions & 3 deletions bothub/api/v1/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,8 @@ def create(self, request, *args, **kwargs):
description='Nickname User to find repositories',
type=openapi.TYPE_STRING
),
]
],
deprecated=True
)
)
class SearchRepositoriesViewSet(
Expand Down Expand Up @@ -635,6 +636,12 @@ def get_permissions(self):
return super().get_permissions()


@method_decorator(
name='create',
decorator=swagger_auto_schema(
deprecated=True,
)
)
class NewRepositoryExampleViewSet(
mixins.CreateModelMixin,
GenericViewSet):
Expand All @@ -652,6 +659,24 @@ class NewRepositoryExampleViewSet(
deprecated=True,
)
)
@method_decorator(
name='destroy',
decorator=swagger_auto_schema(
deprecated=True,
)
)
@method_decorator(
name='update',
decorator=swagger_auto_schema(
deprecated=True,
)
)
@method_decorator(
name='partial_update',
decorator=swagger_auto_schema(
deprecated=True,
)
)
class RepositoryExampleViewSet(
mixins.RetrieveModelMixin,
mixins.DestroyModelMixin,
Expand Down Expand Up @@ -952,6 +977,12 @@ class UserProfileViewSet(
lookup_field = 'nickname'


@method_decorator(
name='list',
decorator=swagger_auto_schema(
deprecated=True,
)
)
class Categories(
mixins.ListModelMixin,
GenericViewSet):
Expand Down Expand Up @@ -1000,6 +1031,12 @@ class TranslationsViewSet(
filter_class = TranslationsFilter


@method_decorator(
name='list',
decorator=swagger_auto_schema(
deprecated=True,
)
)
class RepositoryAuthorizationViewSet(
mixins.ListModelMixin,
GenericViewSet):
Expand Down Expand Up @@ -1030,7 +1067,8 @@ class RepositoryAuthorizationViewSet(
type=openapi.TYPE_STRING,
required=True
),
]
],
deprecated=True
)
)
@method_decorator(
Expand All @@ -1051,7 +1089,8 @@ class RepositoryAuthorizationViewSet(
type=openapi.TYPE_STRING,
required=True
),
]
],
deprecated=True
)
)
class RepositoryAuthorizationRoleViewSet(
Expand Down Expand Up @@ -1121,6 +1160,12 @@ def list(self, request, *args, **kwargs):
return Response(serializer.data)


@method_decorator(
name='create',
decorator=swagger_auto_schema(
deprecated=True,
)
)
class RequestAuthorizationViewSet(
mixins.CreateModelMixin,
GenericViewSet):
Expand All @@ -1134,6 +1179,12 @@ class RequestAuthorizationViewSet(
]


@method_decorator(
name='list',
decorator=swagger_auto_schema(
deprecated=True,
)
)
class RepositoryAuthorizationRequestsViewSet(
mixins.ListModelMixin,
GenericViewSet):
Expand All @@ -1149,6 +1200,24 @@ class RepositoryAuthorizationRequestsViewSet(
]


@method_decorator(
name='update',
decorator=swagger_auto_schema(
deprecated=True,
)
)
@method_decorator(
name='destroy',
decorator=swagger_auto_schema(
deprecated=True,
)
)
@method_decorator(
name='partial_update',
decorator=swagger_auto_schema(
deprecated=True,
)
)
class ReviewAuthorizationRequestViewSet(
mixins.UpdateModelMixin,
mixins.DestroyModelMixin,
Expand Down
Loading

0 comments on commit c2f529e

Please sign in to comment.