├── Chapter01 ├── __MACOSX │ ├── restful_python_2_01_01 │ │ ├── ._.DS_Store │ │ └── Flask01 │ │ │ ├── ._.DS_Store │ │ │ ├── ._requirements.txt │ │ │ └── service │ │ │ ├── ._.DS_Store │ │ │ ├── ._http_status.py │ │ │ ├── ._models.py │ │ │ └── ._service.py │ └── restful_python_2_01_02 │ │ ├── ._.DS_Store │ │ └── Flask01 │ │ ├── ._.DS_Store │ │ ├── ._cmd01.txt │ │ ├── ._cmd02.txt │ │ ├── ._cmd03.txt │ │ ├── ._cmd04.txt │ │ ├── ._cmd05.txt │ │ ├── ._cmd06.txt │ │ ├── ._cmd07.txt │ │ ├── ._cmd08.txt │ │ ├── ._cmd09.txt │ │ ├── ._cmd10.txt │ │ ├── ._cmd11.txt │ │ ├── ._cmd12.txt │ │ ├── ._cmd13.txt │ │ ├── ._cmd14.txt │ │ ├── ._cmd15.txt │ │ ├── ._notifications_post_pycharm.http │ │ ├── ._requirements.txt │ │ └── service │ │ ├── ._.DS_Store │ │ ├── ._http_status.py │ │ ├── ._models.py │ │ └── ._service.py ├── restful_python_2_01_01 │ ├── .DS_Store │ └── Flask01 │ │ ├── .DS_Store │ │ ├── requirements.txt │ │ └── service │ │ ├── .DS_Store │ │ ├── http_status.py │ │ ├── models.py │ │ └── service.py └── restful_python_2_01_02 │ ├── .DS_Store │ └── Flask01 │ ├── .DS_Store │ ├── cmd01.txt │ ├── cmd02.txt │ ├── cmd03.txt │ ├── cmd04.txt │ ├── cmd05.txt │ ├── cmd06.txt │ ├── cmd07.txt │ ├── cmd08.txt │ ├── cmd09.txt │ ├── cmd10.txt │ ├── cmd11.txt │ ├── cmd12.txt │ ├── cmd13.txt │ ├── cmd14.txt │ ├── cmd15.txt │ ├── notifications_post_pycharm.http │ ├── requirements.txt │ └── service │ ├── .DS_Store │ ├── http_status.py │ ├── models.py │ └── service.py ├── Chapter02 ├── __MACOSX │ └── restful_python_2_02_01 │ │ ├── ._.DS_Store │ │ └── Flask01 │ │ ├── ._.DS_Store │ │ ├── ._cmd201.txt │ │ ├── ._cmd202.txt │ │ ├── ._cmd203.txt │ │ ├── ._cmd204.txt │ │ ├── ._cmd205.txt │ │ ├── ._cmd206.txt │ │ ├── ._cmd207.txt │ │ ├── ._cmd208.txt │ │ ├── ._configure_database.sql │ │ ├── ._requirements.txt │ │ └── service │ │ ├── ._.DS_Store │ │ ├── ._app.py │ │ ├── ._cli.py │ │ ├── ._config.py │ │ ├── ._http_status.py │ │ ├── ._models.py │ │ ├── ._views.py │ │ └── migrations │ │ ├── ._.DS_Store │ │ └── versions │ │ └── ._.DS_Store └── restful_python_2_02_01 │ ├── .DS_Store │ └── Flask01 │ ├── .DS_Store │ ├── cmd201.txt │ ├── cmd202.txt │ ├── cmd203.txt │ ├── cmd204.txt │ ├── cmd205.txt │ ├── cmd206.txt │ ├── cmd207.txt │ ├── cmd208.txt │ ├── configure_database.sql │ ├── requirements.txt │ └── service │ ├── .DS_Store │ ├── app.py │ ├── cli.py │ ├── config.py │ ├── http_status.py │ ├── migrations │ ├── .DS_Store │ ├── README │ ├── alembic.ini │ ├── env.py │ ├── script.py.mako │ └── versions │ │ ├── .DS_Store │ │ └── 03f5d0f0642a_.py │ ├── models.py │ └── views.py ├── Chapter03 ├── __MACOSX │ ├── restful_python_2_03_01 │ │ ├── ._.DS_Store │ │ └── Flask01 │ │ │ ├── ._.DS_Store │ │ │ ├── ._cmd201.txt │ │ │ ├── ._cmd202.txt │ │ │ ├── ._cmd203.txt │ │ │ ├── ._cmd204.txt │ │ │ ├── ._cmd205.txt │ │ │ ├── ._cmd206.txt │ │ │ ├── ._cmd207.txt │ │ │ ├── ._cmd208.txt │ │ │ ├── ._cmd301.txt │ │ │ ├── ._cmd302.txt │ │ │ ├── ._cmd303.txt │ │ │ ├── ._cmd304.txt │ │ │ ├── ._cmd305.txt │ │ │ ├── ._cmd306.txt │ │ │ ├── ._cmd307.txt │ │ │ ├── ._cmd308.txt │ │ │ ├── ._cmd309.txt │ │ │ ├── ._cmd310.txt │ │ │ ├── ._cmd311.txt │ │ │ ├── ._cmd312.txt │ │ │ ├── ._cmd313.txt │ │ │ ├── ._cmd314.txt │ │ │ ├── ._cmd315.txt │ │ │ ├── ._cmd316.txt │ │ │ ├── ._configure_database.sql │ │ │ ├── ._requirements.txt │ │ │ └── service │ │ │ ├── ._.DS_Store │ │ │ ├── ._app.py │ │ │ ├── ._cli.py │ │ │ ├── ._config.py │ │ │ ├── ._helpers.py │ │ │ ├── ._http_status.py │ │ │ ├── ._models.py │ │ │ └── ._views.py │ └── restful_python_2_03_02 │ │ ├── ._.DS_Store │ │ └── Flask01 │ │ ├── ._.DS_Store │ │ ├── ._cmd201.txt │ │ ├── ._cmd202.txt │ │ ├── ._cmd203.txt │ │ ├── ._cmd204.txt │ │ ├── ._cmd205.txt │ │ ├── ._cmd206.txt │ │ ├── ._cmd207.txt │ │ ├── ._cmd208.txt │ │ ├── ._cmd301.txt │ │ ├── ._cmd302.txt │ │ ├── ._cmd303.txt │ │ ├── ._cmd304.txt │ │ ├── ._cmd305.txt │ │ ├── ._cmd306.txt │ │ ├── ._cmd307.txt │ │ ├── ._cmd308.txt │ │ ├── ._cmd309.txt │ │ ├── ._cmd310.txt │ │ ├── ._cmd311.txt │ │ ├── ._cmd312.txt │ │ ├── ._cmd313.txt │ │ ├── ._cmd314.txt │ │ ├── ._cmd315.txt │ │ ├── ._cmd316.txt │ │ ├── ._cmd317.txt │ │ ├── ._cmd318.txt │ │ ├── ._cmd319.txt │ │ ├── ._cmd320.txt │ │ ├── ._cmd321.txt │ │ ├── ._cmd322.txt │ │ ├── ._cmd323.txt │ │ ├── ._cmd324.txt │ │ ├── ._configure_database.sql │ │ ├── ._requirements.txt │ │ └── service │ │ ├── ._.DS_Store │ │ ├── ._app.py │ │ ├── ._cli.py │ │ ├── ._config.py │ │ ├── ._helpers.py │ │ ├── ._http_status.py │ │ ├── ._models.py │ │ ├── ._views.py │ │ └── migrations │ │ ├── ._.DS_Store │ │ └── versions │ │ └── ._.DS_Store ├── restful_python_2_03_01 │ ├── .DS_Store │ └── Flask01 │ │ ├── .DS_Store │ │ ├── cmd201.txt │ │ ├── cmd202.txt │ │ ├── cmd203.txt │ │ ├── cmd204.txt │ │ ├── cmd205.txt │ │ ├── cmd206.txt │ │ ├── cmd207.txt │ │ ├── cmd208.txt │ │ ├── cmd301.txt │ │ ├── cmd302.txt │ │ ├── cmd303.txt │ │ ├── cmd304.txt │ │ ├── cmd305.txt │ │ ├── cmd306.txt │ │ ├── cmd307.txt │ │ ├── cmd308.txt │ │ ├── cmd309.txt │ │ ├── cmd310.txt │ │ ├── cmd311.txt │ │ ├── cmd312.txt │ │ ├── cmd313.txt │ │ ├── cmd314.txt │ │ ├── cmd315.txt │ │ ├── cmd316.txt │ │ ├── configure_database.sql │ │ ├── requirements.txt │ │ └── service │ │ ├── .DS_Store │ │ ├── app.py │ │ ├── cli.py │ │ ├── config.py │ │ ├── helpers.py │ │ ├── http_status.py │ │ ├── migrations │ │ ├── README │ │ ├── __pycache__ │ │ │ └── env.cpython-36.pyc │ │ ├── alembic.ini │ │ ├── env.py │ │ ├── script.py.mako │ │ └── versions │ │ │ ├── 03f5d0f0642a_.py │ │ │ └── __pycache__ │ │ │ └── 03f5d0f0642a_.cpython-36.pyc │ │ ├── models.py │ │ └── views.py └── restful_python_2_03_02 │ ├── .DS_Store │ └── Flask01 │ ├── .DS_Store │ ├── cmd201.txt │ ├── cmd202.txt │ ├── cmd203.txt │ ├── cmd204.txt │ ├── cmd205.txt │ ├── cmd206.txt │ ├── cmd207.txt │ ├── cmd208.txt │ ├── cmd301.txt │ ├── cmd302.txt │ ├── cmd303.txt │ ├── cmd304.txt │ ├── cmd305.txt │ ├── cmd306.txt │ ├── cmd307.txt │ ├── cmd308.txt │ ├── cmd309.txt │ ├── cmd310.txt │ ├── cmd311.txt │ ├── cmd312.txt │ ├── cmd313.txt │ ├── cmd314.txt │ ├── cmd315.txt │ ├── cmd316.txt │ ├── cmd317.txt │ ├── cmd318.txt │ ├── cmd319.txt │ ├── cmd320.txt │ ├── cmd321.txt │ ├── cmd322.txt │ ├── cmd323.txt │ ├── cmd324.txt │ ├── configure_database.sql │ ├── requirements.txt │ └── service │ ├── .DS_Store │ ├── app.py │ ├── cli.py │ ├── config.py │ ├── helpers.py │ ├── http_status.py │ ├── migrations │ ├── .DS_Store │ ├── README │ ├── alembic.ini │ ├── env.py │ ├── script.py.mako │ └── versions │ │ ├── .DS_Store │ │ ├── 03f5d0f0642a_.py │ │ └── 2029a0a9475f_.py │ ├── models.py │ └── views.py ├── Chapter04 ├── __MACOSX │ ├── restful_python_2_04_01 │ │ ├── ._.DS_Store │ │ └── Flask01 │ │ │ ├── ._.DS_Store │ │ │ ├── ._cmd201.txt │ │ │ ├── ._cmd202.txt │ │ │ ├── ._cmd203.txt │ │ │ ├── ._cmd204.txt │ │ │ ├── ._cmd205.txt │ │ │ ├── ._cmd206.txt │ │ │ ├── ._cmd207.txt │ │ │ ├── ._cmd208.txt │ │ │ ├── ._cmd301.txt │ │ │ ├── ._cmd302.txt │ │ │ ├── ._cmd303.txt │ │ │ ├── ._cmd304.txt │ │ │ ├── ._cmd305.txt │ │ │ ├── ._cmd306.txt │ │ │ ├── ._cmd307.txt │ │ │ ├── ._cmd308.txt │ │ │ ├── ._cmd309.txt │ │ │ ├── ._cmd310.txt │ │ │ ├── ._cmd311.txt │ │ │ ├── ._cmd312.txt │ │ │ ├── ._cmd313.txt │ │ │ ├── ._cmd314.txt │ │ │ ├── ._cmd315.txt │ │ │ ├── ._cmd316.txt │ │ │ ├── ._cmd317.txt │ │ │ ├── ._cmd318.txt │ │ │ ├── ._cmd319.txt │ │ │ ├── ._cmd320.txt │ │ │ ├── ._cmd321.txt │ │ │ ├── ._cmd322.txt │ │ │ ├── ._cmd323.txt │ │ │ ├── ._cmd324.txt │ │ │ ├── ._configure_database.sql │ │ │ ├── ._configure_test_database.sql │ │ │ ├── ._requirements.txt │ │ │ └── service │ │ │ ├── ._.DS_Store │ │ │ ├── ._app.py │ │ │ ├── ._config.py │ │ │ ├── ._conftest.py │ │ │ ├── ._helpers.py │ │ │ ├── ._http_status.py │ │ │ ├── ._models.py │ │ │ ├── ._setup.cfg │ │ │ ├── ._test_config.py │ │ │ ├── ._views.py │ │ │ ├── htmlcov │ │ │ └── ._index.html │ │ │ ├── migrations │ │ │ └── ._.DS_Store │ │ │ └── tests │ │ │ ├── ._.DS_Store │ │ │ └── ._test_views.py │ └── restful_python_2_04_02 │ │ ├── ._.DS_Store │ │ └── Flask01 │ │ ├── ._.DS_Store │ │ ├── ._cmd201.txt │ │ ├── ._cmd202.txt │ │ ├── ._cmd203.txt │ │ ├── ._cmd204.txt │ │ ├── ._cmd205.txt │ │ ├── ._cmd206.txt │ │ ├── ._cmd207.txt │ │ ├── ._cmd208.txt │ │ ├── ._cmd301.txt │ │ ├── ._cmd302.txt │ │ ├── ._cmd303.txt │ │ ├── ._cmd304.txt │ │ ├── ._cmd305.txt │ │ ├── ._cmd306.txt │ │ ├── ._cmd307.txt │ │ ├── ._cmd308.txt │ │ ├── ._cmd309.txt │ │ ├── ._cmd310.txt │ │ ├── ._cmd311.txt │ │ ├── ._cmd312.txt │ │ ├── ._cmd313.txt │ │ ├── ._cmd314.txt │ │ ├── ._cmd315.txt │ │ ├── ._cmd316.txt │ │ ├── ._cmd317.txt │ │ ├── ._cmd318.txt │ │ ├── ._cmd319.txt │ │ ├── ._cmd320.txt │ │ ├── ._cmd321.txt │ │ ├── ._cmd322.txt │ │ ├── ._cmd323.txt │ │ ├── ._cmd324.txt │ │ ├── ._configure_database.sql │ │ ├── ._configure_test_database.sql │ │ ├── ._requirements.txt │ │ └── service │ │ ├── ._.DS_Store │ │ ├── ._app.py │ │ ├── ._config.py │ │ ├── ._conftest.py │ │ ├── ._helpers.py │ │ ├── ._http_status.py │ │ ├── ._models.py │ │ ├── ._setup.cfg │ │ ├── ._test_config.py │ │ ├── ._views.py │ │ ├── htmlcov │ │ └── ._index.html │ │ ├── migrations │ │ └── ._.DS_Store │ │ └── tests │ │ ├── ._.DS_Store │ │ └── ._test_views.py ├── restful_python_2_04_01 │ ├── .DS_Store │ └── Flask01 │ │ ├── .DS_Store │ │ ├── .coverage │ │ ├── cmd201.txt │ │ ├── cmd202.txt │ │ ├── cmd203.txt │ │ ├── cmd204.txt │ │ ├── cmd205.txt │ │ ├── cmd206.txt │ │ ├── cmd207.txt │ │ ├── cmd208.txt │ │ ├── cmd301.txt │ │ ├── cmd302.txt │ │ ├── cmd303.txt │ │ ├── cmd304.txt │ │ ├── cmd305.txt │ │ ├── cmd306.txt │ │ ├── cmd307.txt │ │ ├── cmd308.txt │ │ ├── cmd309.txt │ │ ├── cmd310.txt │ │ ├── cmd311.txt │ │ ├── cmd312.txt │ │ ├── cmd313.txt │ │ ├── cmd314.txt │ │ ├── cmd315.txt │ │ ├── cmd316.txt │ │ ├── cmd317.txt │ │ ├── cmd318.txt │ │ ├── cmd319.txt │ │ ├── cmd320.txt │ │ ├── cmd321.txt │ │ ├── cmd322.txt │ │ ├── cmd323.txt │ │ ├── cmd324.txt │ │ ├── configure_database.sql │ │ ├── configure_test_database.sql │ │ ├── pip-selfcheck.json │ │ ├── requirements.txt │ │ └── service │ │ ├── .DS_Store │ │ ├── .coverage │ │ ├── app.py │ │ ├── config.py │ │ ├── conftest.py │ │ ├── helpers.py │ │ ├── htmlcov │ │ ├── coverage_html.js │ │ ├── index.html │ │ ├── jquery.ba-throttle-debounce.min.js │ │ ├── jquery.hotkeys.js │ │ ├── jquery.isonscreen.js │ │ ├── jquery.min.js │ │ ├── jquery.tablesorter.min.js │ │ ├── keybd_closed.png │ │ ├── keybd_open.png │ │ ├── models_py.html │ │ ├── status.json │ │ ├── style.css │ │ └── views_py.html │ │ ├── http_status.py │ │ ├── migrations │ │ ├── .DS_Store │ │ ├── README │ │ ├── alembic.ini │ │ ├── env.py │ │ ├── script.py.mako │ │ └── versions │ │ │ ├── 03f5d0f0642a_.py │ │ │ ├── 2029a0a9475f_.py │ │ │ └── __pycache__ │ │ │ ├── 03f5d0f0642a_.cpython-36.pyc │ │ │ └── 2029a0a9475f_.cpython-36.pyc │ │ ├── models.py │ │ ├── setup.cfg │ │ ├── test_config.py │ │ ├── tests │ │ ├── .DS_Store │ │ └── test_views.py │ │ └── views.py └── restful_python_2_04_02 │ ├── .DS_Store │ └── Flask01 │ ├── .DS_Store │ ├── .coverage │ ├── cmd201.txt │ ├── cmd202.txt │ ├── cmd203.txt │ ├── cmd204.txt │ ├── cmd205.txt │ ├── cmd206.txt │ ├── cmd207.txt │ ├── cmd208.txt │ ├── cmd301.txt │ ├── cmd302.txt │ ├── cmd303.txt │ ├── cmd304.txt │ ├── cmd305.txt │ ├── cmd306.txt │ ├── cmd307.txt │ ├── cmd308.txt │ ├── cmd309.txt │ ├── cmd310.txt │ ├── cmd311.txt │ ├── cmd312.txt │ ├── cmd313.txt │ ├── cmd314.txt │ ├── cmd315.txt │ ├── cmd316.txt │ ├── cmd317.txt │ ├── cmd318.txt │ ├── cmd319.txt │ ├── cmd320.txt │ ├── cmd321.txt │ ├── cmd322.txt │ ├── cmd323.txt │ ├── cmd324.txt │ ├── configure_database.sql │ ├── configure_test_database.sql │ ├── pip-selfcheck.json │ ├── requirements.txt │ └── service │ ├── .DS_Store │ ├── .coverage │ ├── app.py │ ├── config.py │ ├── conftest.py │ ├── helpers.py │ ├── htmlcov │ ├── coverage_html.js │ ├── index.html │ ├── jquery.ba-throttle-debounce.min.js │ ├── jquery.hotkeys.js │ ├── jquery.isonscreen.js │ ├── jquery.min.js │ ├── jquery.tablesorter.min.js │ ├── keybd_closed.png │ ├── keybd_open.png │ ├── models_py.html │ ├── status.json │ ├── style.css │ └── views_py.html │ ├── http_status.py │ ├── migrations │ ├── .DS_Store │ ├── README │ ├── alembic.ini │ ├── env.py │ ├── script.py.mako │ └── versions │ │ ├── 03f5d0f0642a_.py │ │ ├── 2029a0a9475f_.py │ │ └── __pycache__ │ │ ├── 03f5d0f0642a_.cpython-36.pyc │ │ └── 2029a0a9475f_.cpython-36.pyc │ ├── models.py │ ├── setup.cfg │ ├── test_config.py │ ├── tests │ ├── .DS_Store │ └── test_views.py │ └── views.py ├── Chapter05 ├── __MACOSX │ └── restful_python_2_05 │ │ ├── ._.DS_Store │ │ └── Django01 │ │ ├── ._.DS_Store │ │ ├── ._requirements.txt │ │ ├── cmd │ │ ├── ._check_contents_sqlite3_games_game_table.txt │ │ ├── ._cmd01.txt │ │ ├── ._cmd02.txt │ │ ├── ._cmd03.txt │ │ ├── ._cmd04.txt │ │ ├── ._cmd05.txt │ │ ├── ._cmd06.txt │ │ ├── ._cmd07.txt │ │ ├── ._cmd08.txt │ │ ├── ._cmd09.txt │ │ ├── ._cmd10.txt │ │ ├── ._cmd11.txt │ │ ├── ._cmd12.txt │ │ ├── ._cmd13.txt │ │ ├── ._cmd14.txt │ │ ├── ._cmd15.txt │ │ ├── ._list_sqlite3_tables.txt │ │ ├── ._retrieve_sql_sqlite3_games_game_table.txt │ │ └── ._serializers_test_01.py │ │ └── games_service │ │ ├── ._.DS_Store │ │ ├── games │ │ ├── ._.DS_Store │ │ ├── ._serializers.py │ │ ├── ._urls.py │ │ └── migrations │ │ │ └── ._.DS_Store │ │ └── games_service │ │ └── ._.DS_Store └── restful_python_2_05 │ ├── .DS_Store │ └── Django01 │ ├── .DS_Store │ ├── cmd │ ├── check_contents_sqlite3_games_game_table.txt │ ├── cmd01.txt │ ├── cmd02.txt │ ├── cmd03.txt │ ├── cmd04.txt │ ├── cmd05.txt │ ├── cmd06.txt │ ├── cmd07.txt │ ├── cmd08.txt │ ├── cmd09.txt │ ├── cmd10.txt │ ├── cmd11.txt │ ├── cmd12.txt │ ├── cmd13.txt │ ├── cmd14.txt │ ├── cmd15.txt │ ├── list_sqlite3_tables.txt │ ├── retrieve_sql_sqlite3_games_game_table.txt │ └── serializers_test_01.py │ ├── games_service │ ├── .DS_Store │ ├── games │ │ ├── .DS_Store │ │ ├── __init__.py │ │ ├── admin.py │ │ ├── apps.py │ │ ├── migrations │ │ │ ├── .DS_Store │ │ │ ├── 0001_initial.py │ │ │ └── __init__.py │ │ ├── models.py │ │ ├── serializers.py │ │ ├── tests.py │ │ ├── urls.py │ │ └── views.py │ ├── games_service │ │ ├── .DS_Store │ │ ├── __init__.py │ │ ├── settings.py │ │ ├── urls.py │ │ └── wsgi.py │ └── manage.py │ ├── pip-selfcheck.json │ └── requirements.txt ├── Chapter06 ├── __MACOSX │ └── restful_python_2_06_01 │ │ ├── ._.DS_Store │ │ └── Django01 │ │ ├── ._.DS_Store │ │ ├── ._requirements.txt │ │ ├── cmd │ │ ├── ._check_contents_sqlite3_games_game_table.txt │ │ ├── ._check_tables_contents.sql │ │ ├── ._cmd601.txt │ │ ├── ._cmd602.txt │ │ ├── ._cmd603.txt │ │ ├── ._cmd604.txt │ │ ├── ._cmd605.txt │ │ ├── ._cmd606.txt │ │ ├── ._cmd607.txt │ │ ├── ._cmd608.txt │ │ ├── ._cmd609.txt │ │ ├── ._cmd610.txt │ │ ├── ._cmd611.txt │ │ ├── ._cmd612.txt │ │ ├── ._cmd613.txt │ │ ├── ._cmd614.txt │ │ ├── ._cmd615.txt │ │ ├── ._cmd616.txt │ │ ├── ._cmd617.txt │ │ ├── ._cmd618.txt │ │ ├── ._cmd619.txt │ │ ├── ._cmd620.txt │ │ ├── ._cmd621.txt │ │ ├── ._cmd622.txt │ │ ├── ._cmd623.txt │ │ ├── ._cmd624.txt │ │ ├── ._cmd625.txt │ │ ├── ._cmd626.txt │ │ ├── ._cmd627.txt │ │ ├── ._cmd628.txt │ │ ├── ._configure_django_database.sql │ │ ├── ._list_database_tables.sql │ │ ├── ._list_sqlite3_tables.txt │ │ ├── ._retrieve_sql_sqlite3_games_game_table.txt │ │ └── ._serializers_test_01.py │ │ └── games_service │ │ ├── ._.DS_Store │ │ ├── games │ │ ├── ._.DS_Store │ │ ├── ._serializers.py │ │ ├── ._urls.py │ │ └── migrations │ │ │ └── ._.DS_Store │ │ └── games_service │ │ └── ._.DS_Store └── restful_python_2_06_01 │ ├── .DS_Store │ └── Django01 │ ├── .DS_Store │ ├── cmd │ ├── check_contents_sqlite3_games_game_table.txt │ ├── check_tables_contents.sql │ ├── cmd601.txt │ ├── cmd602.txt │ ├── cmd603.txt │ ├── cmd604.txt │ ├── cmd605.txt │ ├── cmd606.txt │ ├── cmd607.txt │ ├── cmd608.txt │ ├── cmd609.txt │ ├── cmd610.txt │ ├── cmd611.txt │ ├── cmd612.txt │ ├── cmd613.txt │ ├── cmd614.txt │ ├── cmd615.txt │ ├── cmd616.txt │ ├── cmd617.txt │ ├── cmd618.txt │ ├── cmd619.txt │ ├── cmd620.txt │ ├── cmd621.txt │ ├── cmd622.txt │ ├── cmd623.txt │ ├── cmd624.txt │ ├── cmd625.txt │ ├── cmd626.txt │ ├── cmd627.txt │ ├── cmd628.txt │ ├── configure_django_database.sql │ ├── list_database_tables.sql │ ├── list_sqlite3_tables.txt │ ├── retrieve_sql_sqlite3_games_game_table.txt │ └── serializers_test_01.py │ ├── games_service │ ├── .DS_Store │ ├── db.sqlite3 │ ├── games │ │ ├── .DS_Store │ │ ├── __init__.py │ │ ├── admin.py │ │ ├── apps.py │ │ ├── migrations │ │ │ ├── .DS_Store │ │ │ ├── 0001_initial.py │ │ │ └── __init__.py │ │ ├── models.py │ │ ├── serializers.py │ │ ├── tests.py │ │ ├── urls.py │ │ └── views.py │ ├── games_service │ │ ├── .DS_Store │ │ ├── __init__.py │ │ ├── settings.py │ │ ├── urls.py │ │ └── wsgi.py │ └── manage.py │ ├── pip-selfcheck.json │ └── requirements.txt ├── Chapter07 ├── __MACOSX │ ├── restful_python_2_07_01 │ │ ├── ._.DS_Store │ │ └── Django01 │ │ │ ├── ._.DS_Store │ │ │ ├── ._requirements.txt │ │ │ ├── cmd │ │ │ ├── ._.DS_Store │ │ │ ├── ._check_contents_sqlite3_games_game_table.txt │ │ │ ├── ._check_tables_contents.sql │ │ │ ├── ._check_tables_indexes.sql │ │ │ ├── ._cmd701.txt │ │ │ ├── ._cmd702.txt │ │ │ ├── ._cmd703.txt │ │ │ ├── ._cmd704.txt │ │ │ ├── ._cmd705.txt │ │ │ ├── ._cmd706.txt │ │ │ ├── ._cmd707.txt │ │ │ ├── ._cmd708.txt │ │ │ ├── ._cmd709.txt │ │ │ ├── ._cmd710.txt │ │ │ ├── ._cmd711.txt │ │ │ ├── ._cmd712.txt │ │ │ ├── ._cmd713.txt │ │ │ ├── ._cmd714.txt │ │ │ ├── ._cmd715.txt │ │ │ ├── ._cmd716.txt │ │ │ ├── ._cmd717.txt │ │ │ ├── ._cmd718.txt │ │ │ ├── ._configure_django_database.sql │ │ │ ├── ._list_database_tables.sql │ │ │ ├── ._list_sqlite3_tables.txt │ │ │ ├── ._retrieve_sql_sqlite3_games_game_table.txt │ │ │ └── ._serializers_test_01.py │ │ │ └── games_service │ │ │ ├── ._.DS_Store │ │ │ ├── games │ │ │ ├── ._.DS_Store │ │ │ ├── ._serializers.py │ │ │ └── ._urls.py │ │ │ └── games_service │ │ │ ├── ._.DS_Store │ │ │ └── ._settings.py │ ├── restful_python_2_07_02 │ │ ├── ._.DS_Store │ │ └── Django01 │ │ │ ├── ._.DS_Store │ │ │ ├── ._requirements.txt │ │ │ ├── cmd │ │ │ ├── ._.DS_Store │ │ │ ├── ._check_contents_sqlite3_games_game_table.txt │ │ │ ├── ._check_tables_contents.sql │ │ │ ├── ._check_tables_indexes.sql │ │ │ ├── ._cmd701.txt │ │ │ ├── ._cmd702.txt │ │ │ ├── ._cmd703.txt │ │ │ ├── ._cmd704.txt │ │ │ ├── ._cmd705.txt │ │ │ ├── ._cmd706.txt │ │ │ ├── ._cmd707.txt │ │ │ ├── ._cmd708.txt │ │ │ ├── ._cmd709.txt │ │ │ ├── ._cmd710.txt │ │ │ ├── ._cmd711.txt │ │ │ ├── ._cmd712.txt │ │ │ ├── ._cmd713.txt │ │ │ ├── ._cmd714.txt │ │ │ ├── ._cmd715.txt │ │ │ ├── ._cmd716.txt │ │ │ ├── ._cmd717.txt │ │ │ ├── ._cmd718.txt │ │ │ ├── ._configure_django_database.sql │ │ │ ├── ._list_database_tables.sql │ │ │ ├── ._list_sqlite3_tables.txt │ │ │ ├── ._retrieve_sql_sqlite3_games_game_table.txt │ │ │ └── ._serializers_test_01.py │ │ │ └── games_service │ │ │ ├── ._.DS_Store │ │ │ ├── games │ │ │ ├── ._.DS_Store │ │ │ ├── ._serializers.py │ │ │ └── ._urls.py │ │ │ └── games_service │ │ │ └── ._.DS_Store │ ├── restful_python_2_07_03 │ │ ├── ._.DS_Store │ │ └── Django01 │ │ │ ├── ._.DS_Store │ │ │ ├── ._requirements.txt │ │ │ ├── cmd │ │ │ ├── ._check_contents_sqlite3_games_game_table.txt │ │ │ ├── ._check_tables_contents.sql │ │ │ ├── ._check_tables_indexes.sql │ │ │ ├── ._cmd601.txt │ │ │ ├── ._cmd602.txt │ │ │ ├── ._cmd603.txt │ │ │ ├── ._cmd604.txt │ │ │ ├── ._cmd605.txt │ │ │ ├── ._cmd606.txt │ │ │ ├── ._cmd607.txt │ │ │ ├── ._cmd608.txt │ │ │ ├── ._cmd609.txt │ │ │ ├── ._cmd610.txt │ │ │ ├── ._cmd611.txt │ │ │ ├── ._cmd612.txt │ │ │ ├── ._cmd613.txt │ │ │ ├── ._cmd614.txt │ │ │ ├── ._cmd615.txt │ │ │ ├── ._cmd616.txt │ │ │ ├── ._cmd617.txt │ │ │ ├── ._cmd618.txt │ │ │ ├── ._cmd619.txt │ │ │ ├── ._cmd620.txt │ │ │ ├── ._cmd621.txt │ │ │ ├── ._cmd622.txt │ │ │ ├── ._cmd623.txt │ │ │ ├── ._cmd624.txt │ │ │ ├── ._cmd625.txt │ │ │ ├── ._cmd626.txt │ │ │ ├── ._cmd627.txt │ │ │ ├── ._cmd628.txt │ │ │ ├── ._cmd701.txt │ │ │ ├── ._cmd702.txt │ │ │ ├── ._cmd703.txt │ │ │ ├── ._cmd704.txt │ │ │ ├── ._cmd705.txt │ │ │ ├── ._cmd706.txt │ │ │ ├── ._cmd707.txt │ │ │ ├── ._cmd708.txt │ │ │ ├── ._cmd709.txt │ │ │ ├── ._cmd710.txt │ │ │ ├── ._cmd711.txt │ │ │ ├── ._cmd712.txt │ │ │ ├── ._cmd713.txt │ │ │ ├── ._cmd714.txt │ │ │ ├── ._cmd715.txt │ │ │ ├── ._cmd716.txt │ │ │ ├── ._cmd717.txt │ │ │ ├── ._cmd718.txt │ │ │ ├── ._cmd719.txt │ │ │ ├── ._cmd720.txt │ │ │ ├── ._configure_django_database.sql │ │ │ ├── ._list_database_tables.sql │ │ │ ├── ._list_sqlite3_tables.txt │ │ │ ├── ._retrieve_sql_sqlite3_games_game_table.txt │ │ │ └── ._serializers_test_01.py │ │ │ └── games_service │ │ │ ├── ._.DS_Store │ │ │ ├── games │ │ │ ├── ._.DS_Store │ │ │ ├── ._max_limit_pagination.py │ │ │ ├── ._serializers.py │ │ │ └── ._urls.py │ │ │ └── games_service │ │ │ └── ._.DS_Store │ └── restful_python_2_07_04 │ │ ├── ._.DS_Store │ │ └── Django01 │ │ ├── ._.DS_Store │ │ ├── ._requirements.txt │ │ ├── cmd │ │ ├── ._.DS_Store │ │ ├── ._check_contents_sqlite3_games_game_table.txt │ │ ├── ._check_tables_contents.sql │ │ ├── ._check_tables_indexes.sql │ │ ├── ._cmd701.txt │ │ ├── ._cmd702.txt │ │ ├── ._cmd703.txt │ │ ├── ._cmd704.txt │ │ ├── ._cmd705.txt │ │ ├── ._cmd706.txt │ │ ├── ._cmd707.txt │ │ ├── ._cmd708.txt │ │ ├── ._cmd709.txt │ │ ├── ._cmd710.txt │ │ ├── ._cmd711.txt │ │ ├── ._cmd712.txt │ │ ├── ._cmd713.txt │ │ ├── ._cmd714.txt │ │ ├── ._cmd715.txt │ │ ├── ._cmd716.txt │ │ ├── ._cmd717.txt │ │ ├── ._cmd718.txt │ │ ├── ._cmd719.txt │ │ ├── ._cmd720.txt │ │ ├── ._cmd721.txt │ │ ├── ._cmd722.txt │ │ ├── ._cmd723.txt │ │ ├── ._cmd724.txt │ │ ├── ._cmd725.txt │ │ ├── ._cmd726.txt │ │ ├── ._cmd727.txt │ │ ├── ._cmd728.txt │ │ ├── ._configure_django_database.sql │ │ ├── ._create_test_user.py │ │ ├── ._list_database_tables.sql │ │ ├── ._list_sqlite3_tables.txt │ │ ├── ._retrieve_id_for_django_superuser.sql │ │ ├── ._retrieve_sql_sqlite3_games_game_table.txt │ │ └── ._serializers_test_01.py │ │ └── games_service │ │ ├── ._.DS_Store │ │ ├── games │ │ ├── ._.DS_Store │ │ ├── ._customized_permissions.py │ │ ├── ._max_limit_pagination.py │ │ ├── ._serializers.py │ │ ├── ._urls.py │ │ └── migrations │ │ │ └── ._.DS_Store │ │ └── games_service │ │ └── ._.DS_Store ├── restful_python_2_07_01 │ ├── .DS_Store │ └── Django01 │ │ ├── .DS_Store │ │ ├── cmd │ │ ├── .DS_Store │ │ ├── check_contents_sqlite3_games_game_table.txt │ │ ├── check_tables_contents.sql │ │ ├── check_tables_indexes.sql │ │ ├── cmd701.txt │ │ ├── cmd702.txt │ │ ├── cmd703.txt │ │ ├── cmd704.txt │ │ ├── cmd705.txt │ │ ├── cmd706.txt │ │ ├── cmd707.txt │ │ ├── cmd708.txt │ │ ├── cmd709.txt │ │ ├── cmd710.txt │ │ ├── cmd711.txt │ │ ├── cmd712.txt │ │ ├── cmd713.txt │ │ ├── cmd714.txt │ │ ├── cmd715.txt │ │ ├── cmd716.txt │ │ ├── cmd717.txt │ │ ├── cmd718.txt │ │ ├── configure_django_database.sql │ │ ├── list_database_tables.sql │ │ ├── list_sqlite3_tables.txt │ │ ├── retrieve_sql_sqlite3_games_game_table.txt │ │ └── serializers_test_01.py │ │ ├── games_service │ │ ├── .DS_Store │ │ ├── games │ │ │ ├── .DS_Store │ │ │ ├── __init__.py │ │ │ ├── admin.py │ │ │ ├── apps.py │ │ │ ├── migrations │ │ │ │ ├── 0001_initial.py │ │ │ │ ├── 0002_auto_20181026_0450.py │ │ │ │ ├── __init__.py │ │ │ │ └── __pycache__ │ │ │ │ │ ├── 0001_initial.cpython-36.pyc │ │ │ │ │ ├── 0002_auto_20181026_0450.cpython-36.pyc │ │ │ │ │ └── __init__.cpython-36.pyc │ │ │ ├── models.py │ │ │ ├── serializers.py │ │ │ ├── tests.py │ │ │ ├── urls.py │ │ │ └── views.py │ │ ├── games_service │ │ │ ├── .DS_Store │ │ │ ├── __init__.py │ │ │ ├── settings.py │ │ │ ├── urls.py │ │ │ └── wsgi.py │ │ └── manage.py │ │ ├── pip-selfcheck.json │ │ └── requirements.txt ├── restful_python_2_07_02 │ ├── .DS_Store │ └── Django01 │ │ ├── .DS_Store │ │ ├── cmd │ │ ├── .DS_Store │ │ ├── check_contents_sqlite3_games_game_table.txt │ │ ├── check_tables_contents.sql │ │ ├── check_tables_indexes.sql │ │ ├── cmd701.txt │ │ ├── cmd702.txt │ │ ├── cmd703.txt │ │ ├── cmd704.txt │ │ ├── cmd705.txt │ │ ├── cmd706.txt │ │ ├── cmd707.txt │ │ ├── cmd708.txt │ │ ├── cmd709.txt │ │ ├── cmd710.txt │ │ ├── cmd711.txt │ │ ├── cmd712.txt │ │ ├── cmd713.txt │ │ ├── cmd714.txt │ │ ├── cmd715.txt │ │ ├── cmd716.txt │ │ ├── cmd717.txt │ │ ├── cmd718.txt │ │ ├── configure_django_database.sql │ │ ├── list_database_tables.sql │ │ ├── list_sqlite3_tables.txt │ │ ├── retrieve_sql_sqlite3_games_game_table.txt │ │ └── serializers_test_01.py │ │ ├── games_service │ │ ├── .DS_Store │ │ ├── games │ │ │ ├── .DS_Store │ │ │ ├── __init__.py │ │ │ ├── admin.py │ │ │ ├── apps.py │ │ │ ├── migrations │ │ │ │ ├── 0001_initial.py │ │ │ │ ├── 0002_auto_20181026_0450.py │ │ │ │ ├── __init__.py │ │ │ │ └── __pycache__ │ │ │ │ │ ├── 0001_initial.cpython-36.pyc │ │ │ │ │ ├── 0002_auto_20181026_0450.cpython-36.pyc │ │ │ │ │ └── __init__.cpython-36.pyc │ │ │ ├── models.py │ │ │ ├── serializers.py │ │ │ ├── tests.py │ │ │ ├── urls.py │ │ │ └── views.py │ │ ├── games_service │ │ │ ├── .DS_Store │ │ │ ├── __init__.py │ │ │ ├── settings.py │ │ │ ├── urls.py │ │ │ └── wsgi.py │ │ └── manage.py │ │ ├── pip-selfcheck.json │ │ └── requirements.txt ├── restful_python_2_07_03 │ ├── .DS_Store │ └── Django01 │ │ ├── .DS_Store │ │ ├── cmd │ │ ├── check_contents_sqlite3_games_game_table.txt │ │ ├── check_tables_contents.sql │ │ ├── check_tables_indexes.sql │ │ ├── cmd601.txt │ │ ├── cmd602.txt │ │ ├── cmd603.txt │ │ ├── cmd604.txt │ │ ├── cmd605.txt │ │ ├── cmd606.txt │ │ ├── cmd607.txt │ │ ├── cmd608.txt │ │ ├── cmd609.txt │ │ ├── cmd610.txt │ │ ├── cmd611.txt │ │ ├── cmd612.txt │ │ ├── cmd613.txt │ │ ├── cmd614.txt │ │ ├── cmd615.txt │ │ ├── cmd616.txt │ │ ├── cmd617.txt │ │ ├── cmd618.txt │ │ ├── cmd619.txt │ │ ├── cmd620.txt │ │ ├── cmd621.txt │ │ ├── cmd622.txt │ │ ├── cmd623.txt │ │ ├── cmd624.txt │ │ ├── cmd625.txt │ │ ├── cmd626.txt │ │ ├── cmd627.txt │ │ ├── cmd628.txt │ │ ├── cmd701.txt │ │ ├── cmd702.txt │ │ ├── cmd703.txt │ │ ├── cmd704.txt │ │ ├── cmd705.txt │ │ ├── cmd706.txt │ │ ├── cmd707.txt │ │ ├── cmd708.txt │ │ ├── cmd709.txt │ │ ├── cmd710.txt │ │ ├── cmd711.txt │ │ ├── cmd712.txt │ │ ├── cmd713.txt │ │ ├── cmd714.txt │ │ ├── cmd715.txt │ │ ├── cmd716.txt │ │ ├── cmd717.txt │ │ ├── cmd718.txt │ │ ├── cmd719.txt │ │ ├── cmd720.txt │ │ ├── configure_django_database.sql │ │ ├── list_database_tables.sql │ │ ├── list_sqlite3_tables.txt │ │ ├── retrieve_sql_sqlite3_games_game_table.txt │ │ └── serializers_test_01.py │ │ ├── games_service │ │ ├── .DS_Store │ │ ├── games │ │ │ ├── .DS_Store │ │ │ ├── __init__.py │ │ │ ├── admin.py │ │ │ ├── apps.py │ │ │ ├── max_limit_pagination.py │ │ │ ├── migrations │ │ │ │ ├── 0001_initial.py │ │ │ │ ├── 0002_auto_20181026_0450.py │ │ │ │ ├── __init__.py │ │ │ │ └── __pycache__ │ │ │ │ │ ├── 0001_initial.cpython-36.pyc │ │ │ │ │ ├── 0002_auto_20181026_0450.cpython-36.pyc │ │ │ │ │ └── __init__.cpython-36.pyc │ │ │ ├── models.py │ │ │ ├── serializers.py │ │ │ ├── tests.py │ │ │ ├── urls.py │ │ │ └── views.py │ │ ├── games_service │ │ │ ├── .DS_Store │ │ │ ├── __init__.py │ │ │ ├── settings.py │ │ │ ├── urls.py │ │ │ └── wsgi.py │ │ └── manage.py │ │ ├── pip-selfcheck.json │ │ └── requirements.txt └── restful_python_2_07_04 │ ├── .DS_Store │ └── Django01 │ ├── .DS_Store │ ├── cmd │ ├── .DS_Store │ ├── check_contents_sqlite3_games_game_table.txt │ ├── check_tables_contents.sql │ ├── check_tables_indexes.sql │ ├── cmd701.txt │ ├── cmd702.txt │ ├── cmd703.txt │ ├── cmd704.txt │ ├── cmd705.txt │ ├── cmd706.txt │ ├── cmd707.txt │ ├── cmd708.txt │ ├── cmd709.txt │ ├── cmd710.txt │ ├── cmd711.txt │ ├── cmd712.txt │ ├── cmd713.txt │ ├── cmd714.txt │ ├── cmd715.txt │ ├── cmd716.txt │ ├── cmd717.txt │ ├── cmd718.txt │ ├── cmd719.txt │ ├── cmd720.txt │ ├── cmd721.txt │ ├── cmd722.txt │ ├── cmd723.txt │ ├── cmd724.txt │ ├── cmd725.txt │ ├── cmd726.txt │ ├── cmd727.txt │ ├── cmd728.txt │ ├── configure_django_database.sql │ ├── create_test_user.py │ ├── list_database_tables.sql │ ├── list_sqlite3_tables.txt │ ├── retrieve_id_for_django_superuser.sql │ ├── retrieve_sql_sqlite3_games_game_table.txt │ └── serializers_test_01.py │ ├── games_service │ ├── .DS_Store │ ├── games │ │ ├── .DS_Store │ │ ├── __init__.py │ │ ├── admin.py │ │ ├── apps.py │ │ ├── customized_permissions.py │ │ ├── max_limit_pagination.py │ │ ├── migrations │ │ │ ├── .DS_Store │ │ │ ├── 0001_initial.py │ │ │ ├── 0002_auto_20181026_0450.py │ │ │ ├── 0003_game_owner.py │ │ │ └── __init__.py │ │ ├── models.py │ │ ├── serializers.py │ │ ├── tests.py │ │ ├── urls.py │ │ └── views.py │ ├── games_service │ │ ├── .DS_Store │ │ ├── __init__.py │ │ ├── settings.py │ │ ├── urls.py │ │ └── wsgi.py │ └── manage.py │ ├── pip-selfcheck.json │ └── requirements.txt ├── Chapter08 ├── __MACOSX │ ├── restful_python_2_08_01 │ │ ├── ._.DS_Store │ │ └── Django01 │ │ │ ├── ._.DS_Store │ │ │ ├── ._requirements.txt │ │ │ ├── cmd │ │ │ ├── ._.DS_Store │ │ │ ├── ._check_contents_sqlite3_games_game_table.txt │ │ │ ├── ._check_tables_contents.sql │ │ │ ├── ._check_tables_indexes.sql │ │ │ ├── ._cmd801.txt │ │ │ ├── ._cmd802.txt │ │ │ ├── ._cmd803.txt │ │ │ ├── ._cmd804.txt │ │ │ ├── ._cmd805.txt │ │ │ ├── ._cmd806.txt │ │ │ ├── ._cmd807.txt │ │ │ ├── ._cmd808.txt │ │ │ ├── ._cmd809.txt │ │ │ ├── ._cmd810.txt │ │ │ ├── ._configure_django_database.sql │ │ │ ├── ._create_test_user.py │ │ │ ├── ._list_database_tables.sql │ │ │ ├── ._list_sqlite3_tables.txt │ │ │ ├── ._retrieve_id_for_django_superuser.sql │ │ │ ├── ._retrieve_sql_sqlite3_games_game_table.txt │ │ │ └── ._serializers_test_01.py │ │ │ └── games_service │ │ │ ├── ._.DS_Store │ │ │ ├── games │ │ │ ├── ._.DS_Store │ │ │ ├── ._customized_permissions.py │ │ │ ├── ._max_limit_pagination.py │ │ │ ├── ._serializers.py │ │ │ ├── ._urls.py │ │ │ ├── ._views.py │ │ │ └── migrations │ │ │ │ └── ._.DS_Store │ │ │ └── games_service │ │ │ └── ._.DS_Store │ ├── restful_python_2_08_02 │ │ ├── ._.DS_Store │ │ └── Django01 │ │ │ ├── ._.DS_Store │ │ │ ├── ._requirements.txt │ │ │ ├── cmd │ │ │ ├── ._.DS_Store │ │ │ ├── ._cmd801.txt │ │ │ ├── ._cmd802.txt │ │ │ ├── ._cmd803.txt │ │ │ ├── ._cmd804.txt │ │ │ ├── ._cmd805.txt │ │ │ ├── ._cmd806.txt │ │ │ ├── ._cmd807.txt │ │ │ ├── ._cmd808.txt │ │ │ ├── ._cmd809.txt │ │ │ ├── ._cmd810.txt │ │ │ ├── ._cmd811.txt │ │ │ ├── ._cmd812.txt │ │ │ ├── ._cmd813.txt │ │ │ ├── ._cmd814.txt │ │ │ ├── ._cmd815.txt │ │ │ ├── ._cmd816.txt │ │ │ ├── ._cmd817.txt │ │ │ ├── ._cmd818.txt │ │ │ ├── ._cmd819.txt │ │ │ ├── ._cmd820.txt │ │ │ ├── ._cmd821.txt │ │ │ └── ._cmd822.txt │ │ │ └── games_service │ │ │ ├── ._.DS_Store │ │ │ ├── ._pytest.ini │ │ │ ├── games │ │ │ ├── ._.DS_Store │ │ │ ├── ._customized_permissions.py │ │ │ ├── ._max_limit_pagination.py │ │ │ ├── ._serializers.py │ │ │ ├── ._urls.py │ │ │ ├── ._views.py │ │ │ └── migrations │ │ │ │ └── ._.DS_Store │ │ │ └── games_service │ │ │ └── ._.DS_Store │ └── restful_python_2_08_03 │ │ ├── ._.DS_Store │ │ └── Django01 │ │ ├── ._.DS_Store │ │ ├── ._requirements.txt │ │ ├── cmd │ │ ├── ._.DS_Store │ │ ├── ._cmd801.txt │ │ ├── ._cmd802.txt │ │ ├── ._cmd803.txt │ │ ├── ._cmd804.txt │ │ ├── ._cmd805.txt │ │ ├── ._cmd806.txt │ │ ├── ._cmd807.txt │ │ ├── ._cmd808.txt │ │ ├── ._cmd809.txt │ │ ├── ._cmd810.txt │ │ ├── ._cmd811.txt │ │ ├── ._cmd812.txt │ │ ├── ._cmd813.txt │ │ ├── ._cmd814.txt │ │ ├── ._cmd815.txt │ │ ├── ._cmd816.txt │ │ ├── ._cmd817.txt │ │ ├── ._cmd818.txt │ │ ├── ._cmd819.txt │ │ ├── ._cmd820.txt │ │ ├── ._cmd821.txt │ │ └── ._cmd822.txt │ │ └── games_service │ │ ├── ._.DS_Store │ │ ├── ._pytest.ini │ │ ├── games │ │ ├── ._.DS_Store │ │ ├── ._customized_permissions.py │ │ ├── ._max_limit_pagination.py │ │ ├── ._serializers.py │ │ ├── ._urls.py │ │ └── migrations │ │ │ └── ._.DS_Store │ │ └── games_service │ │ └── ._.DS_Store ├── restful_python_2_08_01 │ ├── .DS_Store │ └── Django01 │ │ ├── .DS_Store │ │ ├── cmd │ │ ├── .DS_Store │ │ ├── check_contents_sqlite3_games_game_table.txt │ │ ├── check_tables_contents.sql │ │ ├── check_tables_indexes.sql │ │ ├── cmd801.txt │ │ ├── cmd802.txt │ │ ├── cmd803.txt │ │ ├── cmd804.txt │ │ ├── cmd805.txt │ │ ├── cmd806.txt │ │ ├── cmd807.txt │ │ ├── cmd808.txt │ │ ├── cmd809.txt │ │ ├── cmd810.txt │ │ ├── configure_django_database.sql │ │ ├── create_test_user.py │ │ ├── list_database_tables.sql │ │ ├── list_sqlite3_tables.txt │ │ ├── retrieve_id_for_django_superuser.sql │ │ ├── retrieve_sql_sqlite3_games_game_table.txt │ │ └── serializers_test_01.py │ │ ├── games_service │ │ ├── .DS_Store │ │ ├── games │ │ │ ├── .DS_Store │ │ │ ├── __init__.py │ │ │ ├── admin.py │ │ │ ├── apps.py │ │ │ ├── customized_permissions.py │ │ │ ├── max_limit_pagination.py │ │ │ ├── migrations │ │ │ │ ├── .DS_Store │ │ │ │ ├── 0001_initial.py │ │ │ │ ├── 0002_auto_20181026_0450.py │ │ │ │ ├── 0003_game_owner.py │ │ │ │ └── __init__.py │ │ │ ├── models.py │ │ │ ├── serializers.py │ │ │ ├── tests.py │ │ │ ├── urls.py │ │ │ └── views.py │ │ ├── games_service │ │ │ ├── .DS_Store │ │ │ ├── __init__.py │ │ │ ├── settings.py │ │ │ ├── urls.py │ │ │ └── wsgi.py │ │ └── manage.py │ │ ├── pip-selfcheck.json │ │ └── requirements.txt ├── restful_python_2_08_02 │ ├── .DS_Store │ └── Django01 │ │ ├── .DS_Store │ │ ├── cmd │ │ ├── .DS_Store │ │ ├── cmd801.txt │ │ ├── cmd802.txt │ │ ├── cmd803.txt │ │ ├── cmd804.txt │ │ ├── cmd805.txt │ │ ├── cmd806.txt │ │ ├── cmd807.txt │ │ ├── cmd808.txt │ │ ├── cmd809.txt │ │ ├── cmd810.txt │ │ ├── cmd811.txt │ │ ├── cmd812.txt │ │ ├── cmd813.txt │ │ ├── cmd814.txt │ │ ├── cmd815.txt │ │ ├── cmd816.txt │ │ ├── cmd817.txt │ │ ├── cmd818.txt │ │ ├── cmd819.txt │ │ ├── cmd820.txt │ │ ├── cmd821.txt │ │ └── cmd822.txt │ │ ├── games_service │ │ ├── .DS_Store │ │ ├── games │ │ │ ├── .DS_Store │ │ │ ├── __init__.py │ │ │ ├── admin.py │ │ │ ├── apps.py │ │ │ ├── customized_permissions.py │ │ │ ├── max_limit_pagination.py │ │ │ ├── migrations │ │ │ │ ├── .DS_Store │ │ │ │ ├── 0001_initial.py │ │ │ │ ├── 0002_auto_20181026_0450.py │ │ │ │ ├── 0003_game_owner.py │ │ │ │ └── __init__.py │ │ │ ├── models.py │ │ │ ├── serializers.py │ │ │ ├── tests.py │ │ │ ├── urls.py │ │ │ └── views.py │ │ ├── games_service │ │ │ ├── .DS_Store │ │ │ ├── __init__.py │ │ │ ├── settings.py │ │ │ ├── urls.py │ │ │ └── wsgi.py │ │ ├── manage.py │ │ └── pytest.ini │ │ ├── pip-selfcheck.json │ │ └── requirements.txt └── restful_python_2_08_03 │ ├── .DS_Store │ └── Django01 │ ├── .DS_Store │ ├── cmd │ ├── .DS_Store │ ├── cmd801.txt │ ├── cmd802.txt │ ├── cmd803.txt │ ├── cmd804.txt │ ├── cmd805.txt │ ├── cmd806.txt │ ├── cmd807.txt │ ├── cmd808.txt │ ├── cmd809.txt │ ├── cmd810.txt │ ├── cmd811.txt │ ├── cmd812.txt │ ├── cmd813.txt │ ├── cmd814.txt │ ├── cmd815.txt │ ├── cmd816.txt │ ├── cmd817.txt │ ├── cmd818.txt │ ├── cmd819.txt │ ├── cmd820.txt │ ├── cmd821.txt │ └── cmd822.txt │ ├── games_service │ ├── .DS_Store │ ├── games │ │ ├── .DS_Store │ │ ├── __init__.py │ │ ├── admin.py │ │ ├── apps.py │ │ ├── customized_permissions.py │ │ ├── max_limit_pagination.py │ │ ├── migrations │ │ │ ├── .DS_Store │ │ │ ├── 0001_initial.py │ │ │ ├── 0002_auto_20181026_0450.py │ │ │ ├── 0003_game_owner.py │ │ │ └── __init__.py │ │ ├── models.py │ │ ├── serializers.py │ │ ├── tests.py │ │ ├── urls.py │ │ └── views.py │ ├── games_service │ │ ├── .DS_Store │ │ ├── __init__.py │ │ ├── settings.py │ │ ├── urls.py │ │ └── wsgi.py │ ├── manage.py │ └── pytest.ini │ ├── pip-selfcheck.json │ └── requirements.txt ├── Chapter09 ├── __MACOSX │ └── restful_python_2_09_01 │ │ ├── ._.DS_Store │ │ └── Pyramid01 │ │ ├── ._.DS_Store │ │ ├── ._requirements.txt │ │ ├── cmd │ │ ├── ._cmd901.txt │ │ ├── ._cmd902.txt │ │ ├── ._cmd903.txt │ │ ├── ._cmd904.txt │ │ ├── ._cmd905.txt │ │ ├── ._cmd906.txt │ │ ├── ._cmd907.txt │ │ ├── ._cmd908.txt │ │ ├── ._cmd909.txt │ │ └── ._cmd910.txt │ │ └── metrics │ │ └── metrics │ │ ├── ._.DS_Store │ │ ├── models │ │ ├── ._.DS_Store │ │ └── ._metrics.py │ │ └── views │ │ ├── ._.DS_Store │ │ └── ._metrics.py └── restful_python_2_09_01 │ ├── .DS_Store │ └── Pyramid01 │ ├── .DS_Store │ ├── cmd │ ├── cmd901.txt │ ├── cmd902.txt │ ├── cmd903.txt │ ├── cmd904.txt │ ├── cmd905.txt │ ├── cmd906.txt │ ├── cmd907.txt │ ├── cmd908.txt │ ├── cmd909.txt │ └── cmd910.txt │ ├── metrics │ ├── .coveragerc │ ├── .gitignore │ ├── CHANGES.txt │ ├── MANIFEST.in │ ├── README.txt │ ├── development.ini │ ├── metrics │ │ ├── __init__.py │ │ ├── models │ │ │ └── metrics.py │ │ ├── routes.py │ │ ├── tests.py │ │ └── views │ │ │ ├── __init__.py │ │ │ └── metrics.py │ ├── production.ini │ ├── pytest.ini │ └── setup.py │ ├── pip-selfcheck.json │ └── requirements.txt ├── Chapter10 ├── __MACOSX │ └── restful_python_2_11_01 │ │ └── Tornado01 │ │ ├── ._.DS_Store │ │ ├── ._drone.py │ │ ├── ._drone_service.py │ │ ├── ._requirements.txt │ │ └── cmd │ │ ├── ._cmd1101.txt │ │ ├── ._cmd1102.txt │ │ ├── ._cmd1103.txt │ │ ├── ._cmd1104.txt │ │ ├── ._cmd1105.txt │ │ ├── ._cmd1106.txt │ │ ├── ._cmd1107.txt │ │ ├── ._cmd1108.txt │ │ ├── ._cmd1109.txt │ │ ├── ._cmd1110.txt │ │ └── ._cmd1111.txt └── restful_python_2_10_01 │ └── Tornado01 │ ├── .DS_Store │ ├── cmd │ ├── cmd1101.txt │ ├── cmd1102.txt │ ├── cmd1103.txt │ ├── cmd1104.txt │ ├── cmd1105.txt │ ├── cmd1106.txt │ ├── cmd1107.txt │ ├── cmd1108.txt │ ├── cmd1109.txt │ ├── cmd1110.txt │ └── cmd1111.txt │ ├── drone.py │ ├── drone_service.py │ ├── pip-selfcheck.json │ └── requirements.txt ├── Chapter11 ├── __MACOSX │ ├── restful_python_2_12_01 │ │ ├── ._.DS_Store │ │ └── Tornado01 │ │ │ ├── ._.DS_Store │ │ │ ├── ._async_drone_service.py │ │ │ ├── ._drone.py │ │ │ ├── ._drone_service.py │ │ │ ├── ._requirements.txt │ │ │ ├── ._setup.cfg │ │ │ ├── ._tests.py │ │ │ ├── cmd │ │ │ ├── ._cmd1101.txt │ │ │ ├── ._cmd1102.txt │ │ │ ├── ._cmd1103.txt │ │ │ ├── ._cmd1104.txt │ │ │ ├── ._cmd1105.txt │ │ │ ├── ._cmd1106.txt │ │ │ ├── ._cmd1107.txt │ │ │ ├── ._cmd1108.txt │ │ │ ├── ._cmd1109.txt │ │ │ ├── ._cmd1110.txt │ │ │ ├── ._cmd1111.txt │ │ │ ├── ._cmd1201.txt │ │ │ ├── ._cmd1202.txt │ │ │ ├── ._cmd1203.txt │ │ │ ├── ._cmd1204.txt │ │ │ ├── ._cmd1205.txt │ │ │ └── ._cmd1206.txt │ │ │ └── htmlcov │ │ │ └── ._index.html │ ├── restful_python_2_12_02 │ │ ├── ._.DS_Store │ │ └── Tornado01 │ │ │ ├── ._.DS_Store │ │ │ ├── ._async_drone_service.py │ │ │ ├── ._drone.py │ │ │ ├── ._drone_service.py │ │ │ ├── ._requirements.txt │ │ │ ├── ._setup.cfg │ │ │ ├── ._tests.py │ │ │ ├── cmd │ │ │ ├── ._cmd1101.txt │ │ │ ├── ._cmd1102.txt │ │ │ ├── ._cmd1103.txt │ │ │ ├── ._cmd1104.txt │ │ │ ├── ._cmd1105.txt │ │ │ ├── ._cmd1106.txt │ │ │ ├── ._cmd1107.txt │ │ │ ├── ._cmd1108.txt │ │ │ ├── ._cmd1109.txt │ │ │ ├── ._cmd1110.txt │ │ │ ├── ._cmd1111.txt │ │ │ ├── ._cmd1201.txt │ │ │ ├── ._cmd1202.txt │ │ │ ├── ._cmd1203.txt │ │ │ ├── ._cmd1204.txt │ │ │ ├── ._cmd1205.txt │ │ │ └── ._cmd1206.txt │ │ │ └── htmlcov │ │ │ └── ._index.html │ └── restful_python_2_12_03 │ │ ├── ._.DS_Store │ │ └── Tornado01 │ │ ├── ._.DS_Store │ │ ├── ._async_drone_service.py │ │ ├── ._drone.py │ │ ├── ._drone_service.py │ │ ├── ._requirements.txt │ │ ├── ._setup.cfg │ │ ├── ._tests.py │ │ ├── cmd │ │ ├── ._cmd1101.txt │ │ ├── ._cmd1102.txt │ │ ├── ._cmd1103.txt │ │ ├── ._cmd1104.txt │ │ ├── ._cmd1105.txt │ │ ├── ._cmd1106.txt │ │ ├── ._cmd1107.txt │ │ ├── ._cmd1108.txt │ │ ├── ._cmd1109.txt │ │ ├── ._cmd1110.txt │ │ ├── ._cmd1111.txt │ │ ├── ._cmd1201.txt │ │ ├── ._cmd1202.txt │ │ ├── ._cmd1203.txt │ │ ├── ._cmd1204.txt │ │ ├── ._cmd1205.txt │ │ └── ._cmd1206.txt │ │ └── htmlcov │ │ └── ._index.html ├── restful_python_2_11_01 │ ├── .DS_Store │ └── Tornado01 │ │ ├── .DS_Store │ │ ├── .coverage │ │ ├── async_drone_service.py │ │ ├── cmd │ │ ├── cmd1101.txt │ │ ├── cmd1102.txt │ │ ├── cmd1103.txt │ │ ├── cmd1104.txt │ │ ├── cmd1105.txt │ │ ├── cmd1106.txt │ │ ├── cmd1107.txt │ │ ├── cmd1108.txt │ │ ├── cmd1109.txt │ │ ├── cmd1110.txt │ │ ├── cmd1111.txt │ │ ├── cmd1201.txt │ │ ├── cmd1202.txt │ │ ├── cmd1203.txt │ │ ├── cmd1204.txt │ │ ├── cmd1205.txt │ │ └── cmd1206.txt │ │ ├── drone.py │ │ ├── drone_service.py │ │ ├── htmlcov │ │ ├── async_drone_service_py.html │ │ ├── coverage_html.js │ │ ├── drone_py.html │ │ ├── index.html │ │ ├── jquery.ba-throttle-debounce.min.js │ │ ├── jquery.hotkeys.js │ │ ├── jquery.isonscreen.js │ │ ├── jquery.min.js │ │ ├── jquery.tablesorter.min.js │ │ ├── keybd_closed.png │ │ ├── keybd_open.png │ │ ├── status.json │ │ └── style.css │ │ ├── pip-selfcheck.json │ │ ├── requirements.txt │ │ ├── setup.cfg │ │ └── tests.py ├── restful_python_2_11_02 │ ├── .DS_Store │ └── Tornado01 │ │ ├── .DS_Store │ │ ├── .coverage │ │ ├── async_drone_service.py │ │ ├── cmd │ │ ├── cmd1101.txt │ │ ├── cmd1102.txt │ │ ├── cmd1103.txt │ │ ├── cmd1104.txt │ │ ├── cmd1105.txt │ │ ├── cmd1106.txt │ │ ├── cmd1107.txt │ │ ├── cmd1108.txt │ │ ├── cmd1109.txt │ │ ├── cmd1110.txt │ │ ├── cmd1111.txt │ │ ├── cmd1201.txt │ │ ├── cmd1202.txt │ │ ├── cmd1203.txt │ │ ├── cmd1204.txt │ │ ├── cmd1205.txt │ │ └── cmd1206.txt │ │ ├── drone.py │ │ ├── drone_service.py │ │ ├── htmlcov │ │ ├── async_drone_service_py.html │ │ ├── coverage_html.js │ │ ├── drone_py.html │ │ ├── index.html │ │ ├── jquery.ba-throttle-debounce.min.js │ │ ├── jquery.hotkeys.js │ │ ├── jquery.isonscreen.js │ │ ├── jquery.min.js │ │ ├── jquery.tablesorter.min.js │ │ ├── keybd_closed.png │ │ ├── keybd_open.png │ │ ├── status.json │ │ └── style.css │ │ ├── pip-selfcheck.json │ │ ├── requirements.txt │ │ ├── setup.cfg │ │ └── tests.py └── restful_python_2_11_03 │ ├── .DS_Store │ └── Tornado01 │ ├── .DS_Store │ ├── .coverage │ ├── async_drone_service.py │ ├── cmd │ ├── cmd1101.txt │ ├── cmd1102.txt │ ├── cmd1103.txt │ ├── cmd1104.txt │ ├── cmd1105.txt │ ├── cmd1106.txt │ ├── cmd1107.txt │ ├── cmd1108.txt │ ├── cmd1109.txt │ ├── cmd1110.txt │ ├── cmd1111.txt │ ├── cmd1201.txt │ ├── cmd1202.txt │ ├── cmd1203.txt │ ├── cmd1204.txt │ ├── cmd1205.txt │ └── cmd1206.txt │ ├── drone.py │ ├── drone_service.py │ ├── htmlcov │ ├── async_drone_service_py.html │ ├── coverage_html.js │ ├── drone_py.html │ ├── index.html │ ├── jquery.ba-throttle-debounce.min.js │ ├── jquery.hotkeys.js │ ├── jquery.isonscreen.js │ ├── jquery.min.js │ ├── jquery.tablesorter.min.js │ ├── keybd_closed.png │ ├── keybd_open.png │ ├── status.json │ └── style.css │ ├── pip-selfcheck.json │ ├── requirements.txt │ ├── setup.cfg │ └── tests.py ├── LICENSE └── README.md /Chapter01/__MACOSX/restful_python_2_01_01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter01/__MACOSX/restful_python_2_01_01/Flask01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter01/__MACOSX/restful_python_2_01_01/Flask01/service/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter01/__MACOSX/restful_python_2_01_02/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd01.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd01.txt -------------------------------------------------------------------------------- /Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd02.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd02.txt -------------------------------------------------------------------------------- /Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd03.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd03.txt -------------------------------------------------------------------------------- /Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd04.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd04.txt -------------------------------------------------------------------------------- /Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd05.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd05.txt -------------------------------------------------------------------------------- /Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd06.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd06.txt -------------------------------------------------------------------------------- /Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd07.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd07.txt -------------------------------------------------------------------------------- /Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd08.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd08.txt -------------------------------------------------------------------------------- /Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd09.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd09.txt -------------------------------------------------------------------------------- /Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd10.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd10.txt -------------------------------------------------------------------------------- /Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd11.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd11.txt -------------------------------------------------------------------------------- /Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd12.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd12.txt -------------------------------------------------------------------------------- /Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd13.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd13.txt -------------------------------------------------------------------------------- /Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd14.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd14.txt -------------------------------------------------------------------------------- /Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd15.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter01/__MACOSX/restful_python_2_01_02/Flask01/._cmd15.txt -------------------------------------------------------------------------------- /Chapter01/__MACOSX/restful_python_2_01_02/Flask01/service/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter01/restful_python_2_01_01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter01/restful_python_2_01_01/.DS_Store -------------------------------------------------------------------------------- /Chapter01/restful_python_2_01_01/Flask01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter01/restful_python_2_01_01/Flask01/.DS_Store -------------------------------------------------------------------------------- /Chapter01/restful_python_2_01_01/Flask01/requirements.txt: -------------------------------------------------------------------------------- 1 | Flask==1.0.2 2 | flask-restful==0.3.6 3 | httpie==0.9.9 4 | -------------------------------------------------------------------------------- /Chapter01/restful_python_2_01_01/Flask01/service/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter01/restful_python_2_01_01/Flask01/service/.DS_Store -------------------------------------------------------------------------------- /Chapter01/restful_python_2_01_02/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter01/restful_python_2_01_02/.DS_Store -------------------------------------------------------------------------------- /Chapter01/restful_python_2_01_02/Flask01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter01/restful_python_2_01_02/Flask01/.DS_Store -------------------------------------------------------------------------------- /Chapter01/restful_python_2_01_02/Flask01/cmd01.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/notifications/" message='eSports competition starts in 2 minutes' ttl=20 notification_category='Information' -------------------------------------------------------------------------------- /Chapter01/restful_python_2_01_02/Flask01/cmd02.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"message":"eSports competition starts in 2 minutes", "ttl":20, "notification_category": "Information"}' "localhost:5000/service/notifications/" 2 | -------------------------------------------------------------------------------- /Chapter01/restful_python_2_01_02/Flask01/cmd03.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/notifications/" message='Ambient temperature is above the valid range' ttl=15 notification_category='Warning' 2 | -------------------------------------------------------------------------------- /Chapter01/restful_python_2_01_02/Flask01/cmd04.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"message":"Ambient temperature is above the valid range", "ttl":15, "notification_category": "Warning"}' "localhost:5000/service/notifications/" 2 | -------------------------------------------------------------------------------- /Chapter01/restful_python_2_01_02/Flask01/cmd05.txt: -------------------------------------------------------------------------------- 1 | http ":5000/service/notifications/" 2 | -------------------------------------------------------------------------------- /Chapter01/restful_python_2_01_02/Flask01/cmd06.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET -H "localhost:5000/service/notifications/" 2 | -------------------------------------------------------------------------------- /Chapter01/restful_python_2_01_02/Flask01/cmd07.txt: -------------------------------------------------------------------------------- 1 | http ":5000/service/notifications/78" 2 | -------------------------------------------------------------------------------- /Chapter01/restful_python_2_01_02/Flask01/cmd08.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:5000/service/notifications/78" 2 | -------------------------------------------------------------------------------- /Chapter01/restful_python_2_01_02/Flask01/cmd09.txt: -------------------------------------------------------------------------------- 1 | http PATCH ":5000/service/notifications/2" displayed_once=true displayed_times=1 2 | -------------------------------------------------------------------------------- /Chapter01/restful_python_2_01_02/Flask01/cmd10.txt: -------------------------------------------------------------------------------- 1 | curl -iX PATCH -H "Content-Type: application/json" -d '{"displayed_once":"true", "displayed_times":1}' "localhost:5000/service/notifications/2" 2 | -------------------------------------------------------------------------------- /Chapter01/restful_python_2_01_02/Flask01/cmd11.txt: -------------------------------------------------------------------------------- 1 | http DELETE ":5000/service/notifications/2" 2 | -------------------------------------------------------------------------------- /Chapter01/restful_python_2_01_02/Flask01/cmd12.txt: -------------------------------------------------------------------------------- 1 | curl -iX DELETE "localhost:5000/service/notifications/2" 2 | -------------------------------------------------------------------------------- /Chapter01/restful_python_2_01_02/Flask01/cmd13.txt: -------------------------------------------------------------------------------- 1 | { 2 | "message": "Calculating the most appropriate ambient temperature", 3 | "ttl": 20, 4 | "notification_category": "Warning" 5 | } 6 | -------------------------------------------------------------------------------- /Chapter01/restful_python_2_01_02/Flask01/cmd14.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/notifications/" message='Working with PyCharm Professional' ttl=12 notification_category='Information' 2 | -------------------------------------------------------------------------------- /Chapter01/restful_python_2_01_02/Flask01/cmd15.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"message":"Working with PyCharm Professional", "ttl":12, "notification_category": "Information"}' "localhost:5000/service/notifications/" 2 | -------------------------------------------------------------------------------- /Chapter01/restful_python_2_01_02/Flask01/requirements.txt: -------------------------------------------------------------------------------- 1 | Flask==1.0.2 2 | flask-restful==0.3.6 3 | httpie==0.9.9 4 | -------------------------------------------------------------------------------- /Chapter01/restful_python_2_01_02/Flask01/service/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter01/restful_python_2_01_02/Flask01/service/.DS_Store -------------------------------------------------------------------------------- /Chapter02/__MACOSX/restful_python_2_02_01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter02/__MACOSX/restful_python_2_02_01/Flask01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter02/__MACOSX/restful_python_2_02_01/Flask01/._cmd201.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter02/__MACOSX/restful_python_2_02_01/Flask01/._cmd201.txt -------------------------------------------------------------------------------- /Chapter02/__MACOSX/restful_python_2_02_01/Flask01/._cmd202.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter02/__MACOSX/restful_python_2_02_01/Flask01/._cmd202.txt -------------------------------------------------------------------------------- /Chapter02/__MACOSX/restful_python_2_02_01/Flask01/._cmd203.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter02/__MACOSX/restful_python_2_02_01/Flask01/._cmd203.txt -------------------------------------------------------------------------------- /Chapter02/__MACOSX/restful_python_2_02_01/Flask01/._cmd204.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter02/__MACOSX/restful_python_2_02_01/Flask01/._cmd204.txt -------------------------------------------------------------------------------- /Chapter02/__MACOSX/restful_python_2_02_01/Flask01/._cmd205.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter02/__MACOSX/restful_python_2_02_01/Flask01/._cmd205.txt -------------------------------------------------------------------------------- /Chapter02/__MACOSX/restful_python_2_02_01/Flask01/._cmd206.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter02/__MACOSX/restful_python_2_02_01/Flask01/._cmd206.txt -------------------------------------------------------------------------------- /Chapter02/__MACOSX/restful_python_2_02_01/Flask01/._cmd207.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter02/__MACOSX/restful_python_2_02_01/Flask01/._cmd207.txt -------------------------------------------------------------------------------- /Chapter02/__MACOSX/restful_python_2_02_01/Flask01/._cmd208.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter02/__MACOSX/restful_python_2_02_01/Flask01/._cmd208.txt -------------------------------------------------------------------------------- /Chapter02/__MACOSX/restful_python_2_02_01/Flask01/service/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter02/__MACOSX/restful_python_2_02_01/Flask01/service/migrations/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter02/__MACOSX/restful_python_2_02_01/Flask01/service/migrations/versions/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter02/restful_python_2_02_01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter02/restful_python_2_02_01/.DS_Store -------------------------------------------------------------------------------- /Chapter02/restful_python_2_02_01/Flask01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter02/restful_python_2_02_01/Flask01/.DS_Store -------------------------------------------------------------------------------- /Chapter02/restful_python_2_02_01/Flask01/cmd201.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/notification-categories/" name='Information' 2 | http POST ":5000/service/notification-categories/" name='Warning' 3 | -------------------------------------------------------------------------------- /Chapter02/restful_python_2_02_01/Flask01/cmd205.txt: -------------------------------------------------------------------------------- 1 | http ":5000/service/notification_categories/1" 2 | -------------------------------------------------------------------------------- /Chapter02/restful_python_2_02_01/Flask01/cmd206.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:5000/service/notification_categories/1" -------------------------------------------------------------------------------- /Chapter02/restful_python_2_02_01/Flask01/cmd207.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/notifications/" message='Score calculation error' ttl=30 notification_category="Error" -------------------------------------------------------------------------------- /Chapter02/restful_python_2_02_01/Flask01/cmd208.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"message":"Score calculation error", "ttl":30, "notification_category":"Error"}' ":5000/service/notifications/" 2 | -------------------------------------------------------------------------------- /Chapter02/restful_python_2_02_01/Flask01/configure_database.sql: -------------------------------------------------------------------------------- 1 | CREATE ROLE your_user_name WITH LOGIN PASSWORD 'your_password'; 2 | 3 | GRANT ALL PRIVILEGES ON DATABASE "flask_notifications" TO your_user_name; 4 | ALTER USER your_user_name CREATEDB; 5 | \q 6 | -------------------------------------------------------------------------------- /Chapter02/restful_python_2_02_01/Flask01/service/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter02/restful_python_2_02_01/Flask01/service/.DS_Store -------------------------------------------------------------------------------- /Chapter02/restful_python_2_02_01/Flask01/service/migrations/README: -------------------------------------------------------------------------------- 1 | Generic single-database configuration. -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd201.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd201.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd202.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd202.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd203.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd203.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd204.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd204.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd205.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd205.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd206.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd206.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd207.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd207.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd208.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd208.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd301.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd301.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd302.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd302.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd303.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd303.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd304.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd304.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd305.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd305.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd306.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd306.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd307.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd307.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd308.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd308.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd309.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd309.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd310.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd310.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd311.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd311.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd312.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd312.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd313.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd313.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd314.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd314.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd315.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd315.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd316.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_01/Flask01/._cmd316.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_01/Flask01/service/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd201.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd201.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd202.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd202.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd203.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd203.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd204.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd204.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd205.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd205.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd206.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd206.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd207.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd207.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd208.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd208.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd301.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd301.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd302.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd302.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd303.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd303.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd304.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd304.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd305.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd305.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd306.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd306.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd307.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd307.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd308.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd308.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd309.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd309.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd310.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd310.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd311.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd311.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd312.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd312.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd313.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd313.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd314.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd314.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd315.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd315.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd316.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd316.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd317.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd317.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd318.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd318.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd319.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd319.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd320.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd320.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd321.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd321.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd322.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd322.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd323.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd323.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd324.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/__MACOSX/restful_python_2_03_02/Flask01/._cmd324.txt -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/service/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/service/migrations/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter03/__MACOSX/restful_python_2_03_02/Flask01/service/migrations/versions/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/restful_python_2_03_01/.DS_Store -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_01/Flask01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/restful_python_2_03_01/Flask01/.DS_Store -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_01/Flask01/cmd201.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/notification-categories/" name='Information' 2 | http POST ":5000/service/notification-categories/" name='Warning' 3 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_01/Flask01/cmd205.txt: -------------------------------------------------------------------------------- 1 | http ":5000/service/notification_categories/1" 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_01/Flask01/cmd206.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:5000/service/notification_categories/1" -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_01/Flask01/cmd207.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/notifications/" message='Score calculation error' ttl=30 notification_category="Error" -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_01/Flask01/cmd208.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"message":"Score calculation error", "ttl":30, "notification_category":"Error"}' ":5000/service/notifications/" 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_01/Flask01/cmd301.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/notification_categories/" name='Warning' 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_01/Flask01/cmd302.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"name":"Warning"}' "localhost:5000/service/notification_categories/" 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_01/Flask01/cmd303.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/notification_categories/" name='Error' 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_01/Flask01/cmd304.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"name":"Error"}' "localhost:5000/service/notification_categories/" 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_01/Flask01/cmd305.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/notifications/" message='eSports competition finishes in 10 minutes' ttl=30 notification_category="Information" 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_01/Flask01/cmd306.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"message":"eSports competition finishes in 10 minutes", "ttl":30, "notification_category": "Information"}' "localhost:5000/service/notifications/" 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_01/Flask01/cmd307.txt: -------------------------------------------------------------------------------- 1 | http PATCH ":5000/service/notifications/2" displayed_once=true displayed_times=1 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_01/Flask01/cmd308.txt: -------------------------------------------------------------------------------- 1 | curl -iX PATCH -H "Content-Type: application/json" -d '{"displayed_once":"true", "displayed_times":1}' "localhost:5000/service/notifications/2" 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_01/Flask01/cmd311.txt: -------------------------------------------------------------------------------- 1 | http ":5000/service/notifications/" 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_01/Flask01/cmd312.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:5000/service/notifications/" 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_01/Flask01/cmd313.txt: -------------------------------------------------------------------------------- 1 | http ":5000/service/notifications/?page=1" 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_01/Flask01/cmd314.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:5000/service/notifications/?page=1" 2 | 3 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_01/Flask01/cmd315.txt: -------------------------------------------------------------------------------- 1 | http ":5000/service/notifications/?page=2" 2 | 3 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_01/Flask01/cmd316.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:5000/service/notifications/?page=2" 2 | 3 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_01/Flask01/configure_database.sql: -------------------------------------------------------------------------------- 1 | CREATE ROLE your_user_name WITH LOGIN PASSWORD 'your_password'; 2 | 3 | GRANT ALL PRIVILEGES ON DATABASE "flask_notifications" TO your_user_name; 4 | ALTER USER your_user_name CREATEDB; 5 | \q 6 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_01/Flask01/service/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/restful_python_2_03_01/Flask01/service/.DS_Store -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_01/Flask01/service/migrations/README: -------------------------------------------------------------------------------- 1 | Generic single-database configuration. -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/restful_python_2_03_02/.DS_Store -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/restful_python_2_03_02/Flask01/.DS_Store -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/cmd201.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/notification-categories/" name='Information' 2 | http POST ":5000/service/notification-categories/" name='Warning' 3 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/cmd205.txt: -------------------------------------------------------------------------------- 1 | http ":5000/service/notification_categories/1" 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/cmd206.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:5000/service/notification_categories/1" -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/cmd207.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/notifications/" message='Score calculation error' ttl=30 notification_category="Error" -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/cmd208.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"message":"Score calculation error", "ttl":30, "notification_category":"Error"}' ":5000/service/notifications/" 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/cmd301.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/notification_categories/" name='Warning' 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/cmd302.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"name":"Warning"}' "localhost:5000/service/notification_categories/" 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/cmd303.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/notification_categories/" name='Error' 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/cmd304.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"name":"Error"}' "localhost:5000/service/notification_categories/" 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/cmd305.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/notifications/" message='eSports competition finishes in 10 minutes' ttl=30 notification_category="Information" 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/cmd306.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"message":"eSports competition finishes in 10 minutes", "ttl":30, "notification_category": "Information"}' "localhost:5000/service/notifications/" 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/cmd307.txt: -------------------------------------------------------------------------------- 1 | http PATCH ":5000/service/notifications/2" displayed_once=true displayed_times=1 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/cmd308.txt: -------------------------------------------------------------------------------- 1 | curl -iX PATCH -H "Content-Type: application/json" -d '{"displayed_once":"true", "displayed_times":1}' "localhost:5000/service/notifications/2" 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/cmd311.txt: -------------------------------------------------------------------------------- 1 | http ":5000/service/notifications/" 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/cmd312.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:5000/service/notifications/" 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/cmd313.txt: -------------------------------------------------------------------------------- 1 | http ":5000/service/notifications/?page=1" 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/cmd314.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:5000/service/notifications/?page=1" 2 | 3 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/cmd315.txt: -------------------------------------------------------------------------------- 1 | http ":5000/service/notifications/?page=2" 2 | 3 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/cmd316.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:5000/service/notifications/?page=2" 2 | 3 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/cmd317.txt: -------------------------------------------------------------------------------- 1 | http GET ":5000/service/notifications/?page=1" 2 | 3 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/cmd318.txt: -------------------------------------------------------------------------------- 1 | http GET ":5000/service/notifications/?page=1" 2 | 3 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/cmd319.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/users/" name='gaston-hillar' password='wrongpassword' 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/cmd320.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"name": "gaston-hillar", "wrongpassword": "brandonpassword"}' "localhost:5000/service/users/" 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/cmd321.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/users/" name='gaston-hillar' password='TTl#ID16^eplG' 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/cmd322.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"name": "gaston-hillar", "password": " TTl#ID16^eplG"}' "localhost:5000/service/users/" 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/cmd323.txt: -------------------------------------------------------------------------------- 1 | http -a 'gaston-hillar':'iA4!V3riS#c^R9' ":5000/service/notifications/?page=1" 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/cmd324.txt: -------------------------------------------------------------------------------- 1 | curl --user 'gaston-hillar':'TTl#ID16^eplG' -iX GET "localhost:5000/service/notifications/?page=1" 2 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/configure_database.sql: -------------------------------------------------------------------------------- 1 | CREATE ROLE your_user_name WITH LOGIN PASSWORD 'your_password'; 2 | 3 | GRANT ALL PRIVILEGES ON DATABASE "flask_notifications" TO your_user_name; 4 | ALTER USER your_user_name CREATEDB; 5 | \q 6 | -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/service/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter03/restful_python_2_03_02/Flask01/service/.DS_Store -------------------------------------------------------------------------------- /Chapter03/restful_python_2_03_02/Flask01/service/migrations/README: -------------------------------------------------------------------------------- 1 | Generic single-database configuration. -------------------------------------------------------------------------------- /Chapter04/__MACOSX/restful_python_2_04_01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter04/__MACOSX/restful_python_2_04_01/Flask01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter04/__MACOSX/restful_python_2_04_01/Flask01/._cmd201.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter04/__MACOSX/restful_python_2_04_01/Flask01/._cmd201.txt -------------------------------------------------------------------------------- /Chapter04/__MACOSX/restful_python_2_04_01/Flask01/._cmd202.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter04/__MACOSX/restful_python_2_04_01/Flask01/._cmd202.txt -------------------------------------------------------------------------------- /Chapter04/__MACOSX/restful_python_2_04_01/Flask01/._cmd203.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter04/__MACOSX/restful_python_2_04_01/Flask01/._cmd203.txt -------------------------------------------------------------------------------- /Chapter04/__MACOSX/restful_python_2_04_01/Flask01/._cmd204.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter04/__MACOSX/restful_python_2_04_01/Flask01/._cmd204.txt -------------------------------------------------------------------------------- /Chapter04/__MACOSX/restful_python_2_04_01/Flask01/._cmd205.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter04/__MACOSX/restful_python_2_04_01/Flask01/._cmd205.txt -------------------------------------------------------------------------------- /Chapter04/__MACOSX/restful_python_2_04_01/Flask01/._cmd206.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter04/__MACOSX/restful_python_2_04_01/Flask01/._cmd206.txt -------------------------------------------------------------------------------- /Chapter04/__MACOSX/restful_python_2_04_01/Flask01/._cmd207.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter04/__MACOSX/restful_python_2_04_01/Flask01/._cmd207.txt -------------------------------------------------------------------------------- /Chapter04/__MACOSX/restful_python_2_04_01/Flask01/._cmd208.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter04/__MACOSX/restful_python_2_04_01/Flask01/._cmd208.txt -------------------------------------------------------------------------------- /Chapter04/__MACOSX/restful_python_2_04_01/Flask01/._cmd301.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter04/__MACOSX/restful_python_2_04_01/Flask01/._cmd301.txt -------------------------------------------------------------------------------- /Chapter04/__MACOSX/restful_python_2_04_01/Flask01/._cmd302.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter04/__MACOSX/restful_python_2_04_01/Flask01/._cmd302.txt -------------------------------------------------------------------------------- /Chapter04/__MACOSX/restful_python_2_04_01/Flask01/._cmd303.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter04/__MACOSX/restful_python_2_04_01/Flask01/._cmd303.txt -------------------------------------------------------------------------------- /Chapter04/__MACOSX/restful_python_2_04_01/Flask01/service/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter04/__MACOSX/restful_python_2_04_01/Flask01/service/migrations/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter04/__MACOSX/restful_python_2_04_01/Flask01/service/tests/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter04/__MACOSX/restful_python_2_04_02/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter04/__MACOSX/restful_python_2_04_02/Flask01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter04/__MACOSX/restful_python_2_04_02/Flask01/service/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter04/__MACOSX/restful_python_2_04_02/Flask01/service/migrations/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter04/__MACOSX/restful_python_2_04_02/Flask01/service/tests/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter04/restful_python_2_04_01/.DS_Store -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter04/restful_python_2_04_01/Flask01/.DS_Store -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/cmd201.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/notification-categories/" name='Information' 2 | http POST ":5000/service/notification-categories/" name='Warning' 3 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/cmd205.txt: -------------------------------------------------------------------------------- 1 | http ":5000/service/notification_categories/1" 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/cmd206.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:5000/service/notification_categories/1" -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/cmd207.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/notifications/" message='Score calculation error' ttl=30 notification_category="Error" -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/cmd208.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"message":"Score calculation error", "ttl":30, "notification_category":"Error"}' ":5000/service/notifications/" 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/cmd301.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/notification_categories/" name='Warning' 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/cmd302.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"name":"Warning"}' "localhost:5000/service/notification_categories/" 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/cmd303.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/notification_categories/" name='Error' 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/cmd304.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"name":"Error"}' "localhost:5000/service/notification_categories/" 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/cmd305.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/notifications/" message='eSports competition finishes in 10 minutes' ttl=30 notification_category="Information" 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/cmd306.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"message":"eSports competition finishes in 10 minutes", "ttl":30, "notification_category": "Information"}' "localhost:5000/service/notifications/" 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/cmd307.txt: -------------------------------------------------------------------------------- 1 | http PATCH ":5000/service/notifications/2" displayed_once=true displayed_times=1 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/cmd308.txt: -------------------------------------------------------------------------------- 1 | curl -iX PATCH -H "Content-Type: application/json" -d '{"displayed_once":"true", "displayed_times":1}' "localhost:5000/service/notifications/2" 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/cmd311.txt: -------------------------------------------------------------------------------- 1 | http ":5000/service/notifications/" 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/cmd312.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:5000/service/notifications/" 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/cmd313.txt: -------------------------------------------------------------------------------- 1 | http ":5000/service/notifications/?page=1" 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/cmd314.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:5000/service/notifications/?page=1" 2 | 3 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/cmd315.txt: -------------------------------------------------------------------------------- 1 | http ":5000/service/notifications/?page=2" 2 | 3 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/cmd316.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:5000/service/notifications/?page=2" 2 | 3 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/cmd317.txt: -------------------------------------------------------------------------------- 1 | http GET ":5000/service/notifications/?page=1" 2 | 3 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/cmd318.txt: -------------------------------------------------------------------------------- 1 | http GET ":5000/service/notifications/?page=1" 2 | 3 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/cmd319.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/users/" name='gaston-hillar' password='wrongpassword' 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/cmd320.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"name": "gaston-hillar", "wrongpassword": "brandonpassword"}' "localhost:5000/service/users/" 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/cmd321.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/users/" name='gaston-hillar' password='TTl#ID16^eplG' 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/cmd322.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"name": "gaston-hillar", "password": " TTl#ID16^eplG"}' "localhost:5000/service/users/" 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/cmd323.txt: -------------------------------------------------------------------------------- 1 | http -a 'gaston-hillar':'iA4!V3riS#c^R9' ":5000/service/notifications/?page=1" 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/cmd324.txt: -------------------------------------------------------------------------------- 1 | curl --user 'gaston-hillar':'TTl#ID16^eplG' -iX GET "localhost:5000/service/notifications/?page=1" 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/configure_test_database.sql: -------------------------------------------------------------------------------- 1 | GRANT ALL PRIVILEGES ON DATABASE "test_flask_notifications" TO your_user_name; 2 | \q 3 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/pip-selfcheck.json: -------------------------------------------------------------------------------- 1 | {"last_check":"2018-10-08T16:40:36Z","pypi_version":"18.1"} -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/service/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter04/restful_python_2_04_01/Flask01/service/.DS_Store -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/service/migrations/README: -------------------------------------------------------------------------------- 1 | Generic single-database configuration. -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_01/Flask01/service/setup.cfg: -------------------------------------------------------------------------------- 1 | [tool:pytest] 2 | testpaths = tests 3 | 4 | [coverage:run] 5 | branch = True 6 | source = 7 | models 8 | views 9 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter04/restful_python_2_04_02/.DS_Store -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter04/restful_python_2_04_02/Flask01/.DS_Store -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/cmd201.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/notification-categories/" name='Information' 2 | http POST ":5000/service/notification-categories/" name='Warning' 3 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/cmd205.txt: -------------------------------------------------------------------------------- 1 | http ":5000/service/notification_categories/1" 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/cmd206.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:5000/service/notification_categories/1" -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/cmd207.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/notifications/" message='Score calculation error' ttl=30 notification_category="Error" -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/cmd208.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"message":"Score calculation error", "ttl":30, "notification_category":"Error"}' ":5000/service/notifications/" 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/cmd301.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/notification_categories/" name='Warning' 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/cmd302.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"name":"Warning"}' "localhost:5000/service/notification_categories/" 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/cmd303.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/notification_categories/" name='Error' 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/cmd304.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"name":"Error"}' "localhost:5000/service/notification_categories/" 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/cmd305.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/notifications/" message='eSports competition finishes in 10 minutes' ttl=30 notification_category="Information" 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/cmd306.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"message":"eSports competition finishes in 10 minutes", "ttl":30, "notification_category": "Information"}' "localhost:5000/service/notifications/" 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/cmd307.txt: -------------------------------------------------------------------------------- 1 | http PATCH ":5000/service/notifications/2" displayed_once=true displayed_times=1 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/cmd308.txt: -------------------------------------------------------------------------------- 1 | curl -iX PATCH -H "Content-Type: application/json" -d '{"displayed_once":"true", "displayed_times":1}' "localhost:5000/service/notifications/2" 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/cmd311.txt: -------------------------------------------------------------------------------- 1 | http ":5000/service/notifications/" 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/cmd312.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:5000/service/notifications/" 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/cmd313.txt: -------------------------------------------------------------------------------- 1 | http ":5000/service/notifications/?page=1" 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/cmd314.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:5000/service/notifications/?page=1" 2 | 3 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/cmd315.txt: -------------------------------------------------------------------------------- 1 | http ":5000/service/notifications/?page=2" 2 | 3 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/cmd316.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:5000/service/notifications/?page=2" 2 | 3 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/cmd317.txt: -------------------------------------------------------------------------------- 1 | http GET ":5000/service/notifications/?page=1" 2 | 3 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/cmd318.txt: -------------------------------------------------------------------------------- 1 | http GET ":5000/service/notifications/?page=1" 2 | 3 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/cmd319.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/users/" name='gaston-hillar' password='wrongpassword' 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/cmd320.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"name": "gaston-hillar", "wrongpassword": "brandonpassword"}' "localhost:5000/service/users/" 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/cmd321.txt: -------------------------------------------------------------------------------- 1 | http POST ":5000/service/users/" name='gaston-hillar' password='TTl#ID16^eplG' 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/cmd322.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"name": "gaston-hillar", "password": " TTl#ID16^eplG"}' "localhost:5000/service/users/" 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/cmd323.txt: -------------------------------------------------------------------------------- 1 | http -a 'gaston-hillar':'iA4!V3riS#c^R9' ":5000/service/notifications/?page=1" 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/cmd324.txt: -------------------------------------------------------------------------------- 1 | curl --user 'gaston-hillar':'TTl#ID16^eplG' -iX GET "localhost:5000/service/notifications/?page=1" 2 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/configure_test_database.sql: -------------------------------------------------------------------------------- 1 | GRANT ALL PRIVILEGES ON DATABASE "test_flask_notifications" TO your_user_name; 2 | \q 3 | -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/pip-selfcheck.json: -------------------------------------------------------------------------------- 1 | {"last_check":"2018-10-08T16:40:36Z","pypi_version":"18.1"} -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/service/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter04/restful_python_2_04_02/Flask01/service/.DS_Store -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/service/migrations/README: -------------------------------------------------------------------------------- 1 | Generic single-database configuration. -------------------------------------------------------------------------------- /Chapter04/restful_python_2_04_02/Flask01/service/setup.cfg: -------------------------------------------------------------------------------- 1 | [tool:pytest] 2 | testpaths = tests 3 | 4 | [coverage:run] 5 | branch = True 6 | source = 7 | models 8 | views 9 | -------------------------------------------------------------------------------- /Chapter05/__MACOSX/restful_python_2_05/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter05/__MACOSX/restful_python_2_05/Django01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter05/__MACOSX/restful_python_2_05/Django01/games_service/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter05/__MACOSX/restful_python_2_05/Django01/games_service/games/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter05/__MACOSX/restful_python_2_05/Django01/games_service/games/migrations/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter05/__MACOSX/restful_python_2_05/Django01/games_service/games_service/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter05/restful_python_2_05/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter05/restful_python_2_05/.DS_Store -------------------------------------------------------------------------------- /Chapter05/restful_python_2_05/Django01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter05/restful_python_2_05/Django01/.DS_Store -------------------------------------------------------------------------------- /Chapter05/restful_python_2_05/Django01/cmd/check_contents_sqlite3_games_game_table.txt: -------------------------------------------------------------------------------- 1 | sqlite3 db.sqlite3 "SELECT * FROM games_game ORDER BY name;" 2 | -------------------------------------------------------------------------------- /Chapter05/restful_python_2_05/Django01/cmd/cmd01.txt: -------------------------------------------------------------------------------- 1 | http ":8000/games/" 2 | -------------------------------------------------------------------------------- /Chapter05/restful_python_2_05/Django01/cmd/cmd02.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/games/" 2 | -------------------------------------------------------------------------------- /Chapter05/restful_python_2_05/Django01/cmd/cmd03.txt: -------------------------------------------------------------------------------- 1 | http ":8000/games/3/" 2 | -------------------------------------------------------------------------------- /Chapter05/restful_python_2_05/Django01/cmd/cmd04.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/games/3/" 2 | -------------------------------------------------------------------------------- /Chapter05/restful_python_2_05/Django01/cmd/cmd05.txt: -------------------------------------------------------------------------------- 1 | http ":8000/games/888/" 2 | -------------------------------------------------------------------------------- /Chapter05/restful_python_2_05/Django01/cmd/cmd06.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/games/888/" 2 | -------------------------------------------------------------------------------- /Chapter05/restful_python_2_05/Django01/cmd/cmd07.txt: -------------------------------------------------------------------------------- 1 | http POST ":8000/games/" name='Fortnite' esrb_rating='T (Teen)' release_date='2017-05-18T03:02:00.776594Z' 2 | -------------------------------------------------------------------------------- /Chapter05/restful_python_2_05/Django01/cmd/cmd08.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"name":"Fortnite", "esrb_rating":"T (Teen)", "release_date": "2017-05-18T03:02:00.776594Z"}' "localhost:8000/games/" 2 | -------------------------------------------------------------------------------- /Chapter05/restful_python_2_05/Django01/cmd/cmd09.txt: -------------------------------------------------------------------------------- 1 | http PUT ":8000/games/4/" name='Fortnite Battle Royale' esrb_rating='T (Teen)' played_once=true played_times=3 release_date='2017-05-20T03:02:00.776594Z' 2 | -------------------------------------------------------------------------------- /Chapter05/restful_python_2_05/Django01/cmd/cmd11.txt: -------------------------------------------------------------------------------- 1 | http PUT ":8000/games/4/" name='Fortnite Forever' 2 | -------------------------------------------------------------------------------- /Chapter05/restful_python_2_05/Django01/cmd/cmd12.txt: -------------------------------------------------------------------------------- 1 | curl -iX PUT -H "Content-Type: application/json" -d '{"name":"Fortnite Forever"}' "localhost:8000/games/4/" 2 | -------------------------------------------------------------------------------- /Chapter05/restful_python_2_05/Django01/cmd/cmd13.txt: -------------------------------------------------------------------------------- 1 | http DELETE ":8000/games/4/" 2 | -------------------------------------------------------------------------------- /Chapter05/restful_python_2_05/Django01/cmd/cmd14.txt: -------------------------------------------------------------------------------- 1 | curl -iX DELETE "localhost:8000/games/4/" 2 | -------------------------------------------------------------------------------- /Chapter05/restful_python_2_05/Django01/cmd/cmd15.txt: -------------------------------------------------------------------------------- 1 | curl -iX DELETE "localhost:8000/games/4/" 2 | -------------------------------------------------------------------------------- /Chapter05/restful_python_2_05/Django01/cmd/list_sqlite3_tables.txt: -------------------------------------------------------------------------------- 1 | sqlite3 db.sqlite3 ".tables" 2 | -------------------------------------------------------------------------------- /Chapter05/restful_python_2_05/Django01/cmd/retrieve_sql_sqlite3_games_game_table.txt: -------------------------------------------------------------------------------- 1 | sqlite3 db.sqlite3 ".schema games_game" 2 | -------------------------------------------------------------------------------- /Chapter05/restful_python_2_05/Django01/games_service/games/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | -------------------------------------------------------------------------------- /Chapter05/restful_python_2_05/Django01/games_service/games/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class GamesConfig(AppConfig): 5 | name = 'games' 6 | -------------------------------------------------------------------------------- /Chapter05/restful_python_2_05/Django01/games_service/games/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /Chapter05/restful_python_2_05/Django01/pip-selfcheck.json: -------------------------------------------------------------------------------- 1 | {"last_check":"2018-10-24T14:38:53Z","pypi_version":"18.1"} -------------------------------------------------------------------------------- /Chapter05/restful_python_2_05/Django01/requirements.txt: -------------------------------------------------------------------------------- 1 | Django==2.1.2 2 | djangorestframework==3.9.0 3 | httpie==0.9.9 4 | -------------------------------------------------------------------------------- /Chapter06/__MACOSX/restful_python_2_06_01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter06/__MACOSX/restful_python_2_06_01/Django01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter06/__MACOSX/restful_python_2_06_01/Django01/games_service/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter06/__MACOSX/restful_python_2_06_01/Django01/games_service/games/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter06/__MACOSX/restful_python_2_06_01/Django01/games_service/games/migrations/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter06/__MACOSX/restful_python_2_06_01/Django01/games_service/games_service/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter06/restful_python_2_06_01/.DS_Store -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter06/restful_python_2_06_01/Django01/.DS_Store -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/cmd/check_contents_sqlite3_games_game_table.txt: -------------------------------------------------------------------------------- 1 | sqlite3 db.sqlite3 "SELECT * FROM games_game ORDER BY name;" 2 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/cmd/cmd601.txt: -------------------------------------------------------------------------------- 1 | http -v ":8000/games/" "Accept:text/html" 2 | http -v ":8000/games/" "Accept:application/json" 3 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/cmd/cmd602.txt: -------------------------------------------------------------------------------- 1 | curl -H "Accept: text/html" -viX GET "localhost:8000/games/" 2 | curl -H "Accept: application/json" -viX GET "localhost:8000/games/" 3 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/cmd/cmd603.txt: -------------------------------------------------------------------------------- 1 | http OPTIONS ":8000/games/" 2 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/cmd/cmd604.txt: -------------------------------------------------------------------------------- 1 | curl -iX OPTIONS "localhost:8000/games/" 2 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/cmd/cmd605.txt: -------------------------------------------------------------------------------- 1 | http OPTIONS ":8000/games/3/" 2 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/cmd/cmd606.txt: -------------------------------------------------------------------------------- 1 | curl -iX OPTIONS "localhost:8000/games/3/" 2 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/cmd/cmd607.txt: -------------------------------------------------------------------------------- 1 | http OPTIONS ":8000/games/" 2 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/cmd/cmd608.txt: -------------------------------------------------------------------------------- 1 | http OPTIONS ":8000/games/" 2 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/cmd/cmd609.txt: -------------------------------------------------------------------------------- 1 | http OPTIONS ":8000/games/2/" 2 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/cmd/cmd610.txt: -------------------------------------------------------------------------------- 1 | curl -iX OPTIONS "localhost:8000/games/2/" 2 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/cmd/cmd611.txt: -------------------------------------------------------------------------------- 1 | http -vf POST ":8000/games/" name='Kingdom Hearts III' esrb_rating='E10+ (Everyone 10+)' release_date='2019-01-25T03:02:00.776594Z' 2 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/cmd/cmd612.txt: -------------------------------------------------------------------------------- 1 | curl -viX POST -d '{"name":"Kingdom Hearts III", "esrb_rating":"E10+ (Everyone 10+)", "release_date": "2019-01-25T03:02:00.776594Z"}' "localhost:8000/games/" 2 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/cmd/cmd613.txt: -------------------------------------------------------------------------------- 1 | http PUT ":8000/games/" 2 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/cmd/cmd614.txt: -------------------------------------------------------------------------------- 1 | curl -iX PUT "localhost:8000/games/" 2 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/cmd/cmd615.txt: -------------------------------------------------------------------------------- 1 | http POST ":8000/esrb-ratings/" description='T (Teen)' 2 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/cmd/cmd616.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"description":"T (Teen)"}' "localhost:8000/esrb-ratings/" 2 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/cmd/cmd619.txt: -------------------------------------------------------------------------------- 1 | http ":8000/esrb-ratings/1/" 2 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/cmd/cmd620.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/esrb-ratings/1/" 2 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/cmd/cmd621.txt: -------------------------------------------------------------------------------- 1 | http POST ":8000/games/" name='LEGO DC Super-Villains' esrb_rating='EC (Early Childhood)' release_date='2018-01-10T03:02:00.776594Z' 2 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/cmd/cmd622.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"name":"LEGO DC Super-Villains", "esrb_rating":"EC (Early Childhood)", "release_date": "2018-01-10T03:02:00.776594Z"}' "localhost:8000/games/" 2 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/cmd/cmd623.txt: -------------------------------------------------------------------------------- 1 | http POST ":8000/players/" name='Gaston Hillar' gender='M' 2 | http POST ":8000/players/" name='Enzo Scocco' gender='M' 3 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/cmd/cmd627.txt: -------------------------------------------------------------------------------- 1 | http ":8000/players/1/" 2 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/cmd/cmd628.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/players/1/" 2 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/cmd/list_database_tables.sql: -------------------------------------------------------------------------------- 1 | psql --username=your_games_user_name --dbname=django_games --command="\dt" 2 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/cmd/list_sqlite3_tables.txt: -------------------------------------------------------------------------------- 1 | sqlite3 db.sqlite3 ".tables" 2 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/cmd/retrieve_sql_sqlite3_games_game_table.txt: -------------------------------------------------------------------------------- 1 | sqlite3 db.sqlite3 ".schema games_game" 2 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/games_service/games/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/games_service/games/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class GamesConfig(AppConfig): 5 | name = 'games' 6 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/games_service/games/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/pip-selfcheck.json: -------------------------------------------------------------------------------- 1 | {"last_check":"2018-10-24T14:38:53Z","pypi_version":"18.1"} -------------------------------------------------------------------------------- /Chapter06/restful_python_2_06_01/Django01/requirements.txt: -------------------------------------------------------------------------------- 1 | Django==2.1.2 2 | djangorestframework==3.9.0 3 | httpie==0.9.9 4 | psycopg2==2.7.5 5 | -------------------------------------------------------------------------------- /Chapter07/__MACOSX/restful_python_2_07_01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter07/__MACOSX/restful_python_2_07_01/Django01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter07/__MACOSX/restful_python_2_07_01/Django01/cmd/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter07/__MACOSX/restful_python_2_07_01/Django01/games_service/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter07/__MACOSX/restful_python_2_07_01/Django01/games_service/games/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter07/__MACOSX/restful_python_2_07_01/Django01/games_service/games_service/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter07/__MACOSX/restful_python_2_07_02/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter07/__MACOSX/restful_python_2_07_02/Django01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter07/__MACOSX/restful_python_2_07_02/Django01/cmd/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter07/__MACOSX/restful_python_2_07_02/Django01/games_service/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter07/__MACOSX/restful_python_2_07_02/Django01/games_service/games/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter07/__MACOSX/restful_python_2_07_02/Django01/games_service/games_service/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter07/__MACOSX/restful_python_2_07_03/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter07/__MACOSX/restful_python_2_07_03/Django01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter07/__MACOSX/restful_python_2_07_03/Django01/games_service/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter07/__MACOSX/restful_python_2_07_03/Django01/games_service/games/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter07/__MACOSX/restful_python_2_07_03/Django01/games_service/games_service/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter07/__MACOSX/restful_python_2_07_04/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter07/__MACOSX/restful_python_2_07_04/Django01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter07/__MACOSX/restful_python_2_07_04/Django01/cmd/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter07/__MACOSX/restful_python_2_07_04/Django01/games_service/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter07/__MACOSX/restful_python_2_07_04/Django01/games_service/games/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter07/__MACOSX/restful_python_2_07_04/Django01/games_service/games/migrations/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter07/__MACOSX/restful_python_2_07_04/Django01/games_service/games_service/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter07/restful_python_2_07_01/.DS_Store -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_01/Django01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter07/restful_python_2_07_01/Django01/.DS_Store -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_01/Django01/cmd/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter07/restful_python_2_07_01/Django01/cmd/.DS_Store -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_01/Django01/cmd/check_contents_sqlite3_games_game_table.txt: -------------------------------------------------------------------------------- 1 | sqlite3 db.sqlite3 "SELECT * FROM games_game ORDER BY name;" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_01/Django01/cmd/cmd701.txt: -------------------------------------------------------------------------------- 1 | http POST ":8000/esrb-ratings/" description='T (Teen)' 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_01/Django01/cmd/cmd702.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"description":"T (Teen)"}' "localhost:8000/esrb-ratings/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_01/Django01/cmd/cmd703.txt: -------------------------------------------------------------------------------- 1 | http PATCH ":8000/games/2/" played_once=true played_times=10 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_01/Django01/cmd/cmd704.txt: -------------------------------------------------------------------------------- 1 | curl -iX PATCH -H "Content-Type: application/json" -d '{"played_once":"true", "played_times": 10}' "localhost:8000/games/2/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_01/Django01/cmd/cmd707.txt: -------------------------------------------------------------------------------- 1 | http GET ":8000/games/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_01/Django01/cmd/cmd708.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/games/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_01/Django01/cmd/cmd709.txt: -------------------------------------------------------------------------------- 1 | http GET ":8000/games/?offset=0" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_01/Django01/cmd/cmd710.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/games/?offset=0" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_01/Django01/cmd/cmd711.txt: -------------------------------------------------------------------------------- 1 | http GET ":8000/games/?limit=4&offset=0" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_01/Django01/cmd/cmd712.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET ":8000/games/?limit=4&offset=0" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_01/Django01/cmd/cmd713.txt: -------------------------------------------------------------------------------- 1 | http GET ":8000/games/?limit=4&offset=4" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_01/Django01/cmd/cmd714.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET ":8000/games/?limit=4&offset=4" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_01/Django01/cmd/cmd715.txt: -------------------------------------------------------------------------------- 1 | http GET ":8000/games/?offset=4" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_01/Django01/cmd/cmd716.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/games/?offset=4" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_01/Django01/cmd/cmd717.txt: -------------------------------------------------------------------------------- 1 | http GET ":8000/games/?limit=4&offset=8" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_01/Django01/cmd/cmd718.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/games/?limit=4&offset=8" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_01/Django01/cmd/list_database_tables.sql: -------------------------------------------------------------------------------- 1 | psql --username=your_games_user_name --dbname=django_games --command="\dt" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_01/Django01/cmd/list_sqlite3_tables.txt: -------------------------------------------------------------------------------- 1 | sqlite3 db.sqlite3 ".tables" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_01/Django01/cmd/retrieve_sql_sqlite3_games_game_table.txt: -------------------------------------------------------------------------------- 1 | sqlite3 db.sqlite3 ".schema games_game" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_01/Django01/games_service/games/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_01/Django01/games_service/games/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class GamesConfig(AppConfig): 5 | name = 'games' 6 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_01/Django01/games_service/games/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_01/Django01/pip-selfcheck.json: -------------------------------------------------------------------------------- 1 | {"last_check":"2018-10-24T14:38:53Z","pypi_version":"18.1"} -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_01/Django01/requirements.txt: -------------------------------------------------------------------------------- 1 | Django==2.1.2 2 | djangorestframework==3.9.0 3 | httpie==0.9.9 4 | psycopg2==2.7.5 5 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_02/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter07/restful_python_2_07_02/.DS_Store -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_02/Django01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter07/restful_python_2_07_02/Django01/.DS_Store -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_02/Django01/cmd/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter07/restful_python_2_07_02/Django01/cmd/.DS_Store -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_02/Django01/cmd/check_contents_sqlite3_games_game_table.txt: -------------------------------------------------------------------------------- 1 | sqlite3 db.sqlite3 "SELECT * FROM games_game ORDER BY name;" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_02/Django01/cmd/cmd701.txt: -------------------------------------------------------------------------------- 1 | http POST ":8000/esrb-ratings/" description='T (Teen)' 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_02/Django01/cmd/cmd702.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"description":"T (Teen)"}' "localhost:8000/esrb-ratings/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_02/Django01/cmd/cmd703.txt: -------------------------------------------------------------------------------- 1 | http PATCH ":8000/games/2/" played_once=true played_times=10 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_02/Django01/cmd/cmd704.txt: -------------------------------------------------------------------------------- 1 | curl -iX PATCH -H "Content-Type: application/json" -d '{"played_once":"true", "played_times": 10}' "localhost:8000/games/2/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_02/Django01/cmd/cmd707.txt: -------------------------------------------------------------------------------- 1 | http GET ":8000/games/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_02/Django01/cmd/cmd708.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/games/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_02/Django01/cmd/cmd709.txt: -------------------------------------------------------------------------------- 1 | http GET ":8000/games/?offset=0" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_02/Django01/cmd/cmd710.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/games/?offset=0" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_02/Django01/cmd/cmd711.txt: -------------------------------------------------------------------------------- 1 | http GET ":8000/games/?limit=4&offset=0" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_02/Django01/cmd/cmd712.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET ":8000/games/?limit=4&offset=0" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_02/Django01/cmd/cmd713.txt: -------------------------------------------------------------------------------- 1 | http GET ":8000/games/?limit=4&offset=4" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_02/Django01/cmd/cmd714.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET ":8000/games/?limit=4&offset=4" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_02/Django01/cmd/cmd715.txt: -------------------------------------------------------------------------------- 1 | http GET ":8000/games/?offset=4" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_02/Django01/cmd/cmd716.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/games/?offset=4" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_02/Django01/cmd/cmd717.txt: -------------------------------------------------------------------------------- 1 | http GET ":8000/games/?limit=4&offset=8" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_02/Django01/cmd/cmd718.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/games/?limit=4&offset=8" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_02/Django01/cmd/list_database_tables.sql: -------------------------------------------------------------------------------- 1 | psql --username=your_games_user_name --dbname=django_games --command="\dt" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_02/Django01/cmd/list_sqlite3_tables.txt: -------------------------------------------------------------------------------- 1 | sqlite3 db.sqlite3 ".tables" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_02/Django01/cmd/retrieve_sql_sqlite3_games_game_table.txt: -------------------------------------------------------------------------------- 1 | sqlite3 db.sqlite3 ".schema games_game" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_02/Django01/games_service/games/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_02/Django01/games_service/games/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class GamesConfig(AppConfig): 5 | name = 'games' 6 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_02/Django01/games_service/games/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_02/Django01/pip-selfcheck.json: -------------------------------------------------------------------------------- 1 | {"last_check":"2018-10-24T14:38:53Z","pypi_version":"18.1"} -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_02/Django01/requirements.txt: -------------------------------------------------------------------------------- 1 | Django==2.1.2 2 | djangorestframework==3.9.0 3 | httpie==0.9.9 4 | psycopg2==2.7.5 5 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter07/restful_python_2_07_03/.DS_Store -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter07/restful_python_2_07_03/Django01/.DS_Store -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/check_contents_sqlite3_games_game_table.txt: -------------------------------------------------------------------------------- 1 | sqlite3 db.sqlite3 "SELECT * FROM games_game ORDER BY name;" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd601.txt: -------------------------------------------------------------------------------- 1 | http -v ":8000/games/" "Accept:text/html" 2 | http -v ":8000/games/" "Accept:application/json" 3 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd602.txt: -------------------------------------------------------------------------------- 1 | curl -H "Accept: text/html" -viX GET "localhost:8000/games/" 2 | curl -H "Accept: application/json" -viX GET "localhost:8000/games/" 3 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd603.txt: -------------------------------------------------------------------------------- 1 | http OPTIONS ":8000/games/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd604.txt: -------------------------------------------------------------------------------- 1 | curl -iX OPTIONS "localhost:8000/games/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd605.txt: -------------------------------------------------------------------------------- 1 | http OPTIONS ":8000/games/3/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd606.txt: -------------------------------------------------------------------------------- 1 | curl -iX OPTIONS "localhost:8000/games/3/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd607.txt: -------------------------------------------------------------------------------- 1 | http OPTIONS ":8000/games/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd608.txt: -------------------------------------------------------------------------------- 1 | http OPTIONS ":8000/games/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd609.txt: -------------------------------------------------------------------------------- 1 | http OPTIONS ":8000/games/2/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd610.txt: -------------------------------------------------------------------------------- 1 | curl -iX OPTIONS "localhost:8000/games/2/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd611.txt: -------------------------------------------------------------------------------- 1 | http -vf POST ":8000/games/" name='Kingdom Hearts III' esrb_rating='E10+ (Everyone 10+)' release_date='2019-01-25T03:02:00.776594Z' 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd612.txt: -------------------------------------------------------------------------------- 1 | curl -viX POST -d '{"name":"Kingdom Hearts III", "esrb_rating":"E10+ (Everyone 10+)", "release_date": "2019-01-25T03:02:00.776594Z"}' "localhost:8000/games/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd613.txt: -------------------------------------------------------------------------------- 1 | http PUT ":8000/games/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd614.txt: -------------------------------------------------------------------------------- 1 | curl -iX PUT "localhost:8000/games/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd615.txt: -------------------------------------------------------------------------------- 1 | http POST ":8000/esrb-ratings/" description='T (Teen)' 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd616.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"description":"T (Teen)"}' "localhost:8000/esrb-ratings/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd619.txt: -------------------------------------------------------------------------------- 1 | http ":8000/esrb-ratings/1/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd620.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/esrb-ratings/1/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd621.txt: -------------------------------------------------------------------------------- 1 | http POST ":8000/games/" name='LEGO DC Super-Villains' esrb_rating='EC (Early Childhood)' release_date='2018-01-10T03:02:00.776594Z' 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd622.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"name":"LEGO DC Super-Villains", "esrb_rating":"EC (Early Childhood)", "release_date": "2018-01-10T03:02:00.776594Z"}' "localhost:8000/games/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd623.txt: -------------------------------------------------------------------------------- 1 | http POST ":8000/players/" name='Gaston Hillar' gender='M' 2 | http POST ":8000/players/" name='Enzo Scocco' gender='M' 3 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd627.txt: -------------------------------------------------------------------------------- 1 | http ":8000/players/1/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd628.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/players/1/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd701.txt: -------------------------------------------------------------------------------- 1 | http POST ":8000/esrb-ratings/" description='T (Teen)' 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd702.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"description":"T (Teen)"}' "localhost:8000/esrb-ratings/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd703.txt: -------------------------------------------------------------------------------- 1 | http PATCH ":8000/games/2/" played_once=true played_times=10 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd704.txt: -------------------------------------------------------------------------------- 1 | curl -iX PATCH -H "Content-Type: application/json" -d '{"played_once":"true", "played_times": 10}' "localhost:8000/games/2/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd707.txt: -------------------------------------------------------------------------------- 1 | http GET ":8000/games/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd708.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/games/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd709.txt: -------------------------------------------------------------------------------- 1 | http GET ":8000/games/?offset=0" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd710.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/games/?offset=0" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd711.txt: -------------------------------------------------------------------------------- 1 | http GET ":8000/games/?limit=4&offset=0" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd712.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET ":8000/games/?limit=4&offset=0" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd713.txt: -------------------------------------------------------------------------------- 1 | http GET ":8000/games/?limit=4&offset=4" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd714.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET ":8000/games/?limit=4&offset=4" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd715.txt: -------------------------------------------------------------------------------- 1 | http GET ":8000/games/?offset=4" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd716.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/games/?offset=4" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd717.txt: -------------------------------------------------------------------------------- 1 | http GET ":8000/games/?limit=4&offset=8" -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd718.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/games/?limit=4&offset=8" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd719.txt: -------------------------------------------------------------------------------- 1 | http GET ":8000/games/?limit=20" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/cmd720.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/games/?limit=20" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/list_database_tables.sql: -------------------------------------------------------------------------------- 1 | psql --username=your_games_user_name --dbname=django_games --command="\dt" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/list_sqlite3_tables.txt: -------------------------------------------------------------------------------- 1 | sqlite3 db.sqlite3 ".tables" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/cmd/retrieve_sql_sqlite3_games_game_table.txt: -------------------------------------------------------------------------------- 1 | sqlite3 db.sqlite3 ".schema games_game" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/games_service/games/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/games_service/games/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class GamesConfig(AppConfig): 5 | name = 'games' 6 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/games_service/games/max_limit_pagination.py: -------------------------------------------------------------------------------- 1 | from rest_framework.pagination import LimitOffsetPagination 2 | 3 | 4 | class MaxLimitPagination(LimitOffsetPagination): 5 | max_limit = 8 6 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/games_service/games/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/pip-selfcheck.json: -------------------------------------------------------------------------------- 1 | {"last_check":"2018-10-24T14:38:53Z","pypi_version":"18.1"} -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_03/Django01/requirements.txt: -------------------------------------------------------------------------------- 1 | Django==2.1.2 2 | djangorestframework==3.9.0 3 | httpie==0.9.9 4 | psycopg2==2.7.5 5 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter07/restful_python_2_07_04/.DS_Store -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter07/restful_python_2_07_04/Django01/.DS_Store -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter07/restful_python_2_07_04/Django01/cmd/.DS_Store -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/check_contents_sqlite3_games_game_table.txt: -------------------------------------------------------------------------------- 1 | sqlite3 db.sqlite3 "SELECT * FROM games_game ORDER BY name;" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/cmd701.txt: -------------------------------------------------------------------------------- 1 | http POST ":8000/esrb-ratings/" description='T (Teen)' 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/cmd702.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"description":"T (Teen)"}' "localhost:8000/esrb-ratings/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/cmd703.txt: -------------------------------------------------------------------------------- 1 | http PATCH ":8000/games/2/" played_once=true played_times=10 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/cmd704.txt: -------------------------------------------------------------------------------- 1 | curl -iX PATCH -H "Content-Type: application/json" -d '{"played_once":"true", "played_times": 10}' "localhost:8000/games/2/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/cmd707.txt: -------------------------------------------------------------------------------- 1 | http GET ":8000/games/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/cmd708.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/games/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/cmd709.txt: -------------------------------------------------------------------------------- 1 | http GET ":8000/games/?offset=0" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/cmd710.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/games/?offset=0" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/cmd711.txt: -------------------------------------------------------------------------------- 1 | http GET ":8000/games/?limit=4&offset=0" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/cmd712.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET ":8000/games/?limit=4&offset=0" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/cmd713.txt: -------------------------------------------------------------------------------- 1 | http GET ":8000/games/?limit=4&offset=4" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/cmd714.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET ":8000/games/?limit=4&offset=4" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/cmd715.txt: -------------------------------------------------------------------------------- 1 | http GET ":8000/games/?offset=4" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/cmd716.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/games/?offset=4" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/cmd717.txt: -------------------------------------------------------------------------------- 1 | http GET ":8000/games/?limit=4&offset=8" -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/cmd718.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/games/?limit=4&offset=8" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/cmd719.txt: -------------------------------------------------------------------------------- 1 | http GET ":8000/games/?limit=20" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/cmd720.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/games/?limit=20" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/cmd721.txt: -------------------------------------------------------------------------------- 1 | http POST ":8000/games/" name='Super Mario Odyssey' esrb_rating='T (Teen)' release_date='2017-10-27T01:00:00.776594Z' 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/cmd722.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"name":"Super Mario Odyssey", "esrb_rating":"T (Teen)", "release_date": "2017-10-27T01:00:00.776594Z"}' "localhost:8000/games/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/cmd723.txt: -------------------------------------------------------------------------------- 1 | http -a your_games_super_user:'WCS3qn!a4ybX#' POST ":8000/games/" name='Super Mario Odyssey' esrb_rating='T (Teen)' release_date='2017-10-27T01:00:00.776594Z' 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/cmd725.txt: -------------------------------------------------------------------------------- 1 | http -a 'gaston-hillar':'FG$gI^76q#yA3v' PATCH ":8000/games/13/" played_once=true played_times=15 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/cmd726.txt: -------------------------------------------------------------------------------- 1 | curl --user 'gaston-hillar':'FG$gI^76q#yA3v' -iX PATCH -H "Content-Type: application/json" -d '{"played_once": "true", "played_times": 15}' "localhost:8000/games/13/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/cmd727.txt: -------------------------------------------------------------------------------- 1 | http -a 'gaston-hillar':'FG$gI^76q#yA3v' GET ":8000/games/13/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/cmd728.txt: -------------------------------------------------------------------------------- 1 | curl --user 'gaston-hillar':'FG$gI^76q#yA3v' -iX GET "localhost:8000/games/13/" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/create_test_user.py: -------------------------------------------------------------------------------- 1 | from django.contrib.auth.models import User 2 | user = User.objects.create_user('gaston-hillar', 'testuser@example.com', 'FG$gI^76q#yA3v') 3 | user.save() 4 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/list_database_tables.sql: -------------------------------------------------------------------------------- 1 | psql --username=your_games_user_name --dbname=django_games --command="\dt" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/list_sqlite3_tables.txt: -------------------------------------------------------------------------------- 1 | sqlite3 db.sqlite3 ".tables" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/retrieve_id_for_django_superuser.sql: -------------------------------------------------------------------------------- 1 | psql --username=your_games_user_name --dbname=django_games --command="SELECT id FROM auth_user WHERE username = 'your_games_super_user';" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/cmd/retrieve_sql_sqlite3_games_game_table.txt: -------------------------------------------------------------------------------- 1 | sqlite3 db.sqlite3 ".schema games_game" 2 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/games_service/games/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/games_service/games/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class GamesConfig(AppConfig): 5 | name = 'games' 6 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/games_service/games/max_limit_pagination.py: -------------------------------------------------------------------------------- 1 | from rest_framework.pagination import LimitOffsetPagination 2 | 3 | 4 | class MaxLimitPagination(LimitOffsetPagination): 5 | max_limit = 8 6 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/games_service/games/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/pip-selfcheck.json: -------------------------------------------------------------------------------- 1 | {"last_check":"2018-10-24T14:38:53Z","pypi_version":"18.1"} -------------------------------------------------------------------------------- /Chapter07/restful_python_2_07_04/Django01/requirements.txt: -------------------------------------------------------------------------------- 1 | Django==2.1.2 2 | djangorestframework==3.9.0 3 | httpie==0.9.9 4 | psycopg2==2.7.5 5 | -------------------------------------------------------------------------------- /Chapter08/__MACOSX/restful_python_2_08_01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter08/__MACOSX/restful_python_2_08_01/Django01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter08/__MACOSX/restful_python_2_08_01/Django01/cmd/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter08/__MACOSX/restful_python_2_08_01/Django01/games_service/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter08/__MACOSX/restful_python_2_08_01/Django01/games_service/games/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter08/__MACOSX/restful_python_2_08_01/Django01/games_service/games/migrations/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter08/__MACOSX/restful_python_2_08_01/Django01/games_service/games_service/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter08/__MACOSX/restful_python_2_08_02/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter08/__MACOSX/restful_python_2_08_02/Django01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter08/__MACOSX/restful_python_2_08_02/Django01/cmd/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter08/__MACOSX/restful_python_2_08_02/Django01/games_service/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter08/__MACOSX/restful_python_2_08_02/Django01/games_service/games/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter08/__MACOSX/restful_python_2_08_02/Django01/games_service/games/migrations/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter08/__MACOSX/restful_python_2_08_02/Django01/games_service/games_service/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter08/__MACOSX/restful_python_2_08_03/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter08/__MACOSX/restful_python_2_08_03/Django01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter08/__MACOSX/restful_python_2_08_03/Django01/cmd/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter08/__MACOSX/restful_python_2_08_03/Django01/games_service/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter08/__MACOSX/restful_python_2_08_03/Django01/games_service/games/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter08/__MACOSX/restful_python_2_08_03/Django01/games_service/games/migrations/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter08/__MACOSX/restful_python_2_08_03/Django01/games_service/games_service/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter08/restful_python_2_08_01/.DS_Store -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_01/Django01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter08/restful_python_2_08_01/Django01/.DS_Store -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_01/Django01/cmd/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter08/restful_python_2_08_01/Django01/cmd/.DS_Store -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_01/Django01/cmd/check_contents_sqlite3_games_game_table.txt: -------------------------------------------------------------------------------- 1 | sqlite3 db.sqlite3 "SELECT * FROM games_game ORDER BY name;" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_01/Django01/cmd/cmd801.txt: -------------------------------------------------------------------------------- 1 | http ":8000/esrb-ratings/?description=T+(Teen)" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_01/Django01/cmd/cmd802.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/esrb-ratings/?description=T+(Teen)" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_01/Django01/cmd/cmd803.txt: -------------------------------------------------------------------------------- 1 | http ":8000/games/?esrb_rating=1&played_times=10&ordering=-release_date" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_01/Django01/cmd/cmd804.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/games/?esrb_rating=1&played_times=10&ordering=-release_date" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_01/Django01/cmd/cmd805.txt: -------------------------------------------------------------------------------- 1 | http ":8000/player-scores/?player_name=Enzo+Scocco&game_name=Battlefield+V" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_01/Django01/cmd/cmd806.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/player-scores/?player_name=Enzo+Scocco&game_name=Battlefield+V" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_01/Django01/cmd/cmd807.txt: -------------------------------------------------------------------------------- 1 | http ":8000/player-scores/?from_score_date=2019-01-01&to_score_date=2019-01-31&min_score=17000&max_score=45000&ordering=-score" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_01/Django01/cmd/cmd808.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/player-scores/?from_score_date=2019-01-01&to_score_date=2019-01-31&min_score=17000&max_score=45000&ordering=-score" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_01/Django01/cmd/cmd809.txt: -------------------------------------------------------------------------------- 1 | http ":8000/games/?search=H" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_01/Django01/cmd/cmd810.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/games/?search=H" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_01/Django01/cmd/create_test_user.py: -------------------------------------------------------------------------------- 1 | from django.contrib.auth.models import User 2 | user = User.objects.create_user('gaston-hillar', 'testuser@example.com', 'FG$gI^76q#yA3v') 3 | user.save() 4 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_01/Django01/cmd/list_database_tables.sql: -------------------------------------------------------------------------------- 1 | psql --username=your_games_user_name --dbname=django_games --command="\dt" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_01/Django01/cmd/list_sqlite3_tables.txt: -------------------------------------------------------------------------------- 1 | sqlite3 db.sqlite3 ".tables" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_01/Django01/cmd/retrieve_id_for_django_superuser.sql: -------------------------------------------------------------------------------- 1 | psql --username=your_games_user_name --dbname=django_games --command="SELECT id FROM auth_user WHERE username = 'your_games_super_user';" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_01/Django01/cmd/retrieve_sql_sqlite3_games_game_table.txt: -------------------------------------------------------------------------------- 1 | sqlite3 db.sqlite3 ".schema games_game" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_01/Django01/games_service/games/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_01/Django01/games_service/games/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class GamesConfig(AppConfig): 5 | name = 'games' 6 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_01/Django01/games_service/games/max_limit_pagination.py: -------------------------------------------------------------------------------- 1 | from rest_framework.pagination import LimitOffsetPagination 2 | 3 | 4 | class MaxLimitPagination(LimitOffsetPagination): 5 | max_limit = 8 6 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_01/Django01/games_service/games/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_01/Django01/pip-selfcheck.json: -------------------------------------------------------------------------------- 1 | {"last_check":"2018-10-24T14:38:53Z","pypi_version":"18.1"} -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_01/Django01/requirements.txt: -------------------------------------------------------------------------------- 1 | Django==2.1.2 2 | djangorestframework==3.9.0 3 | httpie==0.9.9 4 | psycopg2==2.7.5 5 | django-filter==2.0.0 6 | pytest==3.9.3 7 | coverage==4.5.1 8 | pytest-cov==2.6.0 9 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter08/restful_python_2_08_02/.DS_Store -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/Django01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter08/restful_python_2_08_02/Django01/.DS_Store -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/Django01/cmd/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter08/restful_python_2_08_02/Django01/cmd/.DS_Store -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/Django01/cmd/cmd801.txt: -------------------------------------------------------------------------------- 1 | http ":8000/esrb-ratings/?description=T+(Teen)" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/Django01/cmd/cmd802.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/esrb-ratings/?description=T+(Teen)" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/Django01/cmd/cmd803.txt: -------------------------------------------------------------------------------- 1 | http ":8000/games/?esrb_rating=1&played_times=10&ordering=-release_date" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/Django01/cmd/cmd804.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/games/?esrb_rating=1&played_times=10&ordering=-release_date" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/Django01/cmd/cmd805.txt: -------------------------------------------------------------------------------- 1 | http ":8000/player-scores/?player_name=Enzo+Scocco&game_name=Battlefield+V" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/Django01/cmd/cmd806.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/player-scores/?player_name=Enzo+Scocco&game_name=Battlefield+V" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/Django01/cmd/cmd807.txt: -------------------------------------------------------------------------------- 1 | http ":8000/player-scores/?from_score_date=2019-01-01&to_score_date=2019-01-31&min_score=17000&max_score=45000&ordering=-score" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/Django01/cmd/cmd808.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/player-scores/?from_score_date=2019-01-01&to_score_date=2019-01-31&min_score=17000&max_score=45000&ordering=-score" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/Django01/cmd/cmd809.txt: -------------------------------------------------------------------------------- 1 | http ":8000/games/?search=H" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/Django01/cmd/cmd810.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/games/?search=H" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/Django01/cmd/cmd811.txt: -------------------------------------------------------------------------------- 1 | for i in {1..6}; do http ":8000/player-scores/"; done; 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/Django01/cmd/cmd812.txt: -------------------------------------------------------------------------------- 1 | 1..6 | foreach { http ":8000/player-scores/" } 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/Django01/cmd/cmd813.txt: -------------------------------------------------------------------------------- 1 | 1..6 | foreach { http ":8000/player-scores/" } 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/Django01/cmd/cmd814.txt: -------------------------------------------------------------------------------- 1 | 1..6 | foreach { curl -iX GET "localhost:8000/player-scores/" } 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/Django01/cmd/cmd815.txt: -------------------------------------------------------------------------------- 1 | for i in {1..6}; do http -a your_games_super_user:'WCS3qn!a4ybX#' ":8000/player-scores/"; done; 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/Django01/cmd/cmd816.txt: -------------------------------------------------------------------------------- 1 | 1..6 | foreach { http http -a your_games_super_user:'WCS3qn!a4ybX#' ":8000/player-scores/" } 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/Django01/cmd/cmd817.txt: -------------------------------------------------------------------------------- 1 | for i in {1..6}; do curl --user your_games_super_user:'WCS3qn!a4ybX#' -iX GET "localhost:8000/player-scores/"; done; 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/Django01/cmd/cmd818.txt: -------------------------------------------------------------------------------- 1 | 1..6 | foreach { curl --user your_games_super_user:'WCS3qn!a4ybX#' -iX GET "localhost:8000/player-scores/" } 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/Django01/cmd/cmd819.txt: -------------------------------------------------------------------------------- 1 | for i in {1..6}; do http ":8000/esrb-ratings/"; done; 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/Django01/cmd/cmd820.txt: -------------------------------------------------------------------------------- 1 | 1..25 | foreach { http ":8000/esrb-ratings/" } 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/Django01/cmd/cmd821.txt: -------------------------------------------------------------------------------- 1 | for i in {1..25}; do curl -iX GET "localhost:8000/esrb-ratings/"; done; 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/Django01/cmd/cmd822.txt: -------------------------------------------------------------------------------- 1 | 1..25 | foreach { curl -iX GET "localhost:8000/esrb-ratings/" } 2 | 3 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/Django01/games_service/games/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/Django01/games_service/games/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class GamesConfig(AppConfig): 5 | name = 'games' 6 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/Django01/games_service/games/max_limit_pagination.py: -------------------------------------------------------------------------------- 1 | from rest_framework.pagination import LimitOffsetPagination 2 | 3 | 4 | class MaxLimitPagination(LimitOffsetPagination): 5 | max_limit = 8 6 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/Django01/games_service/pytest.ini: -------------------------------------------------------------------------------- 1 | [pytest] 2 | DJANGO_SETTINGS_MODULE = games_service.settings 3 | python_files = tests.py test_*.py *_tests.py 4 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_02/Django01/pip-selfcheck.json: -------------------------------------------------------------------------------- 1 | {"last_check":"2018-10-24T14:38:53Z","pypi_version":"18.1"} -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter08/restful_python_2_08_03/.DS_Store -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/Django01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter08/restful_python_2_08_03/Django01/.DS_Store -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/Django01/cmd/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter08/restful_python_2_08_03/Django01/cmd/.DS_Store -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/Django01/cmd/cmd801.txt: -------------------------------------------------------------------------------- 1 | http ":8000/esrb-ratings/?description=T+(Teen)" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/Django01/cmd/cmd802.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/esrb-ratings/?description=T+(Teen)" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/Django01/cmd/cmd803.txt: -------------------------------------------------------------------------------- 1 | http ":8000/games/?esrb_rating=1&played_times=10&ordering=-release_date" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/Django01/cmd/cmd804.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/games/?esrb_rating=1&played_times=10&ordering=-release_date" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/Django01/cmd/cmd805.txt: -------------------------------------------------------------------------------- 1 | http ":8000/player-scores/?player_name=Enzo+Scocco&game_name=Battlefield+V" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/Django01/cmd/cmd806.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/player-scores/?player_name=Enzo+Scocco&game_name=Battlefield+V" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/Django01/cmd/cmd807.txt: -------------------------------------------------------------------------------- 1 | http ":8000/player-scores/?from_score_date=2019-01-01&to_score_date=2019-01-31&min_score=17000&max_score=45000&ordering=-score" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/Django01/cmd/cmd808.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/player-scores/?from_score_date=2019-01-01&to_score_date=2019-01-31&min_score=17000&max_score=45000&ordering=-score" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/Django01/cmd/cmd809.txt: -------------------------------------------------------------------------------- 1 | http ":8000/games/?search=H" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/Django01/cmd/cmd810.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8000/games/?search=H" 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/Django01/cmd/cmd811.txt: -------------------------------------------------------------------------------- 1 | for i in {1..6}; do http ":8000/player-scores/"; done; 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/Django01/cmd/cmd812.txt: -------------------------------------------------------------------------------- 1 | 1..6 | foreach { http ":8000/player-scores/" } 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/Django01/cmd/cmd813.txt: -------------------------------------------------------------------------------- 1 | 1..6 | foreach { http ":8000/player-scores/" } 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/Django01/cmd/cmd814.txt: -------------------------------------------------------------------------------- 1 | 1..6 | foreach { curl -iX GET "localhost:8000/player-scores/" } 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/Django01/cmd/cmd815.txt: -------------------------------------------------------------------------------- 1 | for i in {1..6}; do http -a your_games_super_user:'WCS3qn!a4ybX#' ":8000/player-scores/"; done; 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/Django01/cmd/cmd816.txt: -------------------------------------------------------------------------------- 1 | 1..6 | foreach { http http -a your_games_super_user:'WCS3qn!a4ybX#' ":8000/player-scores/" } 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/Django01/cmd/cmd817.txt: -------------------------------------------------------------------------------- 1 | for i in {1..6}; do curl --user your_games_super_user:'WCS3qn!a4ybX#' -iX GET "localhost:8000/player-scores/"; done; 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/Django01/cmd/cmd818.txt: -------------------------------------------------------------------------------- 1 | 1..6 | foreach { curl --user your_games_super_user:'WCS3qn!a4ybX#' -iX GET "localhost:8000/player-scores/" } 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/Django01/cmd/cmd819.txt: -------------------------------------------------------------------------------- 1 | for i in {1..6}; do http ":8000/esrb-ratings/"; done; 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/Django01/cmd/cmd820.txt: -------------------------------------------------------------------------------- 1 | 1..25 | foreach { http ":8000/esrb-ratings/" } 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/Django01/cmd/cmd821.txt: -------------------------------------------------------------------------------- 1 | for i in {1..25}; do curl -iX GET "localhost:8000/esrb-ratings/"; done; 2 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/Django01/cmd/cmd822.txt: -------------------------------------------------------------------------------- 1 | 1..25 | foreach { curl -iX GET "localhost:8000/esrb-ratings/" } 2 | 3 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/Django01/games_service/games/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/Django01/games_service/games/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class GamesConfig(AppConfig): 5 | name = 'games' 6 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/Django01/games_service/games/max_limit_pagination.py: -------------------------------------------------------------------------------- 1 | from rest_framework.pagination import LimitOffsetPagination 2 | 3 | 4 | class MaxLimitPagination(LimitOffsetPagination): 5 | max_limit = 8 6 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/Django01/games_service/pytest.ini: -------------------------------------------------------------------------------- 1 | [pytest] 2 | DJANGO_SETTINGS_MODULE = games_service.settings 3 | python_files = tests.py test_*.py *_tests.py 4 | -------------------------------------------------------------------------------- /Chapter08/restful_python_2_08_03/Django01/pip-selfcheck.json: -------------------------------------------------------------------------------- 1 | {"last_check":"2018-10-24T14:38:53Z","pypi_version":"18.1"} -------------------------------------------------------------------------------- /Chapter09/__MACOSX/restful_python_2_09_01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter09/__MACOSX/restful_python_2_09_01/Pyramid01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter09/__MACOSX/restful_python_2_09_01/Pyramid01/metrics/metrics/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter09/__MACOSX/restful_python_2_09_01/Pyramid01/metrics/metrics/models/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter09/__MACOSX/restful_python_2_09_01/Pyramid01/metrics/metrics/views/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter09/restful_python_2_09_01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter09/restful_python_2_09_01/.DS_Store -------------------------------------------------------------------------------- /Chapter09/restful_python_2_09_01/Pyramid01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter09/restful_python_2_09_01/Pyramid01/.DS_Store -------------------------------------------------------------------------------- /Chapter09/restful_python_2_09_01/Pyramid01/cmd/cmd901.txt: -------------------------------------------------------------------------------- 1 | http POST ":6543/metrics/" status='IDLE' speed_in_mph=1 altitude_in_feet=2 water_temperature_in_f=58 2 | -------------------------------------------------------------------------------- /Chapter09/restful_python_2_09_01/Pyramid01/cmd/cmd902.txt: -------------------------------------------------------------------------------- 1 | http POST ":6543/metrics/" status='IDLE' speed_in_mph=1 altitude_in_feet=2 water_temperature_in_f=58 2 | -------------------------------------------------------------------------------- /Chapter09/restful_python_2_09_01/Pyramid01/cmd/cmd903.txt: -------------------------------------------------------------------------------- 1 | http POST ":6543/metrics/" status='PADDLING' speed_in_mph=3 altitude_in_feet=3 water_temperature_in_f=59 2 | -------------------------------------------------------------------------------- /Chapter09/restful_python_2_09_01/Pyramid01/cmd/cmd904.txt: -------------------------------------------------------------------------------- 1 | curl -iX POST -H "Content-Type: application/json" -d '{"status":"PADDLING", "speed_in_mph":3, "altitude_in_feet": 3, "water_temperature_in_f": 59}' "localhost:6543/metrics/" 2 | -------------------------------------------------------------------------------- /Chapter09/restful_python_2_09_01/Pyramid01/cmd/cmd905.txt: -------------------------------------------------------------------------------- 1 | http ":6543/metrics/" 2 | -------------------------------------------------------------------------------- /Chapter09/restful_python_2_09_01/Pyramid01/cmd/cmd906.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:6543/metrics/" 2 | -------------------------------------------------------------------------------- /Chapter09/restful_python_2_09_01/Pyramid01/cmd/cmd907.txt: -------------------------------------------------------------------------------- 1 | http ":6543/metrics/2/" 2 | -------------------------------------------------------------------------------- /Chapter09/restful_python_2_09_01/Pyramid01/cmd/cmd908.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET -H "localhost:6543/metrics/2/" 2 | -------------------------------------------------------------------------------- /Chapter09/restful_python_2_09_01/Pyramid01/cmd/cmd909.txt: -------------------------------------------------------------------------------- 1 | http DELETE ":6543/metrics/2" 2 | -------------------------------------------------------------------------------- /Chapter09/restful_python_2_09_01/Pyramid01/cmd/cmd910.txt: -------------------------------------------------------------------------------- 1 | curl -iX DELETE "localhost:6543/metrics/2" 2 | -------------------------------------------------------------------------------- /Chapter09/restful_python_2_09_01/Pyramid01/metrics/.coveragerc: -------------------------------------------------------------------------------- 1 | [run] 2 | source = metrics 3 | omit = metrics/test* 4 | -------------------------------------------------------------------------------- /Chapter09/restful_python_2_09_01/Pyramid01/metrics/CHANGES.txt: -------------------------------------------------------------------------------- 1 | 0.0 2 | --- 3 | 4 | - Initial version. 5 | -------------------------------------------------------------------------------- /Chapter09/restful_python_2_09_01/Pyramid01/metrics/MANIFEST.in: -------------------------------------------------------------------------------- 1 | include *.txt *.ini *.cfg *.rst 2 | recursive-include metrics *.ico *.png *.css *.gif *.jpg *.pt *.txt *.mak *.mako *.js *.html *.xml *.jinja2 3 | -------------------------------------------------------------------------------- /Chapter09/restful_python_2_09_01/Pyramid01/metrics/pytest.ini: -------------------------------------------------------------------------------- 1 | [pytest] 2 | testpaths = metrics 3 | python_files = test*.py 4 | -------------------------------------------------------------------------------- /Chapter09/restful_python_2_09_01/Pyramid01/pip-selfcheck.json: -------------------------------------------------------------------------------- 1 | {"last_check":"2018-11-07T19:21:51Z","pypi_version":"18.1"} -------------------------------------------------------------------------------- /Chapter09/restful_python_2_09_01/Pyramid01/requirements.txt: -------------------------------------------------------------------------------- 1 | pyramid==1.10 2 | cookiecutter==1.6.0 3 | httpie==0.9.9 4 | -------------------------------------------------------------------------------- /Chapter10/__MACOSX/restful_python_2_11_01/Tornado01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter10/restful_python_2_10_01/Tornado01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter10/restful_python_2_10_01/Tornado01/.DS_Store -------------------------------------------------------------------------------- /Chapter10/restful_python_2_10_01/Tornado01/cmd/cmd1101.txt: -------------------------------------------------------------------------------- 1 | http PATCH ":8888/hexacopters/1" motor_speed_in_rpm=50 2 | -------------------------------------------------------------------------------- /Chapter10/restful_python_2_10_01/Tornado01/cmd/cmd1102.txt: -------------------------------------------------------------------------------- 1 | curl -iX PATCH -H "Content-Type: application/json" -d '{"motor_speed_in_rpm":50}' "localhost:8888/hexacopters/1" 2 | -------------------------------------------------------------------------------- /Chapter10/restful_python_2_10_01/Tornado01/cmd/cmd1103.txt: -------------------------------------------------------------------------------- 1 | http ":8888/hexacopters/1" 2 | -------------------------------------------------------------------------------- /Chapter10/restful_python_2_10_01/Tornado01/cmd/cmd1104.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET -H "localhost:8888/hexacopters/1" 2 | -------------------------------------------------------------------------------- /Chapter10/restful_python_2_10_01/Tornado01/cmd/cmd1105.txt: -------------------------------------------------------------------------------- 1 | http ":8888/hexacopters/5" 2 | -------------------------------------------------------------------------------- /Chapter10/restful_python_2_10_01/Tornado01/cmd/cmd1106.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8888/hexacopters/5" 2 | -------------------------------------------------------------------------------- /Chapter10/restful_python_2_10_01/Tornado01/cmd/cmd1107.txt: -------------------------------------------------------------------------------- 1 | http ":8888/altimeters/1?unit=meters" 2 | -------------------------------------------------------------------------------- /Chapter10/restful_python_2_10_01/Tornado01/cmd/cmd1108.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET -H "localhost:8888/altimeters/1?unit=meters" 2 | -------------------------------------------------------------------------------- /Chapter10/restful_python_2_10_01/Tornado01/cmd/cmd1109.txt: -------------------------------------------------------------------------------- 1 | http ":8888/altimeters/1" 2 | -------------------------------------------------------------------------------- /Chapter10/restful_python_2_10_01/Tornado01/cmd/cmd1110.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET -H "localhost:8888/altimeters/1" 2 | -------------------------------------------------------------------------------- /Chapter10/restful_python_2_10_01/Tornado01/cmd/cmd1111.txt: -------------------------------------------------------------------------------- 1 | { 2 | "brightness_level": 64 3 | } 4 | -------------------------------------------------------------------------------- /Chapter10/restful_python_2_10_01/Tornado01/pip-selfcheck.json: -------------------------------------------------------------------------------- 1 | {"last_check":"2018-10-30T03:53:42Z","pypi_version":"18.1"} -------------------------------------------------------------------------------- /Chapter10/restful_python_2_10_01/Tornado01/requirements.txt: -------------------------------------------------------------------------------- 1 | tornado==5.1.1 2 | httpie==0.9.9 3 | -------------------------------------------------------------------------------- /Chapter11/__MACOSX/restful_python_2_12_01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter11/__MACOSX/restful_python_2_12_01/Tornado01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter11/__MACOSX/restful_python_2_12_02/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter11/__MACOSX/restful_python_2_12_02/Tornado01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter11/__MACOSX/restful_python_2_12_03/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter11/__MACOSX/restful_python_2_12_03/Tornado01/._.DS_Store: -------------------------------------------------------------------------------- 1 | Mac OS X  2Fx @ATTRxx -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter11/restful_python_2_11_01/.DS_Store -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_01/Tornado01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter11/restful_python_2_11_01/Tornado01/.DS_Store -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_01/Tornado01/cmd/cmd1101.txt: -------------------------------------------------------------------------------- 1 | http PATCH ":8888/hexacopters/1" motor_speed_in_rpm=50 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_01/Tornado01/cmd/cmd1102.txt: -------------------------------------------------------------------------------- 1 | curl -iX PATCH -H "Content-Type: application/json" -d '{"motor_speed_in_rpm":50}' "localhost:8888/hexacopters/1" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_01/Tornado01/cmd/cmd1103.txt: -------------------------------------------------------------------------------- 1 | http ":8888/hexacopters/1" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_01/Tornado01/cmd/cmd1104.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET -H "localhost:8888/hexacopters/1" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_01/Tornado01/cmd/cmd1105.txt: -------------------------------------------------------------------------------- 1 | http ":8888/hexacopters/5" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_01/Tornado01/cmd/cmd1106.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8888/hexacopters/5" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_01/Tornado01/cmd/cmd1107.txt: -------------------------------------------------------------------------------- 1 | http ":8888/altimeters/1?unit=meters" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_01/Tornado01/cmd/cmd1108.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET -H "localhost:8888/altimeters/1?unit=meters" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_01/Tornado01/cmd/cmd1109.txt: -------------------------------------------------------------------------------- 1 | http ":8888/altimeters/1" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_01/Tornado01/cmd/cmd1110.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET -H "localhost:8888/altimeters/1" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_01/Tornado01/cmd/cmd1111.txt: -------------------------------------------------------------------------------- 1 | { 2 | "brightness_level": 64 3 | } 4 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_01/Tornado01/cmd/cmd1201.txt: -------------------------------------------------------------------------------- 1 | http PATCH ":8888/leds/1" brightness_level=255 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_01/Tornado01/cmd/cmd1202.txt: -------------------------------------------------------------------------------- 1 | curl -iX PATCH -H "Content-Type: application/json" -d '{"brightness_level":255}' "localhost:8888/leds/1" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_01/Tornado01/cmd/cmd1203.txt: -------------------------------------------------------------------------------- 1 | http PATCH ":8888/leds/2" brightness_level=128 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_01/Tornado01/cmd/cmd1204.txt: -------------------------------------------------------------------------------- 1 | curl -iX PATCH -H "Content-Type: application/json" -d '{"brightness_level":128}' "localhost:8888/leds/2" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_01/Tornado01/cmd/cmd1205.txt: -------------------------------------------------------------------------------- 1 | http PATCH ":8888/leds/3" brightness_level=64 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_01/Tornado01/cmd/cmd1206.txt: -------------------------------------------------------------------------------- 1 | curl -iX PATCH -H "Content-Type: application/json" -d '{"brightness_level":64}' "localhost:8888/leds/3" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_01/Tornado01/pip-selfcheck.json: -------------------------------------------------------------------------------- 1 | {"last_check":"2018-10-30T03:53:42Z","pypi_version":"18.1"} -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_01/Tornado01/requirements.txt: -------------------------------------------------------------------------------- 1 | tornado==5.1.1 2 | httpie==0.9.9 3 | pytest==3.9.3 4 | coverage==4.5.1 5 | pytest-cov==2.6.0 6 | pytest-tornasync==0.5.0 7 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_01/Tornado01/setup.cfg: -------------------------------------------------------------------------------- 1 | [tool:pytest] 2 | testpaths = tests.py 3 | 4 | [coverage:run] 5 | branch = True 6 | source = 7 | drone 8 | async_drone_service 9 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_02/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter11/restful_python_2_11_02/.DS_Store -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_02/Tornado01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter11/restful_python_2_11_02/Tornado01/.DS_Store -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_02/Tornado01/cmd/cmd1101.txt: -------------------------------------------------------------------------------- 1 | http PATCH ":8888/hexacopters/1" motor_speed_in_rpm=50 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_02/Tornado01/cmd/cmd1102.txt: -------------------------------------------------------------------------------- 1 | curl -iX PATCH -H "Content-Type: application/json" -d '{"motor_speed_in_rpm":50}' "localhost:8888/hexacopters/1" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_02/Tornado01/cmd/cmd1103.txt: -------------------------------------------------------------------------------- 1 | http ":8888/hexacopters/1" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_02/Tornado01/cmd/cmd1104.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET -H "localhost:8888/hexacopters/1" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_02/Tornado01/cmd/cmd1105.txt: -------------------------------------------------------------------------------- 1 | http ":8888/hexacopters/5" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_02/Tornado01/cmd/cmd1106.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8888/hexacopters/5" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_02/Tornado01/cmd/cmd1107.txt: -------------------------------------------------------------------------------- 1 | http ":8888/altimeters/1?unit=meters" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_02/Tornado01/cmd/cmd1108.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET -H "localhost:8888/altimeters/1?unit=meters" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_02/Tornado01/cmd/cmd1109.txt: -------------------------------------------------------------------------------- 1 | http ":8888/altimeters/1" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_02/Tornado01/cmd/cmd1110.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET -H "localhost:8888/altimeters/1" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_02/Tornado01/cmd/cmd1111.txt: -------------------------------------------------------------------------------- 1 | { 2 | "brightness_level": 64 3 | } 4 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_02/Tornado01/cmd/cmd1201.txt: -------------------------------------------------------------------------------- 1 | http PATCH ":8888/leds/1" brightness_level=255 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_02/Tornado01/cmd/cmd1202.txt: -------------------------------------------------------------------------------- 1 | curl -iX PATCH -H "Content-Type: application/json" -d '{"brightness_level":255}' "localhost:8888/leds/1" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_02/Tornado01/cmd/cmd1203.txt: -------------------------------------------------------------------------------- 1 | http PATCH ":8888/leds/2" brightness_level=128 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_02/Tornado01/cmd/cmd1204.txt: -------------------------------------------------------------------------------- 1 | curl -iX PATCH -H "Content-Type: application/json" -d '{"brightness_level":128}' "localhost:8888/leds/2" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_02/Tornado01/cmd/cmd1205.txt: -------------------------------------------------------------------------------- 1 | http PATCH ":8888/leds/3" brightness_level=64 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_02/Tornado01/cmd/cmd1206.txt: -------------------------------------------------------------------------------- 1 | curl -iX PATCH -H "Content-Type: application/json" -d '{"brightness_level":64}' "localhost:8888/leds/3" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_02/Tornado01/pip-selfcheck.json: -------------------------------------------------------------------------------- 1 | {"last_check":"2018-10-30T03:53:42Z","pypi_version":"18.1"} -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_02/Tornado01/requirements.txt: -------------------------------------------------------------------------------- 1 | tornado==5.1.1 2 | httpie==0.9.9 3 | pytest==3.9.3 4 | coverage==4.5.1 5 | pytest-cov==2.6.0 6 | pytest-tornasync==0.5.0 7 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_02/Tornado01/setup.cfg: -------------------------------------------------------------------------------- 1 | [tool:pytest] 2 | testpaths = tests.py 3 | 4 | [coverage:run] 5 | branch = True 6 | source = 7 | drone 8 | async_drone_service 9 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_03/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter11/restful_python_2_11_03/.DS_Store -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_03/Tornado01/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition/db8212c90f6394d8ee6fadb038e2b01ef83c963d/Chapter11/restful_python_2_11_03/Tornado01/.DS_Store -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_03/Tornado01/cmd/cmd1101.txt: -------------------------------------------------------------------------------- 1 | http PATCH ":8888/hexacopters/1" motor_speed_in_rpm=50 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_03/Tornado01/cmd/cmd1102.txt: -------------------------------------------------------------------------------- 1 | curl -iX PATCH -H "Content-Type: application/json" -d '{"motor_speed_in_rpm":50}' "localhost:8888/hexacopters/1" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_03/Tornado01/cmd/cmd1103.txt: -------------------------------------------------------------------------------- 1 | http ":8888/hexacopters/1" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_03/Tornado01/cmd/cmd1104.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET -H "localhost:8888/hexacopters/1" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_03/Tornado01/cmd/cmd1105.txt: -------------------------------------------------------------------------------- 1 | http ":8888/hexacopters/5" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_03/Tornado01/cmd/cmd1106.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET "localhost:8888/hexacopters/5" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_03/Tornado01/cmd/cmd1107.txt: -------------------------------------------------------------------------------- 1 | http ":8888/altimeters/1?unit=meters" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_03/Tornado01/cmd/cmd1108.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET -H "localhost:8888/altimeters/1?unit=meters" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_03/Tornado01/cmd/cmd1109.txt: -------------------------------------------------------------------------------- 1 | http ":8888/altimeters/1" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_03/Tornado01/cmd/cmd1110.txt: -------------------------------------------------------------------------------- 1 | curl -iX GET -H "localhost:8888/altimeters/1" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_03/Tornado01/cmd/cmd1111.txt: -------------------------------------------------------------------------------- 1 | { 2 | "brightness_level": 64 3 | } 4 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_03/Tornado01/cmd/cmd1201.txt: -------------------------------------------------------------------------------- 1 | http PATCH ":8888/leds/1" brightness_level=255 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_03/Tornado01/cmd/cmd1202.txt: -------------------------------------------------------------------------------- 1 | curl -iX PATCH -H "Content-Type: application/json" -d '{"brightness_level":255}' "localhost:8888/leds/1" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_03/Tornado01/cmd/cmd1203.txt: -------------------------------------------------------------------------------- 1 | http PATCH ":8888/leds/2" brightness_level=128 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_03/Tornado01/cmd/cmd1204.txt: -------------------------------------------------------------------------------- 1 | curl -iX PATCH -H "Content-Type: application/json" -d '{"brightness_level":128}' "localhost:8888/leds/2" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_03/Tornado01/cmd/cmd1205.txt: -------------------------------------------------------------------------------- 1 | http PATCH ":8888/leds/3" brightness_level=64 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_03/Tornado01/cmd/cmd1206.txt: -------------------------------------------------------------------------------- 1 | curl -iX PATCH -H "Content-Type: application/json" -d '{"brightness_level":64}' "localhost:8888/leds/3" 2 | -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_03/Tornado01/pip-selfcheck.json: -------------------------------------------------------------------------------- 1 | {"last_check":"2018-10-30T03:53:42Z","pypi_version":"18.1"} -------------------------------------------------------------------------------- /Chapter11/restful_python_2_11_03/Tornado01/setup.cfg: -------------------------------------------------------------------------------- 1 | [tool:pytest] 2 | testpaths = tests.py 3 | 4 | [coverage:run] 5 | branch = True 6 | source = 7 | drone 8 | async_drone_service 9 | --------------------------------------------------------------------------------