Table of Contents

Class RestDataSourceProvider

Namespace
ReportWright.Data.Json
Assembly
ReportWright.Data.Json.dll

JSON over HTTP. The connection string is the base URL; a dataset's command text is a URL (relative to it, or absolute) with {Name} placeholders for query parameters, URL-encoded on substitution, or a request spec {"url","method","body","rows"} whose body placeholders are JSON-encoded. Every request passes the host's RestDataSourceOptions allowlist first; redirects are refused.

public sealed class RestDataSourceProvider : DataSourceProvider, IDisposable
Inheritance
RestDataSourceProvider
Implements
Inherited Members

Constructors

RestDataSourceProvider(RestDataSourceOptions)

Initializes the provider.

Fields

ProviderKind

The kind this provider serves.

Properties

Kind

Gets the kind this provider serves, matched to Kind ignoring case.

Methods

DiscoverSchema(ResolvedDataSource, ReportDataQuery, DataSourceExecutionOptions, CancellationToken)

Discovers the fields a dataset's query yields, without reading its rows where the source allows.

Dispose()
Execute(ResolvedDataSource, ReportDataQuery, DataSourceExecutionOptions, CancellationToken)

Runs a dataset's query.

Test(ResolvedDataSource, CancellationToken)

Tests that the source can be reached, without running a dataset.