courtbot-python icon indicating copy to clipboard operation
courtbot-python copied to clipboard

Add an API: GET /eligible-jurisdiction?state=

Open syk1112 opened this issue 6 years ago • 1 comments

Step 1 of #42

  • [ ] Create an api endpoint returning all the eligible counties Courtbot serves in Oklahoma via an api call /eligible-jurisdiction?state=OK. Response should return:
{
    "jurisdiction_type": "city" | "county" | "ward" | "zip_code" | "state",
    "eligible_juridisdictions": [
        // should be eligible values of the jurisdiction_type
        // e.g. "city" jurisdiction type lists eligible cities "Tulsa", "Muskogee", "Roger" etc
        // "zip_code" jurisdiction type lists eligible zip codes 74133, 74012, 74114
    ]
}
  • [ ] Should be able to change the value in state param in the URL to get the state's eligible jurisdictions as mentioned in https://github.com/codefortulsa/courtbot-python/issues/40

syk1112 avatar Oct 19 '19 02:10 syk1112

I think I will try to look at this in my spare time.

kendallwerts avatar Nov 06 '19 15:11 kendallwerts