Refactored tools services endpoints system and fixed json formatter. #91

Merged
koleckia merged 12 commits from tools-services into master 2023-03-02 11:49:23 +01:00
Showing only changes of commit 786fb3ff26 - Show all commits

View File

@@ -96,23 +96,23 @@ def process_xml(request: request, type: str) -> str:
return json.dumps(response_json), code
@app.route("/xpathpost", methods=["POST"])
@app.route("/xpath", methods=["POST"])
def xpath():
return process_xml(request, "xpath")
@app.route("/xsdpost", methods=["POST"])
@app.route("/xsd", methods=["POST"])
def xsd():
return process_xml(request, "xsd")
@app.route("/xsltpost", methods=["POST"])
@app.route("/xslt", methods=["POST"])
def xslt():
return process_xml(request, "xslt")
@app.route("/prettifypost", methods=["POST"])
@app.route("/prettify", methods=["POST"])
def prettify():
return process_xml(request, "prettify")
@app.route("/minimizepost", methods=["POST"])
@app.route("/minimize", methods=["POST"])
def minimize():
return process_xml(request, "minimize")