Giter VIP home page Giter VIP logo

flask-restalchemy's People

Contributors

edetec avatar femarchi avatar gghiguchi avatar igortg avatar lincrosenbach avatar lvoliveira avatar nicoddemus avatar nobreconfrade avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flask-restalchemy's Issues

Better Swagger spec generation

Currently, Swagger spec is generated using Flasgger. But to use Flasgger, each REST resource must have its unique class, leading to the hackish code at resourcefactory.py.

Find a better way to generate Swagger specs (maybe made an script available to compile the spec based on the models registered on the API).

Use travis to build release packages

Add a deploy stage to .travis.yml as in ESSS/cookiecutter-esss-pypackage.

Build and deploy by rever can be removed (conda-forge bot will do the work).

Relationships should support pagination

Currently, relationship endpoints doesn't support any query parameter (pagination, order by, limit). This should be implemented for these kind of endpoints.

Create a decorator to add_url_rule to the api

Currently, we have to define a function and then call api.add_url_rule providing the function. It would be nice to have a decorator to add a function as an url_rule of the api, as flask does with the 'app.route' decorator.

Current behavior:

api = Api(flask_app)

def my_rule_fn():
    # do stuff 

api.add_url_rule('/my_rule', my_rule_fn)

After requested change:

api = Api(flask_app)

api.route('/my_rule')
def my_rule():
    # do stuff 

Custom resource functions

Hi all, I think this project is an excellent idea, since manually stitching together Flask + SQLAlchemy + Flask-restful + Marshmallow involves a lot of repetition and boilerplate.

However, I realise that for my project, I need to be able to add custom view endpoints, so I can add filter logic to them, and other behaviour that handles the GET args. There seems to be some already existing code that does this kind of thing, but is it possible to fully customize it? I can envisage the default filter builder not working exactly for my use-case. In addition, would it be possible to document these more advanced features?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.