Version 1.0.4

master
J. Fernando Sánchez 2 years ago
parent c1e4e092a7
commit 4b1eecd1c2

@ -240,7 +240,7 @@ def api_root(plugins):
return results
@api_blueprint.route('/evaluate/', methods=['POST', 'GET'])
@api_blueprint.route('/evaluate', methods=['POST', 'GET'], strict_slashes=False)
@basic_api
def evaluate():
if request.parameters['help']:
@ -253,7 +253,7 @@ def evaluate():
return response
@api_blueprint.route('/plugins/', methods=['POST', 'GET'])
@api_blueprint.route('/plugins', methods=['POST', 'GET'], strict_slashes=False)
@basic_api
def plugins():
sp = current_app.senpy
@ -264,14 +264,14 @@ def plugins():
return dic
@api_blueprint.route('/plugins/<plugin>/', methods=['POST', 'GET'])
@api_blueprint.route('/plugins/<plugin>', methods=['POST', 'GET'], strict_slashes=False)
@basic_api
def plugin(plugin):
sp = current_app.senpy
return sp.get_plugin(plugin)
@api_blueprint.route('/datasets/', methods=['POST', 'GET'])
@api_blueprint.route('/datasets', methods=['POST', 'GET'], strict_slashes=False)
@basic_api
def get_datasets():
dic = Datasets(datasets=list(datasets.values()))

@ -64,7 +64,7 @@
These are some of the things you can do with the API:
<ul>
<li>List all available plugins: <a href="/api/plugins">/api/plugins</a></li>
<li>Get information about the default plugin: <a href="/api/plugins/default">/api/plugins/default</a></li>
<li>Get information about the default plugin: <a href="/api/plugins/default/">/api/plugins/default</a></li>
<li>List all available datasets: <a href="/api/datasets">/api/datasets</a></li>
<li>Download the JSON-LD context used: <a href="/api/contexts/Results.jsonld">/api/contexts/Results.jsonld</a></li>
</ul>

Loading…
Cancel
Save