Closed dantecatalfamo closed 3 weeks ago
@dantecatalfamo I'd say let's go ahead with an array of objects for the body:
[
{"app_store_id": "abc"},
{"app_store_id": "def"}
]
This future-proofs the endpoint for any additional field we may want to add alongside each app (such as self_service
), and it matches the structure used for app store apps in the gitops yaml. I'll update the ticket description.
@mna Okay, that sounds like a safe bet
API's voice in the cloud, Bridging gaps in the code crowd, Efficiency aloud.
VPP Bulk API for
gitops
andapply
Split off from the previous ticket in the interest of closing the work that was already done while this API is defined. (#19871)
Proposed (from previous ticket)
POST /api/v1/fleet/software/app_store/batch
Parameters
team_name
: string, query parameter, batch endpoints use team names and not ids (because we don't have them in the yaml gitops/apply files).dry_run
: bool, query parameter, stop after validations / before making DB changes if true, and return any error.app_store_id
, but in the future other fields might be added (e.g.self_service
):Implementation is to replace all the apps for the given team by the set received (which could be empty).
@marko-lisica this was an API endpoint that was missing for that story