Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support JSON content type #160

Closed
seiiedali opened this issue Nov 27, 2023 · 2 comments
Closed

Support JSON content type #160

seiiedali opened this issue Nov 27, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@seiiedali
Copy link

seiiedali commented Nov 27, 2023

In order to use this module in rest-framework and keep the backend and frontend work completely on JSON based API, it would be a good feature if I could return the http response with JSON content type as a response during maintenance mode with the predefined data. Thank you in advance for your considering this feature request.

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@fabiocaccamo
Copy link
Owner

@seiiedali since 0.21.0 version it's possible to use MAINTENANCE_MODE_RESPONSE_TYPE = "json" setting, for passing the context data it's possible to use MAINTENANCE_MODE_GET_CONTEXT setting.

@seiiedali
Copy link
Author

Thanks for the update🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

No branches or pull requests

2 participants