mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
1e0fa92428
#13998 Cleaned up REST API input validation for hosts, carves, users endpoints. rest-api.md changes explained: https://www.loom.com/share/9cd82653bacb4528bdaac117ec85a976 For the following endpoints: /api/v1/fleet/hosts /api/v1/fleet/hosts/count /api/v1/fleet/hosts/report - converted validation errors from 500 to 400 HTTP status code - added validation that policy_id must be present when policy_response is specified - added validation that policy_response must be `passing` or `failing` - added validation that `os_name` must be specified with `os_version` For the following endpoint: /api/v1/fleet/users - converted team_id validation error from 500 to 400 HTTP status code For the following endpoint: /api/v1/fleet/carves - added rest-api.md documentation for `page`, `per_page`, `order_key`, `order_direction`, and `expired` - converted `expired` validation error from 500 to 400 HTTP status code # Checklist for submitter If some of the following don't apply, delete the relevant line. - [x] Changes file added for user-visible changes in `changes/` or `orbit/changes/`. See [Changes files](https://fleetdm.com/docs/contributing/committing-changes#changes-files) for more information. - [x] Documented any API changes (docs/Using-Fleet/REST-API.md or docs/Contributing/API-for-contributors.md) - [x] Added/updated tests - [x] Manual QA for all new/changed functionality --------- Co-authored-by: Rachael Shaw <r@rachael.wtf> |
||
---|---|---|
.. | ||
.keep | ||
10888-backend-analytics-for-premium | ||
10888-premium-usage-statistics | ||
12888-apple-rapid-security-response | ||
12997-mdm-config-validations | ||
13615-ignore-software-without-version | ||
13712-context-run-command | ||
13998-host-options-validation | ||
14056-file-ext | ||
14170-chromeos-software-bug | ||
14238-enroll-reference | ||
14529-enqueue-apple-error | ||
14733-14661-queries-page-fix | ||
bug-14431-surface-resolution-to-observers | ||
issue-13012-log-abm-terms-change | ||
issue-13012-update-abm-terms-banner-copy |