api.integration

Classes

ApiApp

Functions

get_api_endpoints() → list[str]

Module Contents

class api.integration.ApiApp[source]

Bases: morepath.App

get_cache(name: str, expiration_time: float) → onegov.core.cache.RedisCacheRegion[source]
configure_api(**cfg: Any) → None[source]

Configures the API.

The following configuration options are accepted:

Rate_limit:

A tuple with number of request per expiration time in seconds.

Since providing an API is not our main focus, we keep the rate limit rather low (<10 requests per minute) while still allowing small crawl bursts by default.

property rate_limit_cache: onegov.core.cache.RedisCacheRegion[source]

A cache for rate limits.

api.integration.get_api_endpoints() → list[str][source]