Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-7163

[DOC] namespace, starred or public query parameters are required for API listRepos

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • quay-v3.11.0
    • documentation
    • False
    • None
    • False
    • 0

      Description of problem:

      When enable call API istRepos "GET /api/v1/repository", the namespace, starred or public query parameters are required. 

      $ curl -k  -X GET -H "Content-Type: application/json" -H "Authorization: Bearer LO3RH2PMCHbxRxMh8H3wCQLLimu98BO6l3GpX6jm" https://quayregistry-quay-quay-enterprise.apps.whu415aw09.qe.devcluster.openshift.com/api/v1/repository
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
      100   356  100   356    0     0    377      0 --:--:-- --:--:-- --:--:--   377
      {
        "detail": "namespace, starred or public are required for this API call",
        "error_message": "namespace, starred or public are required for this API call",
        "error_type": "invalid_request",
        "title": "invalid_request",
        "type": "https://quayregistry-quay-quay-enterprise.apps.whu415aw09.qe.devcluster.openshift.com/api/v1/error/invalid_request",
        "status": 400
      } 

      But in the  official document,  these query parameters are optional.  Should update them to required.

       

            rhn-support-stevsmit Steven Smith
            rhwhu Weihua Hu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: