GridX Pricing API client — shared infrastructure.
Spec-driven HTTP client built on Martian. The OpenAPI spec bundled in resources/ is the single source of truth for endpoint definitions, parameter validation, and response schemas.
For utility-specific clients with sensible defaults, see:
gridx.pge.client — PG&Egridx.sce.client — SCEGridX Pricing API client — shared infrastructure. Spec-driven HTTP client built on Martian. The OpenAPI spec bundled in resources/ is the single source of truth for endpoint definitions, parameter validation, and response schemas. For utility-specific clients with sensible defaults, see: - `gridx.pge.client` — PG&E - `gridx.sce.client` — SCE
(create-client {:keys [url spec-path]})Create a GridX API client from an OpenAPI spec on the classpath.
Options: :url - API base URL (required) :spec-path - path to OpenAPI YAML on classpath (required)
Create a GridX API client from an OpenAPI spec on the classpath. Options: :url - API base URL (required) :spec-path - path to OpenAPI YAML on classpath (required)
(get-pricing client params)Fetch pricing data from the GridX API.
params is a map of query parameters matching the OpenAPI spec for
the utility's getPricing endpoint. See gridx.pge.client or
gridx.sce.client for utility-specific wrappers with defaults.
Returns the raw HTTP response map {:status :body :headers}.
Fetch pricing data from the GridX API.
`params` is a map of query parameters matching the OpenAPI spec for
the utility's getPricing endpoint. See `gridx.pge.client` or
`gridx.sce.client` for utility-specific wrappers with defaults.
Returns the raw HTTP response map {:status :body :headers}.(routes client)List all available route names for the client.
List all available route names for the client.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |