mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Resolves #40396. No changes file because there should be no user visible changes. ## Testing - [x] QA'd all new/changed functionality manually ## fleetd/orbit/Fleet Desktop - [x] Verified compatibility with the latest released version of Fleet (see [Must rule](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/workflows/fleetd-development-and-release-strategy.md)) - [X] Verified that fleetd runs on macOS, Linux and Windows - [X] Verified auto-update works from the released version of component to the new version (see [tools/tuf/test](../tools/tuf/test/README.md)) |
||
|---|---|---|
| .. | ||
| osquery.go | ||
| README.md | ||
| scim.go | ||
| sessions.go | ||
📦 contract Package
This package contains the request and response structs used by the HTTP API.
Keeping these in a separate package makes the code:
- Easier to maintain — the shape of API data is defined in one place
- Clearer — shows exactly what the API expects and returns
- Reusable — the same types can be used by handlers, tests, or clients
This package should only define data structures — no business logic.
🔄 Note: Some request/response structs may still live in the server/service packages. Move them here as needed to keep API contracts organized and consistent.