Schema for /speeches endpoint has changed. Bold attributes in the following list are new attributes, and attribute formatted_speech_id has changed name to speech_name.
name: str = Field(None, description="Name of speaker")
year: int = Field(None, description="Year of speech", examples=[1960])
gender: str = Field(None, description="Gender of speaker")
**gender_abbrev**: str = Field(None, description="Gender of speaker")
party_abbrev: str = Field(None, description="Party of speaker")
speech_link: str = Field(None, description="Source of speech")
document_name: str = Field(None, description="Unique id of speech")
link: str = Field(None, description="Link to the speaker")
**speech_name**: str = Field(None, description="Formatted speech id")
**chamber_abbrev**: str = Field(None, description="Chamber of speech")
**speech_id**: str = Field(None, description="Unique id of speech")
**wiki_id**: str = Field(None, description="Wiki id of speaker")
**document_id**: int = Field(None, description="Document system id")
New features
/speeches
now accepts speech ids (UUID) (#54):How to use in call:
API endpoint
/speeches
now accepts POST requests (#54)Updates of values in returned speech index is now configurable in
config.yaml
(https://github.com/humlab-swedeb/swedeb-api/commit/71364c1dd3a0f9e36cdc9e63e2f2b6a3ad74c9cd).Breaking Changes:
formatted_speech_id
has changed name tospeech_name
.Refactorings and changes
from_year
andto_year
parameters (added to filter opts instead). (https://github.com/humlab-swedeb/swedeb-api/commit/337b0e034c8916663006c9a5124084fd79f21af8, https://github.com/humlab-swedeb/swedeb-api/commit/18dad3f79b32d77447c3a328b4d5111dc1cf337e, https://github.com/humlab-swedeb/swedeb-api/commit/9f08fce8e551703d70548e96059ebdcd67badeb9, https://github.com/humlab-swedeb/swedeb-api/commit/c499bdfba7858d5965e4d4e32060bc30cc57783f)person_id
,wiki_id
or internal system id. (https://github.com/humlab-swedeb/swedeb-api/commit/7f5a4a422f0288cbc53bd8683ceee8f8fa11c207)Performance fixes
Bug fixes
fill_gaps
when computing trends (https://github.com/humlab-swedeb/swedeb-api/commit/777fe1e06ffe9879755f3299a488ef9363cdf6e9).