Uploaded image for project: 'Automation Hub'
  1. Automation Hub
  2. AAH-144

namespaces endpoint does not display Links

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • 1.2
    • 1.2
    • None
    • None
    • False
    • False
    • Undefined

      The following API endpoint

      api/automation-hub/v3/namespaces/namespaces

      Does not display links even if they are set, either in the gui, or via API.
      Currently they display he following

              {
                  "id": 79,
                  "name": "my_namespace6",
                  "company": "Redhat",
                  "email": "user@example.com",
                  "avatar_url": "https://www.redhat.com/cms/managed-files/styles/wysiwyg_full_width/s3/Logo-RedHat-Hat-Color-CMYK%20%281%29.jpg?itok=Mf0Ff9jq",
                  "description": "string",
                  "groups": [
                      {
                          "id": 1,
                          "name": "system:partner-engineers",
                          "object_permissions": [
                              "upload_to_namespace",
                              "change_namespace"
                          ]
                      }
                  ]
              },
      

      However if you go to the endpoint
      api/automation-hub/v3/namespaces/namespaces/namespacename the following shows:

       

       

      {
          "id": 79,
          "name": "my_namespace6",
          "company": "Redhat",
          "email": "user@example.com",
          "avatar_url": "https://linktoimage",
          "description": "string",
          "links": [
              {
                  "name": "homepage",
                  "url": "http://www.google.com"
              }
          ],
          "groups": [
              {
                  "id": 1,
                  "name": "system:partner-engineers",
                  "object_permissions": [
                      "upload_to_namespace",
                      "change_namespace"
                  ]
              }
          ],
          "resources": ""
      }
      

      The data in both places should be identical.

       

       

            Unassigned Unassigned
            rhn-gps-ssulliva Sean Sullivan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: