fleetdm / fleet

Open-source platform for IT, security, and infrastructure teams. (Linux, macOS, Chrome, Windows, cloud, data center)
https://fleetdm.com
Other
2.92k stars 405 forks source link

VPP: Bulk API #20278

Closed dantecatalfamo closed 3 weeks ago

dantecatalfamo commented 1 month ago

VPP Bulk API for gitops and apply

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

[
  {"app_store_id": "abc"},
  {"app_store_id": "def"}
]

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

mna commented 1 month 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.

dantecatalfamo commented 1 month ago

@mna Okay, that sounds like a safe bet

fleet-release commented 3 weeks ago

API's voice in the cloud, Bridging gaps in the code crowd, Efficiency aloud.