Uploaded image for project: 'Insights Experiences'
  1. Insights Experiences
  2. HMS-2983

Add API for searching package group and environment names

      Goal: 

      • This task assumes HMS-2981 is completed and a library for querying the pulp database exists.
      • Add support the pulp-querying library for searching package groups and environments by name.
      • Add two API endpoints to the backend: one for searching package groups and one for searching environments.
      • The API endpoint should leverage the pulp-querying library and follow the examples below

       

      POST /snapshot/package_groups/names

      {    UUIDS: [“abcd”]    Search: “FOO”    Limit: 100 }

       

      POST /snapshot/package_environments/names

      {    UUIDS: [“abcd”]    Search: “FOO”    Limit: 100 }

       

      Acceptance Criteria:

      • Add a method or methods to the pulp-querying library to support searching package groups and environments by name.
      • Add two API endpoints: one to search package groups and one to search environments. Both should look like their examples above.
      • package groups api should return paginated list of name, description, list of combined packages (same as repositories package search api)
      • environments api should return paginated list of name, description (same as repositories environments search api)

            rverdile@redhat.com Ryan Verdile
            rverdile@redhat.com Ryan Verdile
            Stephen Wadeley Stephen Wadeley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: