Skip to content

Commit

Permalink
Change " to '
Browse files Browse the repository at this point in the history
  • Loading branch information
dyohan9 committed Jul 18, 2019
1 parent 0e4a045 commit 6114c28
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 35 deletions.
10 changes: 5 additions & 5 deletions bothub/api/v1/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def create(self, request, *args, **kwargs):
openapi.Parameter(
'nickname',
openapi.IN_QUERY,
description="Nickname User to find repositories",
description='Nickname User to find repositories',
type=openapi.TYPE_STRING
),
]
Expand Down Expand Up @@ -964,14 +964,14 @@ class RepositoryAuthorizationViewSet(
openapi.Parameter(
'repository__uuid',
openapi.IN_PATH,
description="Repository UUID",
description='Repository UUID',
type=openapi.TYPE_STRING,
required=True
),
openapi.Parameter(
'user__nickname',
openapi.IN_QUERY,
description="Nickname User",
description='Nickname User',
type=openapi.TYPE_STRING,
required=True
),
Expand All @@ -985,14 +985,14 @@ class RepositoryAuthorizationViewSet(
openapi.Parameter(
'repository__uuid',
openapi.IN_PATH,
description="Repository UUID",
description='Repository UUID',
type=openapi.TYPE_STRING,
required=True
),
openapi.Parameter(
'user__nickname',
openapi.IN_QUERY,
description="Nickname User",
description='Nickname User',
type=openapi.TYPE_STRING,
required=True
),
Expand Down
34 changes: 17 additions & 17 deletions bothub/api/v2/evaluate/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
openapi.Parameter(
'repository_uuid',
openapi.IN_QUERY,
description="Repository UUID, calling "
"the parameter through url",
description='Repository UUID, calling '
'the parameter through url',
type=openapi.TYPE_STRING,
required=True
),
Expand All @@ -48,8 +48,8 @@
openapi.Parameter(
'repository_uuid',
openapi.IN_QUERY,
description="Repository UUID, calling "
"the parameter through url",
description='Repository UUID, calling '
'the parameter through url',
type=openapi.TYPE_STRING,
required=True
),
Expand All @@ -63,8 +63,8 @@
openapi.Parameter(
'repository_uuid',
openapi.IN_QUERY,
description="Repository UUID, calling "
"the parameter through url",
description='Repository UUID, calling '
'the parameter through url',
type=openapi.TYPE_STRING,
required=True
),
Expand All @@ -78,8 +78,8 @@
openapi.Parameter(
'repository_uuid',
openapi.IN_QUERY,
description="Repository UUID, calling "
"the parameter through url",
description='Repository UUID, calling '
'the parameter through url',
type=openapi.TYPE_STRING,
required=True
),
Expand All @@ -93,8 +93,8 @@
openapi.Parameter(
'repository_uuid',
openapi.IN_QUERY,
description="Repository UUID, calling "
"the parameter through url",
description='Repository UUID, calling '
'the parameter through url',
type=openapi.TYPE_STRING,
required=True
),
Expand All @@ -108,8 +108,8 @@
openapi.Parameter(
'repository_uuid',
openapi.IN_QUERY,
description="Repository UUID, calling "
"the parameter through url",
description='Repository UUID, calling '
'the parameter through url',
type=openapi.TYPE_STRING,
required=True
),
Expand Down Expand Up @@ -161,29 +161,29 @@ def list(self, request, *args, **kwargs):
openapi.Parameter(
'intent',
openapi.IN_QUERY,
description="Filter a desired intent",
description='Filter a desired intent',
type=openapi.TYPE_STRING,
required=False
),
openapi.Parameter(
'min',
openapi.IN_QUERY,
description="Filter Confidence Percentage",
description='Filter Confidence Percentage',
type=openapi.TYPE_INTEGER,
required=False
),
openapi.Parameter(
'max',
openapi.IN_QUERY,
description="Filter Confidence Percentage",
description='Filter Confidence Percentage',
type=openapi.TYPE_INTEGER,
required=False
),
openapi.Parameter(
'repository_uuid',
openapi.IN_QUERY,
description="Repository UUID, calling "
"the parameter through url",
description='Repository UUID, calling '
'the parameter through url',
type=openapi.TYPE_STRING,
required=True
),
Expand Down
6 changes: 3 additions & 3 deletions bothub/api/v2/repository/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ class RepositoryViewSet(
openapi.Parameter(
'user',
openapi.IN_QUERY,
description="Nickname User to find repositories votes",
description='Nickname User to find repositories votes',
type=openapi.TYPE_STRING
),
openapi.Parameter(
'repository',
openapi.IN_QUERY,
description="Repository UUID, returns a list of "
"users who voted for this repository",
description='Repository UUID, returns a list of '
'users who voted for this repository',
type=openapi.TYPE_STRING
),
]
Expand Down
8 changes: 4 additions & 4 deletions bothub/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,10 @@
'DOC_EXPANSION': 'list',
'APIS_SORTER': 'alpha',
'SECURITY_DEFINITIONS': {
"api_key": {
"type": "apiKey",
"name": "Authorization",
"in": "header"
'api_key': {
'type': 'apiKey',
'name': 'Authorization',
'in': 'header'
},
},
}
11 changes: 5 additions & 6 deletions bothub/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@

schema_view = get_schema_view(
openapi.Info(
title="API Documentation",
title='API Documentation',
default_version='v1.0.1',
description="Documentation",
terms_of_service="https://www.google.com/policies/terms/",
contact=openapi.Contact(email="bothub@ilhasoft.com.br"),
description='Documentation',
terms_of_service='https://www.google.com/policies/terms/',
contact=openapi.Contact(email='bothub@ilhasoft.com.br'),
license=openapi.License(name="GPL-3.0"),
),
public=True,
Expand All @@ -41,8 +41,7 @@
download_bot_data,
name='download_bot_data'),
re_path(r'^swagger(?P<format>\.json|\.yaml)$', schema_view.without_ui()),
path('swagger/', schema_view.with_ui('swagger')),
path('redoc/', schema_view.with_ui('redoc'))
path('swagger/', schema_view.with_ui('swagger'))
]

if settings.DEBUG:
Expand Down

0 comments on commit 6114c28

Please sign in to comment.