Skip to content
Snippets Groups Projects
Commit a3fa8eca authored by Cornelia Michlits's avatar Cornelia Michlits
Browse files

#104 ontology - change routing path starting with api

parent 4cd1b6e5
No related branches found
No related tags found
4 merge requests!81New stable release,!43Merge dev to master,!33Draft: merge dev to master,!32Add units-service to dev
...@@ -33,7 +33,7 @@ template = dict( ...@@ -33,7 +33,7 @@ template = dict(
app.json_encoder = LazyJSONEncoder app.json_encoder = LazyJSONEncoder
swagger = Swagger(app, config=swagger_config, template=template) swagger = Swagger(app, config=swagger_config, template=template)
@app.route('/units/suggest', methods=["POST"], endpoint='suggest') @app.route('/api/units/suggest', methods=["POST"], endpoint='suggest')
@swag_from('suggest.yml') @swag_from('suggest.yml')
def suggest(): def suggest():
input_json = request.get_json() input_json = request.get_json()
...@@ -48,7 +48,7 @@ def suggest(): ...@@ -48,7 +48,7 @@ def suggest():
res = {"success": False, "message": "Unknown error"+str(e)+unit} res = {"success": False, "message": "Unknown error"+str(e)+unit}
return jsonify(res) return jsonify(res)
@app.route('/units/validate', methods=["POST"], endpoint='validate') @app.route('/api/units/validate', methods=["POST"], endpoint='validate')
@swag_from('validate.yml') @swag_from('validate.yml')
def suggest(): def suggest():
input_json = request.get_json() input_json = request.get_json()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment