├── .dockerignore ├── .github ├── hypertrons.json ├── pull_request_template.md └── workflows │ └── pythonapp.yml ├── .gitignore ├── .gitmodules ├── .python-version ├── CONTRIBUTING.md ├── Dockerfile ├── LICENSE ├── README-cn.md ├── README.md ├── bootstrap ├── config ├── dev.py ├── product.py └── settings.py ├── const.py ├── requirements.txt ├── src ├── __init__.py ├── api │ ├── __init__.py │ ├── accommodations.py │ └── hospitals.py ├── core │ └── __init__.py ├── main.py ├── swagger │ ├── accommodations.yml │ ├── api.yml │ ├── archived │ │ ├── accomodation.yaml │ │ ├── donation.yaml │ │ ├── hospitaldemands.yaml │ │ ├── supplies.yaml │ │ └── suppliesunits.yaml │ ├── errors.yml │ ├── hospitals.yml │ └── validations.yaml ├── tests │ ├── __init__.py │ ├── data │ │ ├── csv │ │ │ ├── DONATION.csv │ │ │ ├── FACTORY.csv │ │ │ ├── HOSPITAL.csv │ │ │ ├── HOTEL.csv │ │ │ └── LOGISTICAL.csv │ │ ├── test.json │ │ └── test.xml │ └── test_nothing.py └── utils │ └── __init__.py ├── tools.py └── utils.py /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/.dockerignore -------------------------------------------------------------------------------- /.github/hypertrons.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/.github/hypertrons.json -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/.github/pull_request_template.md -------------------------------------------------------------------------------- /.github/workflows/pythonapp.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/.github/workflows/pythonapp.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/.gitmodules -------------------------------------------------------------------------------- /.python-version: -------------------------------------------------------------------------------- 1 | 3.6.10 2 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/LICENSE -------------------------------------------------------------------------------- /README-cn.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/README-cn.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/README.md -------------------------------------------------------------------------------- /bootstrap: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | python3 -m "src.main" 3 | -------------------------------------------------------------------------------- /config/dev.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /config/product.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /config/settings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/config/settings.py -------------------------------------------------------------------------------- /const.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/const.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/requirements.txt -------------------------------------------------------------------------------- /src/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/api/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/api/accommodations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/src/api/accommodations.py -------------------------------------------------------------------------------- /src/api/hospitals.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/src/api/hospitals.py -------------------------------------------------------------------------------- /src/core/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/src/main.py -------------------------------------------------------------------------------- /src/swagger/accommodations.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/src/swagger/accommodations.yml -------------------------------------------------------------------------------- /src/swagger/api.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/src/swagger/api.yml -------------------------------------------------------------------------------- /src/swagger/archived/accomodation.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/src/swagger/archived/accomodation.yaml -------------------------------------------------------------------------------- /src/swagger/archived/donation.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/src/swagger/archived/donation.yaml -------------------------------------------------------------------------------- /src/swagger/archived/hospitaldemands.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/src/swagger/archived/hospitaldemands.yaml -------------------------------------------------------------------------------- /src/swagger/archived/supplies.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/src/swagger/archived/supplies.yaml -------------------------------------------------------------------------------- /src/swagger/archived/suppliesunits.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/src/swagger/archived/suppliesunits.yaml -------------------------------------------------------------------------------- /src/swagger/errors.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/src/swagger/errors.yml -------------------------------------------------------------------------------- /src/swagger/hospitals.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/src/swagger/hospitals.yml -------------------------------------------------------------------------------- /src/swagger/validations.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/src/swagger/validations.yaml -------------------------------------------------------------------------------- /src/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/tests/data/csv/DONATION.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/src/tests/data/csv/DONATION.csv -------------------------------------------------------------------------------- /src/tests/data/csv/FACTORY.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/src/tests/data/csv/FACTORY.csv -------------------------------------------------------------------------------- /src/tests/data/csv/HOSPITAL.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/src/tests/data/csv/HOSPITAL.csv -------------------------------------------------------------------------------- /src/tests/data/csv/HOTEL.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/src/tests/data/csv/HOTEL.csv -------------------------------------------------------------------------------- /src/tests/data/csv/LOGISTICAL.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/src/tests/data/csv/LOGISTICAL.csv -------------------------------------------------------------------------------- /src/tests/data/test.json: -------------------------------------------------------------------------------- 1 | {"code":0,"data":{},"msg":"success"} 2 | -------------------------------------------------------------------------------- /src/tests/data/test.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/src/tests/data/test.xml -------------------------------------------------------------------------------- /src/tests/test_nothing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/src/tests/test_nothing.py -------------------------------------------------------------------------------- /src/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/tools.py -------------------------------------------------------------------------------- /utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuhan2020/api-server/HEAD/utils.py --------------------------------------------------------------------------------