1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-12-21 20:48:14 +00:00

Version 1.0.4

This commit is contained in:
J. Fernando Sánchez 2022-05-20 14:05:27 +02:00
parent c1e4e092a7
commit 4b1eecd1c2
2 changed files with 5 additions and 5 deletions

View File

@ -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()))

View File

@ -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>