potion icon indicating copy to clipboard operation
potion copied to clipboard

Flask-Potion is a RESTful API framework for Flask and SQLAlchemy, Peewee or MongoEngine

Results 51 potion issues
Sort by recently updated
recently updated
newest added

I have a user resource registered with potion: ``` class UserResource(ModelResource): class Meta: model = User class Schema: organization = fields.ToOne('organization') @Route.GET def me(self) -> fields.Integer: print('Never get's here' with...

In order to reduce the amount of data being transferred from a resource, is it possible to provide a query args to return a set of fields? Sometimes, we don't...

Hi, Has the project been discontinued or has it been migrated to another repository? I didn't find anything about it, thank you.

How can we define a custom attribute for instances? Using this route as example: ``` @ItemRoute.GET def is_recent(self, book) -> fields.Boolean(): return datetime.date.today().year

Maybe not an issue and I'm just missing something. I'll try to explain me with some code I have a situation like this: ```python class UserStatusResource(ModelResource): class Meta: model =...

by running the example `peewee_simple.py` as is, I get ```python $ python peewee_simple.py Traceback (most recent call last): File "peewee_simple.py", line 42, in api.add_resource(BookResource) File "/home/m/.local/share/virtualenvs/pano-vehicle-version-config-api-JCsed19j/lib/python3.6/site-packages/flask_potion/__init__.py", line 215, in add_resource...

Fixes for the tests to bring explicit support for python3.7 are coming soon.

Accessing a collection not yet set doesn't raise AttributeError anymore