-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
172 changed files
with
655 additions
and
104 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
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 |
---|---|---|
@@ -1,18 +1,27 @@ | ||
|
||
from django.contrib import admin | ||
from django.urls import path, include | ||
from django.contrib import admin | ||
from django.urls import path, include | ||
from rest_framework.permissions import AllowAny | ||
from django.contrib import admin | ||
from django.urls import path, include | ||
from rest_framework import permissions | ||
from django.urls import include, re_path | ||
from django.contrib import admin | ||
from django.urls import path, include, re_path | ||
from rest_framework.permissions import AllowAny | ||
from drf_yasg.views import get_schema_view | ||
from drf_yasg import openapi | ||
|
||
schema_view_v1 = get_schema_view( | ||
openapi.Info( | ||
title="Open API", | ||
default_version='v1', | ||
description="간단한 설명", | ||
terms_of_service="https://www.google.com/policies/terms/", | ||
), | ||
public=True, | ||
permission_classes=(AllowAny,), | ||
) | ||
|
||
urlpatterns = [ | ||
path('admin/', admin.site.urls), | ||
path('user/', include('rebikeuser.urls')), | ||
path('trash/', include('rebiketrash.urls')), | ||
|
||
re_path(r'^swagger(?P<format>\.json|\.yaml)$', schema_view_v1.without_ui(cache_timeout=0), name='schema-json'), | ||
re_path(r'^swagger/$', schema_view_v1.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'), | ||
re_path(r'^redoc/$', schema_view_v1.with_ui('redoc', cache_timeout=0), name='schema-redoc'), | ||
] |
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.