@app.get('/dossier/v1/random/feature-collection', json=True)
def v1_random_fc_get(response, dbid_to_visid, store):
    # Careful, `store.scan()` would be obscenely slow here...
    sample = streaming_sample(store.scan_ids(), 1, 1000)
    if len(sample) == 0:
        bottle.abort(404, 'The feature collection store is empty.')
    return [dbid_to_visid(sample[0]), util.fc_to_json(store.get(sample[0]))]
Creates model parser for the given language.
dataset/ETHPy150Open dossier/dossier.web/dossier/web/routes.py/v1_random_fc_get--crossover with--dataset/ETHPy150Open igordejanovic/textX/textx/model.py/get_model_parser