fleet/frontend/kolide
RachelElysia e52e0747ad
Query Edit/Run: Conditional select targets dropdown (#923)
* Modify targets endpoint to  use queryId
* Conditionally render query page including queryId
* Includes conditionally renders target dropdown

Co-authored by: Sarah Gillespie @gillespi314
Test mods co-authored by: Gabriel Hernandez @ghernandez345
2021-06-04 15:13:59 -04:00
..
entities Query Edit/Run: Conditional select targets dropdown (#923) 2021-06-04 15:13:59 -04:00
base.js implement member page for team details (#685) 2021-04-29 14:47:33 +01:00
endpoints.ts test and team feature improvements (#804) 2021-05-21 17:29:28 +01:00
helpers.tests.js add prettier and have it format all fleet application code (#625) 2021-04-12 14:32:25 +01:00
helpers.ts Host Details Page: Convert seconds to larger units, clean repetitive edge case code (#750) 2021-05-12 11:49:57 -04:00
index.js implement member page for team details (#685) 2021-04-29 14:47:33 +01:00
index.tests.js add prettier and have it format all fleet application code (#625) 2021-04-12 14:32:25 +01:00
README.md Add Front-end Documentation (#1373) 2017-03-10 17:13:29 -05:00
request.js add prettier and have it format all fleet application code (#625) 2021-04-12 14:32:25 +01:00
status.js add prettier and have it format all fleet application code (#625) 2021-04-12 14:32:25 +01:00
websockets.js add prettier and have it format all fleet application code (#625) 2021-04-12 14:32:25 +01: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/kolide/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.