Open ERosendo opened 3 weeks ago
One extra complication here is that a feature like this would allow people to buy documents from PACER for which we lack the docket. That'd make them orphan documents, which would be confusing for them, but it's probably something we can document.
One solution might be to automatically go get the docket when this happens. We could do that, I guess, by grabbing the docket number from the header of the PDF after we bought it, but, well, this is getting complicated now...
Headline
what would an ideal headline be for a press release?
What would we want to announce?
What is the Feature?
New logic for the
recap-fetch
endpoint that enables users to initiate a document purchase by simply providing the court ID and Pacer document ID from a PACER link.What Problem Might it Solve?
The current implementation of the fetch endpoint requires users to send the document ID from our database. This can be time-consuming, especially for users who have a PACER link but need to make additional API calls to retrieve the correct document ID.
For more information on the current endpoint, please refer to the documentation: https://www.courtlistener.com/help/api/rest/recap/#pdf.
The new feature simplifies the process by allowing users to directly input information from their PACER link, saving time and effort.
Describe a Scenario in Which the Feature Might be Used
A user has a PACER link for a specific document they want to purchase. Instead of manually searching for the document ID using other APIs endpoints, they can directly input the court ID and Pacer document ID from the link into the fetch endpoint. Our code will then locate the matching document and initiate the purchase process.
Technical Requirements
What would it require that we do technically?
pacer_doc_id
field to the PacerFetchQueue class.validate
method in PacerFetchQueueSerializer to ensure bothcourt_id
andpacer_doc_id
are provided by the user.