Internal HTTP client for the Layr8 cloud-node REST API.
Uses Req for HTTP requests. Authentication is via x-api-key header.
Not intended for direct use; accessed through Layr8.Credentials and
Layr8.Presentations.
Summary
Functions
Issues a GET request to path and returns the decoded response.
Creates a new REST client.
Issues a JSON POST request to path with body and returns the decoded response.
Types
Functions
Issues a GET request to path and returns the decoded response.
Returns {:ok, map()} on success or {:error, term()} on failure.
Creates a new REST client.
Parameters
base_url— HTTP base URL of the cloud-node (e.g."https://node.example.com")api_key— API key for authentication
Issues a JSON POST request to path with body and returns the decoded response.
Returns {:ok, map()} on success or {:error, term()} on failure.