This is a test service written in Python 3; for now, it is a proof-of-concept echo server to test against the backend.
Python 3+ and Flask need to be installed. Flask can be installed by using pip:
pip install flask
Alternatively, if pip
is not in your path, you can also run:
python -m pip install flask
Run the file source.py
; the service will be running at port 3000
. Note that you cannot interact with it directly; it only responds to POST requests containing a JSON file with a name
field; cURL can be used to send POST JSON, as shown here
TBD
TBD
Use this description
- JSON data containing a 'name' field, sent via POST, will be returned to the user as a string.
- Returning a JSON response
- Logging connections
PEP 8 should be followed at all times; the pycodestyle
linter can be used to ensure code is PEP 8 compliant, and can be installed via pip
.
TBD
TBD