swagger
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -192,8 +192,9 @@ UNFOLD = {
|
||||
},
|
||||
}
|
||||
|
||||
# 禁用自动补齐斜杠,防止破坏微信支付的 POST 回调
|
||||
APPEND_SLASH = False
|
||||
# 重新启用自动补齐斜杠,方便 Admin 使用
|
||||
# 微信支付回调接口已在 urls.py 中配置 re_path 兼容无斜杠的情况
|
||||
APPEND_SLASH = True
|
||||
|
||||
LOGGING = {
|
||||
'version': 1,
|
||||
|
||||
@@ -11,6 +11,7 @@ urlpatterns = [
|
||||
# Swagger文档路由
|
||||
path('api/schema/', SpectacularAPIView.as_view(), name='schema'),
|
||||
path('api/docs/', SpectacularSwaggerView.as_view(url_name='schema'), name='swagger-ui'),
|
||||
path('docs/swagger/', SpectacularSwaggerView.as_view(url_name='schema'), name='swagger-ui-alias'),
|
||||
path('api/redoc/', SpectacularRedocView.as_view(url_name='schema'), name='redoc'),
|
||||
]
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user