Liking cljdoc? Tell your friends :D

gridx.client

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&E
  • gridx.sce.client — SCE
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&E
- `gridx.sce.client` — SCE
raw docstring

create-clientclj

(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)
sourceraw docstring

get-pricingclj

(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}.
sourceraw docstring

routesclj

(routes client)

List all available route names for the client.

List all available route names for the client.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close