Updated endpoints in Python backend to match those in Java
This commit is contained in:
@@ -96,23 +96,23 @@ def process_xml(request: request, type: str) -> str:
|
|||||||
return json.dumps(response_json), code
|
return json.dumps(response_json), code
|
||||||
|
|
||||||
|
|
||||||
@app.route("/xpathpost", methods=["POST"])
|
@app.route("/xpath", methods=["POST"])
|
||||||
def xpath():
|
def xpath():
|
||||||
return process_xml(request, "xpath")
|
return process_xml(request, "xpath")
|
||||||
|
|
||||||
@app.route("/xsdpost", methods=["POST"])
|
@app.route("/xsd", methods=["POST"])
|
||||||
def xsd():
|
def xsd():
|
||||||
return process_xml(request, "xsd")
|
return process_xml(request, "xsd")
|
||||||
|
|
||||||
@app.route("/xsltpost", methods=["POST"])
|
@app.route("/xslt", methods=["POST"])
|
||||||
def xslt():
|
def xslt():
|
||||||
return process_xml(request, "xslt")
|
return process_xml(request, "xslt")
|
||||||
|
|
||||||
@app.route("/prettifypost", methods=["POST"])
|
@app.route("/prettify", methods=["POST"])
|
||||||
def prettify():
|
def prettify():
|
||||||
return process_xml(request, "prettify")
|
return process_xml(request, "prettify")
|
||||||
|
|
||||||
@app.route("/minimizepost", methods=["POST"])
|
@app.route("/minimize", methods=["POST"])
|
||||||
def minimize():
|
def minimize():
|
||||||
return process_xml(request, "minimize")
|
return process_xml(request, "minimize")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user