mirror of
https://github.com/LukeHagar/connexion.git
synced 2025-12-09 20:37:46 +00:00
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.
14 lines
359 B
Python
Executable File
14 lines
359 B
Python
Executable File
#!/usr/bin/env python
|
|
import logging
|
|
|
|
import connexion
|
|
from connexion.resolver import RestyResolver
|
|
|
|
logging.basicConfig(level=logging.INFO)
|
|
|
|
if __name__ == '__main__':
|
|
app = connexion.FlaskApp(__name__)
|
|
app.add_api('resty-api.yaml',
|
|
arguments={'title': 'RestyResolver Example'}, resolver=RestyResolver('api'))
|
|
app.run(port=9090)
|