LibraryOfCongress / api.congress.gov

congress.gov API
642 stars 39 forks source link

Bill sub endpoints no longer accept uppercase bill type #150

Closed Gmanicus closed 1 year ago

Gmanicus commented 1 year ago

The /bill/{congress}/{billType}/{billNumber}/... endpoints used to be case-insensitive for bill types such as HR, HRES, but now only accept them in lowercase.

They now return 404 Not Found. E.g:

{
    "error": "Unknown resource: bill/118/HR/4755/actions"
}

The details endpoint is still case-insensitive.

ryparker commented 1 year ago

This is intentional, see this change log entry: https://github.com/LibraryOfCongress/api.congress.gov/blob/main/ChangeLog.md#change-3-2

Gmanicus commented 1 year ago

Ah, I see! Thanks for pointing that out @ryparker