fleet/frontend/fleet
RachelElysia 267b7343e1
Manage Packs Page: Refactor to typescript, functional components, new UI (#1567)
* Refactor ManagePacksPage as functional component in TypeScript
* Refactor old table using TableContainer component
* Add Enable, Disable buttons to DataTable component
* Update Packs interface with additional properties
* Update Cypress e2e tests
2021-08-10 14:25:34 -04:00
..
entities Manage Packs Page: Refactor to typescript, functional components, new UI (#1567) 2021-08-10 14:25:34 -04:00
base.js Rename main frontend directory (#977) 2021-06-06 17:30:54 -07:00
endpoints.ts Team Schedules - New Feature! (#1550) 2021-08-05 10:48:00 -04:00
helpers.tests.js Schedule Page - New Feature! (#1333) 2021-07-26 14:41:36 -04:00
helpers.ts Team Schedules - New Feature! (#1550) 2021-08-05 10:48:00 -04:00
index.js Team Schedules - New Feature! (#1550) 2021-08-05 10:48:00 -04:00
index.tests.js Rename main frontend directory (#977) 2021-06-06 17:30:54 -07:00
README.md Rename main frontend directory (#977) 2021-06-06 17:30:54 -07:00
request.js Rename main frontend directory (#977) 2021-06-06 17:30:54 -07:00
status.js Rename main frontend directory (#977) 2021-06-06 17:30:54 -07:00
websockets.js Rename main frontend directory (#977) 2021-06-06 17:30:54 -07:00

Kolide API Client

The Kolide API Client is used for communicating with the Kolide API. Kolide has a number of entities (hosts, labels, packs, queries, users, etc), all of which have CRUD methods to perform on a specific entity or collection of entities.

Entities are assigned to the API Client in the constructor function. Each entity's methods can be found in the /frontend/fleet/entities directory.

The CRUD methods that are typically implemented in the API client are as follows:

create

  • The create method is used for creating a new entity. The input parameter is typically an object containing the attributes for the new entity.

destroy

  • The destroy method is used for deleting an entity. Then input parameter is typically the entity to be deleted.

load

  • The load method is used for loading a single entity. The input parameter is typically the id of the entity to load.

loadAll

  • The loadAll method is used for loading all of the entities.

update

  • The update method is used to update an entity. The input parameters are typically the entity being updated and an object with the updated attributes.