Skip to main content

Module rest

Module rest 

Source
Expand description

REST API adapter for Vantage.

Wraps an HTTP JSON endpoint as a TableSource. Conditions on tables become URL query parameters, pagination is appended, and responses are parsed against a configurable ResponseShape. CBOR values flow end-to-end, bridging cleanly into the Vista universal surface.

See also: the graphql sibling module for a query-language-based HTTP API adapter.

Re-exports§

pub use api::FilterStrategy;
pub use api::PaginationParams;
pub use api::ResponseShape;
pub use api::RestApi;
pub use api::RestApiBuilder;
pub use operation::eq_condition;
pub use vista::ApiColumnExtras;
pub use vista::ApiReferenceExtras;
pub use vista::ApiTableBlock;
pub use vista::ApiTableExtras;
pub use vista::ModelResolver;
pub use vista::NoApiExtras;
pub use vista::RestApiTableShell;
pub use vista::RestApiVistaFactory;
pub use vista::RestApiVistaSpec;

Modules§

api
operation
Condition helpers — build eq-conditions for Table<RestApi, _> and peel them apart at the list_values boundary into URL query params.
table_source
vista
Vista bridge for the REST API backend.