agency.api
Attributes
Classes
Functions
|
Applies filters for several 'updated' comparisons. |
|
|
|
Returns the iso format of the modified or created field of item. |
Module Contents
- agency.api.filter_for_updated[T](filter_operation: str, filter_value: str | None, result: T) T[source]
Applies filters for several ‘updated’ comparisons. Refer to UPDATE_FILTER_PARAMS for all filter keywords.
- Parameters:
filter_operation – the updated filter operation to be applied. For allowed filters refer to UPDATE_FILTER_PARAMS
filter_value – the updated filter value to filter for
result – the results to apply the filters on
- Returns:
filter result
- class agency.api.ApisMixin[source]
-
- property agency_api: AgencyApiEndpoint[source]
- property person_api: PersonApiEndpoint[source]
- property membership_api: MembershipApiEndpoint[source]
- agency.api.get_modified_iso_format(item: onegov.core.orm.mixins.TimestampMixin) str[source]
Returns the iso format of the modified or created field of item.
- Parameters:
item – db item e.g. agency, people, membership
- Returns:
str iso representation of item last modification
- class agency.api.PersonApiEndpoint[source]
Bases:
onegov.api.ApiEndpoint[onegov.agency.models.ExtendedPerson,uuid.UUID],ApisMixin
- class agency.api.AgencyApiEndpoint[source]
Bases:
onegov.api.ApiEndpoint[onegov.agency.models.ExtendedAgency,int],ApisMixin