How to Consume Deployed Applications
The PhariaOS Applications Proxy enables you to access deployed usecase applications.
info
By default, the PhariaOS Applications Proxy is available at https://pharia-os-applications.<your.pharia-ai.domain.com>.
The request must begin with the application ID and is followed by the destination request endpoint provided by the application itself.
Example Applications Proxy POST request:
For example, let’s assume your usecase exposes the /execute endpoint. Then, you can call your usecase with the following request.
curl --request POST \
--url 'https://pharia-os-applications.<your.pharia-ai.domain.com>/<application-id>/execute' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"question": "what is your favorite color?"
}'
A valid request and resource path will return the expected resource in the response.
If the request path does not resolve to an available application, the response status code will be 502 (BadGateway).