diff --git a/components/entitiy_ident/README.md b/components/entitiy_ident/README.md new file mode 100644 index 0000000..5681d10 --- /dev/null +++ b/components/entitiy_ident/README.md @@ -0,0 +1,6 @@ +# Super Lightweight Flask Web Server +* `pip install requirements.txt` +* `python entitiy_ident_service.py` +* `http://127.0.0.1:5000` -> `Hello World` +* `http://127.0.0.1:5000/api1` -> `api1` +* `http://127.0.0.1:5000/api2` -> `api2` diff --git a/components/entitiy_ident/entitiy_ident_service.py b/components/entitiy_ident/entitiy_ident_service.py new file mode 100644 index 0000000..3dfc734 --- /dev/null +++ b/components/entitiy_ident/entitiy_ident_service.py @@ -0,0 +1,22 @@ +from flask import Flask + +app = Flask(__name__) + + +@app.route('/') +def hello_world(): + return 'Hello World' + + +@app.route('/api1') +def api1(): + return 'api1' + + +@app.route('/api2') +def api2(): + return 'api2' + + +if __name__ == '__main__': + app.run() diff --git a/components/entitiy_ident/requirements.txt b/components/entitiy_ident/requirements.txt new file mode 100644 index 0000000..8ab6294 --- /dev/null +++ b/components/entitiy_ident/requirements.txt @@ -0,0 +1 @@ +flask \ No newline at end of file