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 08c725c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@
REST_FRAMEWORK = {
"DEFAULT_SCHEMA_CLASS": "drf_spectacular.openapi.AutoSchema",
"DEFAULT_VERSIONING_CLASS": "rest_framework.versioning.NamespaceVersioning",
"DEFAULT_RENDERER_CLASSES": ["rest_framework.renderers.JSONRenderer"],
"DEFAULT_PARSER_CLASSES": ["rest_framework.parsers.JSONParser"],
"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 08c725c

Please sign in to comment.