def get(block_id):
    """Scheduling block detail resource."""
    try:
        sbi_details = DB.get_block_details([block_id]).__next__()
        sbi_details['processing_blocks'] = []
        pb_ids = sbi_details['processing_block_ids']
        for pb_details in DB.get_block_details(pb_ids):
            sbi_details['processing_blocks'].append(pb_details)
        del sbi_details['processing_block_ids']
        response = sbi_details
        _url = get_root_url()
        response['links'] = {
            'scheduling-blocks': '{}/scheduling-blocks'.format(_url),
            'home': '{}'.format(_url)
        }
        return sbi_details, HTTPStatus.OK

    except IndexError:
        return {'error': 'specified block id not found {}'.format(block_id)}, \
               HTTPStatus.NOT_FOUND
Scheduling block detail resource.