API_Microservices/swagger/swagger_server/__main__.py
2024-03-27 17:07:47 +01:00

16 lines
352 B
Python

#!/usr/bin/env python3
import connexion
from swagger_server import encoder
def main():
app = connexion.App(__name__, specification_dir='./swagger/')
app.app.json_encoder = encoder.JSONEncoder
app.add_api('swagger.yaml', arguments={'title': 'API Jo'}, pythonic_params=True)
app.run(port=8080)
if __name__ == '__main__':
main()