Redmine #1835: Rewrote readme and minor renaming

This commit is contained in:
2021-03-25 16:27:40 +01:00
parent 19e9eb6341
commit 37a10ae703
3 changed files with 90 additions and 50 deletions

View File

@@ -15,8 +15,8 @@ resource_directory = os.environ['API_RESOURCE_DIR']
runner = Runner(resource_directory, True)
@app.route(api_prefix + '/string_to_parse', methods=['GET', 'POST'])
def string_to_parse():
@app.route(api_prefix + '/strings_to_parse', methods=['GET', 'POST'])
def strings_to_parse():
tmp_directory = tempfile.mkdtemp()
string_file_name = tmp_directory + '/input_string.txt'
@@ -77,8 +77,8 @@ def parse_to_dictionary():
return Response(message, mimetype='text/xml')
@app.route(api_prefix + '/string_to_dictionary', methods=['GET', 'POST'])
def string_to_dictionary():
@app.route(api_prefix + '/strings_to_dictionary', methods=['GET', 'POST'])
def strings_to_dictionary():
tmp_directory = tempfile.mkdtemp()
string_file_name = tmp_directory + '/input_string.txt'
@@ -116,4 +116,3 @@ def string_to_dictionary():
message = '<error>' + str(e) + '</error>'
return Response(message, mimetype='text/xml')