'POST /api/repositories/add_repository_registry_entry
Adds appropriate entries to the repository registry for the repository defined by the received name and owner.
:param key: the user\'s API key
The following parameters are included in the payload.
:param tool_shed_url (required): the base URL of the Tool Shed containing the Repository
:param name (required): the name of the Repository
:param owner (required): the owner of the Repository'

@web.expose_api
def add_repository_registry_entry(self, trans, payload, **kwd):

    response_dict = {}
    if (not trans.user_is_admin()):
        response_dict['status'] = 'error'
        response_dict['message'] = "You    are    not    authorized    to    add    entries    to    this    Tool    Shed's    repository    registry."
        return response_dict
    tool_shed_url = payload.get('tool_shed_url', '')
    if (not tool_shed_url):
        raise HTTPBadRequest(detail="Missing    required    parameter    'tool_shed_url'.")
    tool_shed_url = tool_shed_url.rstrip('/')
    name = payload.get('name', '')
    if (not name):
        raise HTTPBadRequest(detail="Missing    required    parameter    'name'.")
    owner = payload.get('owner', '')
    if (not owner):
        raise HTTPBadRequest(detail="Missing    required    parameter    'owner'.")
    repository = repository_util.get_repository_by_name_and_owner(self.app, name, owner)
    if (repository is None):
        error_message = ('Cannot    locate    repository    with    name    %s    and    owner    %s,' % (str(name), str(owner)))
        log.debug(error_message)
        response_dict['status'] = 'error'
        response_dict['message'] = error_message
        return response_dict
    self.app.repository_registry.add_entry(repository)
    response_dict['status'] = 'ok'
    response_dict['message'] = ('Entries    for    repository    %s    owned    by    %s    have    been    added    to    the    Tool    Shed    repository    registry.' % (name, owner))
    return response_dict
