Coverage for src/swagger_settings.py: 100%

4 statements  

« prev     ^ index     » next       coverage.py v7.10.6, created at 2025-11-25 17:29 +0000

1from flasgger import Swagger 1a

2 

3 

4def set_config(app): 1a

5 template = { 1a

6 "swagger": "2.0", 

7 "info": { 

8 "title": "COVID19 Japan Web API", 

9 "version": "0.1.0", 

10 "description": "Web API to get COVID-19(coronavirus) information of each prefecture in Japan", 

11 "termsOfService": "https://github.com/ryo-ma/covid19-japan-web-api/blob/master/README.md", 

12 "contact": { 

13 "email": "saka_ro@yahoo.co.jp" 

14 }, 

15 "license": { 

16 "name": "MIT", 

17 "url": "https://github.com/ryo-ma/covid19-japan-web-api/blob/master/LICENSE" 

18 } 

19 }, 

20 "host": "covid19-japan-web-api.now.sh", 

21 "basePath": "", 

22 "schemes": [ 

23 "https" 

24 ] 

25 } 

26 Swagger(app, template=template) 1a