Project

General

Profile

Bug #15487

API Missing route /organizations/:orgid/repositories to list all repos in an organization

Added by Brad Buckingham almost 3 years ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

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:

Associated revisions

Revision 1de1c034 (diff)
Added by Brad Buckingham almost 3 years ago

fixes #15487: API: GET repositories by organization

Small change to make repositories consistent with the likes
of products and content views.

Revision 01f56bdc
Added by Brad Buckingham almost 3 years ago

Merge pull request #6142 from bbuckingham/issue-15487

fixes #15487: API: GET repositories by organization

History

#1 Updated by The Foreman Bot almost 3 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Brad Buckingham
  • Pull request https://github.com/Katello/katello/pull/6142 added

#2 Updated by Brad Buckingham almost 3 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#3 Updated by Justin Sherrill almost 3 years ago

  • Legacy Backlogs Release (now unused) set to 162

Also available in: Atom PDF