Skip to content

codeforkansascity/local-govt-reporter-api

Repository files navigation

Local Govt Reporter REST API

The live site is here: http://codeforkc.org/local-govt-reporter/#/news

Get list of meetings

Request

GET /meetings/?start=0&length=25

curl -i -H 'Accept: application/json' https://jt5wf041v4.execute-api.us-east-2.amazonaws.com/Prod/api/meetings/?start=0&length=25
Required Parameters for pagination
Start (0 based)
Length (max 1000)
Optional Parameters
Sort By (default = MeetingDate)

GET /meetings/?start=0&length=25&sortBy=Jurisdiction

curl -i -H 'Accept: application/json' https://jt5wf041v4.execute-api.us-east-2.amazonaws.com/Prod/api/meetings/?start=0&length=25&sortBy=Jurisdiction
Sort Direction (default = desc)

GET /meetings/?start=0&length=25&sortBy=County&sortDirection=asc

curl -i -H 'Accept: application/json' https://jt5wf041v4.execute-api.us-east-2.amazonaws.com/Prod/api/meetings/?start=0&length=25&sortBy=County&sortDirection=asc
Jurisdiction

GET /meetings/?jurisdiction={jurisdiction}&start=0&length=25

curl -i -H 'Accept: application/json' https://jt5wf041v4.execute-api.us-east-2.amazonaws.com/Prod/api/meetings/?jurisdiction=KCMO&start=0&length=25
State

GET /meetings/?state={state}&start=0&length=25

curl -i -H 'Accept: application/json' https://jt5wf041v4.execute-api.us-east-2.amazonaws.com/Prod/api/meetings/?state=MO
County

GET /meetings/?county={county}&start=0&length=25

curl -i -H 'Accept: application/json' https://jt5wf041v4.execute-api.us-east-2.amazonaws.com/Prod/api/meetings/?county=Jackson
Meeting Type

GET /meetings/?meetingType={meetingType}&start=0&length=25

curl -i -H 'Accept: application/json' https://jt5wf041v4.execute-api.us-east-2.amazonaws.com/Prod/api/meetings/?meetingType=Public%20Works`
Start Date AND End Date (must be used together and in ISO 8601 format)

GET /meetings/?startDate={YYYY-MM-DD}&endDate={YYYY-MM-DD}

curl -i -H 'Accept: application/json' https://jt5wf041v4.execute-api.us-east-2.amazonaws.com/Prod/api/meetings/?startDate=2021-02-01&endDate=2021-03-01`
Tags

GET /meetings/?tags={tag}&start=0&length=25

curl -i -H 'Accept: application/json' https://jt5wf041v4.execute-api.us-east-2.amazonaws.com/Prod/api/meetings/?tags=Special%20Session`

Get a specific meeting

Request

GET /meeting/{meetingID}&start=0&length=25

curl -i -H 'Accept: application/json' https://jt5wf041v4.execute-api.us-east-2.amazonaws.com/Prod/api/meetings/KCMO-2021-03-03-KCTGA-Comprehensive-HIV-Prevention-&-Care-Plan

Get a list of jurisdictions

Request

GET /jurisdictions/

curl -i -H 'Accept: application/json' https://jt5wf041v4.execute-api.us-east-2.amazonaws.com/Prod/api/jurisdictions/
Optional Parameters
State

GET /jurisdictions/?state={state}

curl -i -H 'Accept: application/json' https://jt5wf041v4.execute-api.us-east-2.amazonaws.com/Prod/api/jurisdictions/?state=KS   
County

GET /jurisdictions/?county={county}

curl -i -H 'Accept: application/json' https://jt5wf041v4.execute-api.us-east-2.amazonaws.com/Prod/api/jurisdictions/?county=Johnson     

Get a list of tags

Request

GET /tags/

curl -i -H 'Accept: application/json' https://jt5wf041v4.execute-api.us-east-2.amazonaws.com/Prod/api/tags/
Optional Parameters
State

GET /tags/?state={state}

curl -i -H 'Accept: application/json' https://jt5wf041v4.execute-api.us-east-2.amazonaws.com/Prod/api/tags/?state=KS   
County

GET /tags/?county={county}

curl -i -H 'Accept: application/json' https://jt5wf041v4.execute-api.us-east-2.amazonaws.com/Prod/api/tags/?county=Johnson   
Jurisdiction

GET /tags/?jurisdiction={jurisdiction}

curl -i -H 'Accept: application/json' https://jt5wf041v4.execute-api.us-east-2.amazonaws.com/Prod/api/tags/?jurisdiction=Mission  

Get a list of counties

Request

GET /counties/

curl -i -H 'Accept: application/json' https://jt5wf041v4.execute-api.us-east-2.amazonaws.com/Prod/api/counties/

Get a list of states

Request

GET /states/

curl -i -H 'Accept: application/json' https://jt5wf041v4.execute-api.us-east-2.amazonaws.com/Prod/api/states/

Get a list of meeting types

Request

GET /meetingtypes/

curl -i -H 'Accept: application/json' https://jt5wf041v4.execute-api.us-east-2.amazonaws.com/Prod/api/meetingtypes/

Request

GET /CouncilMembers/

curl -i -H 'Accept: application/json' https://jt5wf041v4.execute-api.us-east-2.amazonaws.com/Prod/api/CouncilMembers/?jurisdiction=Jackson County

Here is a simple application context diagram: https://docs.google.com/drawings/d/1OGJkMRAklFfg_ILa40IwgYN1MgCIcZNLoGCAwWHbTPY/edit

Live app http://codeforkc.org/local-govt-reporter/#/home

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages