flask-mongorest icon indicating copy to clipboard operation
flask-mongorest copied to clipboard

Restful API framework wrapped around MongoEngine

Results 24 flask-mongorest issues
Sort by recently updated
recently updated
newest added

settled the conflicts I found after fetching #55 @andviro closes #81

This PR is a fresh start of #124. It includes: - A separate `register_class` function to use with Flask Blueprints (see e.g. [here](https://github.com/materialsproject/MPContribs/blob/0b4542d4b110594ff7a374688f8345fb47b422a3/mpcontribs-api/mpcontribs/api/__init__.py#L75-L78)). This should supersede #85 and #115. -...

On views.py:162, object is created without save=True, so it's saved in database before has_add_permission is called, 5 lines below. I tried to create a PR with a fix, by first...

I am a novice, have some problems. For dynamically add fields, I use DynamicDocument in doucument.py. 1. How to define the fields in Resource whe use DynamicDocument in doucument.py. I...

I would like to save the reference field along with object in post request. Is there any way to do this? For eg. ``` class User(db.Document): name = db.StringField(required=True, unique=True)...

This will allow to initialize the application when application context is available.

Hi! I have the following models: ```python class Document(db.Document): title = db.StringField(required=True,) class Collection(db.Document): # Some fields # ... documents = db.ListField(db.ReferenceField(Document)) ``` Then I defined my API the simplest...

Hello! I have field like this -> translation = MapField(EmbeddedDocumentField(Translation)) I wanna get "ru" field in translation. "name": "something.....", "translation": { "ru": { "name": "something......" } } I tried ?_fields=translation__ru...

Hello! How I can filter list by multiple values? By single value is working. My model is (I wanna filter "languages" field): class User(Document): firstname = StringField(required=True, max_length=512) lastname =...