Interacting with app via API
Once you have your application up and running, you can start loading data and querying the API. Here's a step-by-step guide on how to do it:
Ingest an entry
Data Ingestion: You can test data ingestion by making a POST request to the
/api/v1/ingest/your_schema
endpoint. Here's an example usingcurl
:Note: The current example will not work, please change the request body as your schema requires it.
Query your system
Query the API: After ingesting data, you can query the API by making a POST request to the
/api/v1/search/query
endpoint. Here's an example usingcurl
:
This request will search for entities that match the query text.
Load data from file(s)
See available data loaders
To see what data loaders are available, send a request to the endpoint below:
Successful response (200 OK):
The keys are the available data loader names that you can use for the rest of the data loader endpoints below. To see how these names are constructed and can be altered, read the docs here.
Trigger the data load
To initiate the data load, invoke its endpoint. This will spawn an asynchronous task DataLoaderSource
by its name as defined in your api.py
. To trigger the endpoint, simply send a request with curl
as shown below. The response should be 202 Accepted. If the name you provided is not found in the system, a 404 NOT FOUND will be returned. See the logs to check the result of that task.
Successful response (200 OK):
Last updated