@add_route("<STR_LIT>",<EOL>"<STR_LIT>", methods=["<STR_LIT:GET>"])<EOL>@add_route("<STR_LIT>",<EOL>"<STR_LIT>", methods=["<STR_LIT:GET>"])<EOL>@add_route("<STR_LIT>",<EOL>"<STR_LIT>", methods=["<STR_LIT:GET>"])<EOL>@add_route("<STR_LIT>",<EOL>"<STR_LIT>", methods=["<STR_LIT:GET>"])<EOL>def get(context, request, resource=None, uid=None):
<EOL>if uid and not resource:<EOL><INDENT>return api.get_record(uid)<EOL><DEDENT>if api.is_uid(resource):<EOL><INDENT>return api.get_record(resource)<EOL><DEDENT>portal_type = api.resource_to_portal_type(resource)<EOL>if portal_type is None:<EOL><INDENT>raise APIError(<NUM_LIT>, "<STR_LIT>")<EOL><DEDENT>return api.get_batched(portal_type=portal_type, uid=uid, endpoint="<STR_LIT>")<EOL>
GET