As a user interested in USCOURTS materials, I want to retrieve data from a single court or type of court from the API so that I can update only the information I'm looking for.
Background
The USCOURTS collection comprises content coming from approximately 140 U.S Courts, including District, Banckruptcy, Appellate, and National Courts. When users try to use the collections or published endpoints to retrieve USCOURTS data, there is a high likelihood that they will get information from Courts that they are not specifically interested in.
Acceptance Criteria
users can add a courtCode parameter value to a collections or published endpoint requests in order to retrieve packages from only the specified courts.
users can add a courtType parameter value to a collections or published endpoint requests in order to retrieve results from only the specified court type.
Story
As a user interested in USCOURTS materials, I want to retrieve data from a single court or type of court from the API so that I can update only the information I'm looking for.
Background
The USCOURTS collection comprises content coming from approximately 140 U.S Courts, including District, Banckruptcy, Appellate, and National Courts. When users try to use the collections or published endpoints to retrieve USCOURTS data, there is a high likelihood that they will get information from Courts that they are not specifically interested in.
Acceptance Criteria
courtCode
parameter value to a collections or published endpoint requests in order to retrieve packages from only the specified courts.courtType
parameter value to a collections or published endpoint requests in order to retrieve results from only the specified court type.Notes
courtCode
is available in each package summary, and can be identified in the collections or published endpoints by looking at the values immediately following "USCOURTS-" within the packageID key. For example: https://api.govinfo.gov/collections/USCOURTS/2021-02-03T00:00:00Z?offset=0&pageSize=100&api_key=DEMO_KEYThe first result (as of the time of the initial request) has the following:
In this case, the courtCode would be
flnd
Similarly, courtType is also available within the package summary: https://api.govinfo.gov/packages/USCOURTS-flnd-3_19-cv-01630/summary?api_key=DEMO_KEY
Available
courtType
values are: