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

api: Create api for UI to use to finalize uploads into a snapshot

      Goal: 

      • Create an api the UI can use that will start a task to:
      • Finalize one or more uploads into artifacts
      • Convert one or more uploaded artifacts into rpms
      • Create a new repository version in pulp with those rpms
      • Create a snapshot
      • This api should look something like:
      • (example URL) POST /api/content-sources/v1/repositories/:UUID/snapshots/uploads/

      It should take a list of artifact HREFs, something like:

       

      {
        uploads: [
             { 
               upload_href: "href1",
               sha256sum: "abcdefgh"
              }  
        ]
      }

       

      The response would be a task response (full structure of the task as we return from our tasks api today), and this task should be saved as the 'last_snapshot_task' on the repository configuration

       

       

       

            rhn-engineering-jsherrill Justin Sherrill
            rhn-engineering-jsherrill Justin Sherrill
            Stephen Wadeley Stephen Wadeley
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: