Exemple #1
0
def show_taxon_details(taxon_name):
    taxon_details = api.taxa.get_details(database.get_connection(), taxon_name)
    if taxon_details is None:
        raise errors.NotFound('Could not find taxon.')
    return jsonify(taxon_details)
Exemple #2
0
def show_taxon_list():
    return jsonify(api.taxa.get_list(database.get_connection()))
Exemple #3
0
def show_media_list():
    return jsonify(api.media.get_list(database.get_connection()))
Exemple #4
0
def show_settings():
    return jsonify(api.system_settings.get(database.get_connection()))
Exemple #5
0
def show_media_details(media_id):
    media_details = api.media.get_details(database.get_connection(), media_id)
    if media_details is None:
        raise errors.NotFound('Could not find media.')
    return jsonify(media_details)