@add_route("<STR_LIT>", "<STR_LIT>", methods=["<STR_LIT:GET>"])<EOL>@add_route("<STR_LIT>", "<STR_LIT>", methods=["<STR_LIT:GET>"])<EOL>def get(context, request, key=None):
registry_records = api.get_registry_records_by_keyword(key)<EOL>size = req.get_batch_size()<EOL>start = req.get_batch_start()<EOL>batch = api.make_batch(registry_records, size, start)<EOL>return {<EOL>"<STR_LIT>": batch.get_pagesize(),<EOL>"<STR_LIT>": batch.make_next_url(),<EOL>"<STR_LIT>": batch.make_prev_url(),<EOL>"<STR_LIT>": batch.get_pagenumber(),<EOL>"<STR_LIT>": batch.get_numpages(),<EOL>"<STR_LIT:count>": batch.get_sequence_length(),<EOL>"<STR_LIT>": [registry_records],<EOL>"<STR_LIT:url>": api.url_for("<STR_LIT>", key=key),<EOL>}<EOL>
Return all registry items if key is None, otherwise try to fetch the registry key