diff --git a/README.md b/README.md index f352e1a..c58e064 100644 --- a/README.md +++ b/README.md @@ -14,42 +14,42 @@ FLASK_APP=app/main.py:app FLASK_DEBUG=1 flask run # Run in Docker ``` docker build --tag pyxform-http . -docker run --detach --name pyxform-http --publish 5000:80 pyxform-http +docker run --detach --name pyxform-http --publish 5001:80 pyxform-http ``` # Test forms A form that converts successfully (with chunked encoding!) ``` -curl --request POST --header "X-XlsForm-FormId-Fallback: pyxform-clean" --header 'Transfer-Encoding: chunked' --data-binary @test/pyxform-clean.xlsx http://127.0.0.1:5000/api/v1/convert +curl --request POST --header "X-XlsForm-FormId-Fallback: pyxform-clean" --header 'Transfer-Encoding: chunked' --data-binary @test/pyxform-clean.xlsx http://127.0.0.1:5001/api/v1/convert ``` A form that fails to convert and returns a pyxform error ``` -curl --request POST --header "X-XlsForm-FormId-Fallback: pyxform-error" --data-binary @test/pyxform-error.xlsx http://127.0.0.1:5000/api/v1/convert +curl --request POST --header "X-XlsForm-FormId-Fallback: pyxform-error" --data-binary @test/pyxform-error.xlsx http://127.0.0.1:5001/api/v1/convert ``` A form that converts successfully and also returns pyxform warnings ``` -curl --request POST --header "X-XlsForm-FormId-Fallback: pyxform-warning" --data-binary @test/pyxform-warning.xlsx http://127.0.0.1:5000/api/v1/convert +curl --request POST --header "X-XlsForm-FormId-Fallback: pyxform-warning" --data-binary @test/pyxform-warning.xlsx http://127.0.0.1:5001/api/v1/convert ``` A form that passes pyxform's internal checks, but fails ODK Validate's checks ``` -curl --request POST --header "X-XlsForm-FormId-Fallback: validate-error" --data-binary @test/validate-error.xlsx http://127.0.0.1:5000/api/v1/convert +curl --request POST --header "X-XlsForm-FormId-Fallback: validate-error" --data-binary @test/validate-error.xlsx http://127.0.0.1:5001/api/v1/convert ``` A form that converts successfully (with external choices) ``` -curl --request POST --header "X-XlsForm-FormId-Fallback: external-choices" --data-binary @test/external-choices.xlsx http://127.0.0.1:5000/api/v1/convert +curl --request POST --header "X-XlsForm-FormId-Fallback: external-choices" --data-binary @test/external-choices.xlsx http://127.0.0.1:5001/api/v1/convert ``` A form that converts successfully (with no id) ``` -curl --request POST --data-binary @test/pyxform-clean.xlsx http://127.0.0.1:5000/api/v1/convert +curl --request POST --data-binary @test/pyxform-clean.xlsx http://127.0.0.1:5001/api/v1/convert ``` A form that converts successfully (with percent encoded id) ``` -curl --request POST --header "X-XlsForm-FormId-Fallback: example%40example.org" --data-binary @test/pyxform-clean.xlsx http://127.0.0.1:5000/api/v1/convert +curl --request POST --header "X-XlsForm-FormId-Fallback: example%40example.org" --data-binary @test/pyxform-clean.xlsx http://127.0.0.1:5001/api/v1/convert ``` \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index b9e00e6..32b8288 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -Flask==2.0.2 -pyxform==1.7.0 +Flask==2.0.3 +pyxform==1.8.0 gunicorn==20.1.0