Options
All
  • Public
  • Public/Protected
  • All
Menu

Module entities/entity.parliament-period

Parliament period related methods

Abgeordnetenwatch API Documentation

Index

Type aliases

ParliamentPeriodListResult

ParliamentPeriodListResult: { data: EntityParliamentPeriod[]; meta: ResponseMeta }

List result

Type declaration

ParliamentPeriodRelatedDataParameter

ParliamentPeriodRelatedDataParameter: "show_information" | "polls" | "mandates" | "committees" | "constituencies"

Possible extra data that you can include on the response for a single item

ParliamentPeriodResult

ParliamentPeriodResult: { data: EntityParliamentPeriod; meta: ResponseEntityMeta }

Single item result

Type declaration

Variables

Const url

url: "https://www.abgeordnetenwatch.de/api/v2/parliament-periods" = 'https://www.abgeordnetenwatch.de/api/v2/parliament-periods'

Functions

Const parliamentPeriod

  • parliamentPeriod(id: number, relatedData?: null | "show_information" | "polls" | "mandates" | "committees" | "constituencies"): Promise<ParliamentPeriodResult>
  • Get a single ParliamentPeriod

    response = await parliamentPeriod(5);
    

    Parameters

    • id: number

      Id of the ParliamentPeriod.

    • relatedData: null | "show_information" | "polls" | "mandates" | "committees" | "constituencies" = null

      Possible related Data you can include in the result

    Returns Promise<ParliamentPeriodResult>

    ParliamentPeriodResult as JSON

Const parliamentPeriodList

Generated using TypeDoc