API controller for retrieving information about Congresses
- Source:
Requires
Methods
(static) getCongressById()
GET congress information, which congress indicated in req params
- Source:
(static) getCongresses()
GET all congresses
- Source:
(static) getCongressMembers()
GET members by congress, which congress indicated in req params
- Source:
(static) getCongressVotes()
GET votes by congress, provided in request parameters (delegates to getVotesByCongress in votes controller)
(static) validateCongressId()
Helper middleware to validate congress id's, passes 400 error otherwise congress id is indicated in req params as 'congress'
- Source: