# How to use it

This middleware can be used to make SOAP/REST requests or GraphQL queries with ease. By making API call on particular endpoints, you can pass the necessary data with the API call. The required data includes the endpoint URL (API hostname+endpoint) and the HTTP method. If you want to make a POST request, you can also pass the request body. All requests to middleware are made using the post method only. I know it's a bit confusing but you will get the zest of it once you see the examples.

Examples and a detailed understanding of each are given in the following few pages.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://triway.gitbook.io/bi-direct/how-to-use-it.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
