Bug #15487
closedAPI Missing route /organizations/:orgid/repositories to list all repos in an organization
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1347786
Description of problem:
Missing a route to list all repositories in an organizations. This is inconsistent with other routes like the content_views or products.
[crash] root@li-lc-1578:~# curl -K /opt/hoici/etc/sat6/curl-hoici.conf "-HContent-Type: application/json" "-d{\"per_page\":9999}" -XGET https://localhost/katello/api/v2/organizations/3/repositories
<!DOCTYPE html>
<html>
<head>
<title>The page you were looking for doesn't exist (404)</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
...
Examples for content_views and products:
[crash] root@li-lc-1578:~# curl -K /opt/hoici/etc/sat6/curl-hoici.conf "-HContent-Type: application/json" "-d{\"per_page\":9999}" -XGET https://localhost/katello/api/v2/organizations/3/content_views | jq .total
45
[crash] root@li-lc-1578:~# curl -K /opt/hoici/etc/sat6/curl-hoici.conf "-HContent-Type: application/json" "-d{\"per_page\":9999}" -XGET https://localhost/katello/api/v2/organizations/3/products | jq .total
37
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1. curl "-HContent-Type: application/json" "-d{\"per_page\":9999}" -XGET https://localhost/katello/api/v2/organizations/3/repositories
2.
3.
Actual results:
HTTP error
Expected results:
All repositories of the organziation are returned
Additional info: