Commit Graph

14 Commits

Author SHA1 Message Date
Asbjørn Apeland
485380d54f Document how to set Swagger UI path (#1051) 2019-10-09 18:28:14 +02:00
Simon
92867452a2 Added MethodViewResolver (#847)
* Added MethodViewResolver

By subclassing RestyResolver and modifying its `resolve_function_from_operation_id` method, it is now possible to use automatic routing functionality with Flask's MethodView together with MethodViewResolver.

* Add MethodView example

* Add tests for methodview

* add documentation on how to use MethodViewResolver
2019-02-04 08:25:27 +01:00
Daniel Grossmann-Kavanagh
343643428c update documentation (#771) 2018-11-12 09:40:42 +01:00
fdemello
cbca315326 Update routing.rst (#674)
Changes proposed in #596
2018-09-14 09:12:20 +02:00
Tomer Cohen
ccd62f897f fix link to odata (#661)
Link has markdown syntax in a reStructuredText document.
2018-08-08 20:29:30 +02:00
Ishaan Kumar
9f20c5ffb7 Minor typo (#567) 2018-02-13 10:55:20 +01:00
Diogo
5857dd237f Uncouple all flask functions from base code.
removed test_decorators and test_parameter (this test is useless now);
removed the request/response containers and add new request response classes;
created a abstract api class and a api flask class;
derived classes will implements the get_response/get_request methods that will convert framework req/resp types to connexion req/resp types;
moved the jsonifier from produces to flask api;
created a abstract app class and a app flask class;
changed all validators to use the ConnexionRequest instead flask request;
changed the problem function to generate a ConnexionRequest;
created a new user variables container called context (this is a property of ConnexionRequest). this will be passed as kwargs to all operations functions;
this context is used on authentication;
fixed all tests to new API;
some changes that I did may not be documented in this commit.
2017-04-04 08:20:24 -03:00
Diogo Dutra
a7af62fbf0 Uncouple flask from App and Api. Created Abstract classes for theses modules. Fixed the tests 2017-04-04 08:20:23 -03:00
Patrick Williams
6eb5a6e969 Support the flask url variable converter "path" 2017-01-07 10:02:44 -05:00
Matthew Farrellee
5ce9083f20 correct doc for RestyResolver PUT requests 2017-01-03 06:22:08 -05:00
Michael Wild
b638b1168e Adds parameter name sanitization in parameters_to_args()
Without sanitization e.g. OData query parameters, such as $skip, $top,
$filter cannot be passed to the controller (except by use of **kwargs).

Fixes: zalando/connexion#334
2016-10-31 15:16:03 +01:00
David Feinzeig
0c177c7539 make swagger_json optional when adding an api 2016-03-29 00:00:27 -04:00
João Santos
3fc4da7307 #167 Added extra info to routing documentation 2016-03-04 13:23:40 +01:00
João Santos
a49c9b4885 #167 Include routing information in the docs 2016-03-04 13:16:22 +01:00