Commit cdc33a6c authored by Georg Huhs's avatar Georg Huhs
Browse files

Added quantities (properties) to the suggestions endpoint

parent 68e68257
......@@ -512,7 +512,13 @@ def get_author(material_id, calc_id, author_id):
@api.route('/suggestions', methods=['GET'])
@http_auth.login_required
def get_suggestions():
suggestion_properties = ['material_name', 'structure_type', 'space_group_number', 'code_name']
suggestion_properties = ['material_name',
'structure_type', 'system_type',
'crystal_system', 'space_group_number',
'space_group_international_short_symbol',
'strukturbericht_designation',
'code_name'
]
# define sorting order,
# default is document count descending
# different ones for particular properties can be defined here
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment