api icon indicating copy to clipboard operation
api copied to clipboard

Set bulkdata collections (BILLSTATUS/ECFR) xmlLinks to use the /xml endpoint instead of referencing bulkdata urls

Open jonquandt opened this issue 9 months ago • 0 comments

Currently when a user requests one of our bulkdata-only collections that are available via the API (i.e. BILLSTATUS, ECFR), the xmlLink returned is a /bulkdata link. To ensure consistency with other collections, we will be updating the endpoints returned to use the more standard /packages/packageId/xml approach.

Examples

https://api.govinfo.gov/packages/BILLSTATUS-118hr8386/summary?api_key=DEMO_KEY

  • returns https://www.govinfo.gov/bulkdata/BILLSTATUS/118/hr/BILLSTATUS-118hr8386.xml

https://api.govinfo.gov/packages/ECFR-title5/summary?api_key=DEMO_KEY

Currently, https://api.govinfo.gov/packages/ECFR-title5/xml?api_key=DEMO_KEY does already return the correct xml, but we are not returning in the package summary xmlLink.

BILLSTATUS packages /xml endpoints are currently not returning, but they will as part of our upcoming release.

jonquandt avatar May 18 '24 12:05 jonquandt