You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is mostly syntactic sugar, but when you're adding a lot of pre-/post processors the api.create_api functions becomes really big and unwieldy. Would it be an idea to make Restless more class-oriented?
Post/pre processors would work the same way and will be executed if they are defined as methods. The only thing I'm not sure about is having multiple post/pre processors, maybe through inheritance?
I'm not sure about this. There are other Flask extensions that allow the user to create APIs using class-based "Resources", so I'd prefer to leave that style to those other extensions (even if it is more flexible or cleaner in some ways).
You're right. I was drawn to Restless because of the great pre/post-processor support, but missed the class-based approach. I think I'll cook something up myself for this project :).
I'm not sure about this. There are other Flask extensions that allow the user to create APIs using class-based "Resources", so I'd prefer to leave that style to those other extensions (even if it is more flexible or cleaner in some ways).
—
Reply to this email directly or view it on GitHub.
This is mostly syntactic sugar, but when you're adding a lot of pre-/post processors the
api.create_api
functions becomes really big and unwieldy. Would it be an idea to make Restless more class-oriented?Post/pre processors would work the same way and will be executed if they are defined as methods. The only thing I'm not sure about is having multiple post/pre processors, maybe through inheritance?
If people are interested in this improvement I'd like to take a stab at it.
The text was updated successfully, but these errors were encountered: