Endpoint
The address at which an API or a specific operation is accessible. Usually, this is a URL to which a request is sent.
Example
https://api.example.com/v1/chat/completions
Here, /chat/completions is the endpoint that receives requests to the model.
Structure
- base URL — the root of the API, the same for all operations;
- path — the specific operation (
/products,/search); - method — what to do: GET, POST, PUT, DELETE.
Why Distinguish
"Double path" errors occur when the base URL already contains the endpoint, and the client appends it again. Therefore, the configuration stores the base URL and endpoint separately.