Story #5407
Updated by ipanova@redhat.com about 5 years ago
Add a pulp2 api endpoint that will return MP template in a json format based on the provided data. This template is subject to further modifications unless whole plugin is intended to be migrated. <pre> GET pulp/api/v2/migration-plan/?plugin=docker&repositories=True Will return: { "plugins": [ { "type": "docker", "protection": false, "repositories" : [ ] } ] } GET pulp/api/v2/migration-plan/?plugin=docker Will return: { "plugins": [ { "type": "docker" } ] } GET pulp/api/v2/migration-plan/?plugin=docker,iso Will return: { "plugins": [ { "type": "docker" }, { "type": "iso" } ] } GET pulp/api/v2/migration-plan/?plugin=docker,iso&repositories=True&protection=True Will return: { "plugins": [ { "type": "docker", "protection": true, "repositories" : [] }, { "type": "iso", "protection": true, "repositories" : [] } ] } </pre> For further detailed specifications user will need to modify the json manually and add repos, distributors, etc he wants to migrate in case he does not want need to migrate all repos. We need to provide docs that will explain how to do that.