diff --git a/docker-compose.yml b/docker-compose.yml index 169bc42..2c3799b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,9 +4,9 @@ rest: image: pdonorio/py3api hostname: restapi - command: ./rest.py # DEBUG - # command: sleep 1234567890 + #command: sleep 1234567890 + command: ./rest.py tty: true stdin_open: true ######################### diff --git a/mind.TODO b/mind.TODO index 20d9184..a26b3a4 100644 --- a/mind.TODO +++ b/mind.TODO @@ -21,8 +21,9 @@ TO DO: ☐ A more extensible mock ✔ method inside ExtendedApiResource to specify a different endpoint @done (15-09-16 13:56) ✔ configuration option to specify one or more module file to look for endpoints classes @done (15-09-16 17:25) - ☐ refactoring? + ☐ refactoring: create a configuration module ☐ examples of post, put, delete + ☐ rename mock.py in services.py TO FIX: ✔ cors @done (15-09-11 12:46) diff --git a/mylibs/server.py b/mylibs/server.py index aaf84fa..417069b 100644 --- a/mylibs/server.py +++ b/mylibs/server.py @@ -3,7 +3,7 @@ """ Flask hello world """ -import logging, sys +import logging logger = logging.getLogger(__name__) ####################################