Skip to content

Commit

Permalink
fix(API): return JSON by default. avoid DRF UI
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Aug 23, 2024
1 parent 36cd8b2 commit cb907c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@
REST_FRAMEWORK = {
"DEFAULT_SCHEMA_CLASS": "drf_spectacular.openapi.AutoSchema",
"DEFAULT_VERSIONING_CLASS": "rest_framework.versioning.NamespaceVersioning",
"DEFAULT_RENDERER_CLASSES": ["rest_framework.renderers.JSONRenderer"],
"EXCEPTION_HANDLER": "open_prices.common.middleware.custom_exception_handler",
"DEFAULT_FILTER_BACKENDS": ["django_filters.rest_framework.DjangoFilterBackend"],
"ORDERING_PARAM": "order_by",
Expand Down

0 comments on commit cb907c5

Please sign in to comment.