This repository was archived by the owner on Jan 23, 2024. It is now read-only.
Register class, BulkCreate/Delete, Flasgger, and other improvements#132
Open
tschaume wants to merge 13 commits intocloseio:masterfrom
Open
Register class, BulkCreate/Delete, Flasgger, and other improvements#132tschaume wants to merge 13 commits intocloseio:masterfrom
tschaume wants to merge 13 commits intocloseio:masterfrom
Conversation
Closed
Author
|
For anyone interested in this PR, I started maintaining this (and more) through the flask-mongorest-mpcontribs package. |
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is a fresh start of #124. It includes:
register_classfunction to use with Flask Blueprints (see e.g. here). This should supersede support for flask app factory pattern #85 and Added support for application factory pattern #115.register_classfunction also definesendpoints for each URL to enable integration with Flasgger (see this commit).BulkCreateandBulkDeletemethods.typproperty for operators to enable easier integration with Swagger definitions (see here).get_optional_fieldsmethod to allow retrieving optional fields from the class (see here)get_requested_fields().view_methodwhen serializing.Decimal128in MongoEncoder.kwargsforwarding.view_argsmartinblech/mimerender#36@wojcikstefan @thomasst I'm working on getting the tests to pass and implement new ones for
BulkCreate/Delete. Would you mind starting the review of this PR in the meantime? Thanks! I will base new PRs for additional functionality currently included in #124 off this PR.