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 doesn't seem to be good if so for REST type interfaces. I wanted to have
@app.add_route(r'^/run/paramenters/(\w+)', method='GET")
def my_getter(run_id): pass
and
@app.add_route(r'^/run/paramenters/(\w+)', method='POST")
def my_setter(run_id): pass
But in that order I get a 405 for the POST. What gives? I can do this with classes all day. Some bug under the add_route decorator?
The text was updated successfully, but these errors were encountered:
I am very close to starting a refactor of Brubeck. I was working on
Schematics. I intend to move the system away from using classes and moving
to this decorator model, so I will fix this as part of that process.
This doesn't seem to be good if so for REST type interfaces. I wanted to
have
@app.add_route(r'^/run/paramenters/(\w+)', method='GET")
def my_getter(run_id): pass
and
@app.add_route(r'^/run/paramenters/(\w+)', method='POST")
def my_setter(run_id): pass
But in that order I get a 405 for the POST. What gives? I can do this with
classes all day. Some bug under the add_route decorator?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/130
.
This doesn't seem to be good if so for REST type interfaces. I wanted to have
@app.add_route(r'^/run/paramenters/(\w+)', method='GET")
def my_getter(run_id): pass
and
@app.add_route(r'^/run/paramenters/(\w+)', method='POST")
def my_setter(run_id): pass
But in that order I get a 405 for the POST. What gives? I can do this with classes all day. Some bug under the add_route decorator?
The text was updated successfully, but these errors were encountered: