Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date inconsistencies #6

Open
arpie71 opened this issue Mar 10, 2020 · 1 comment
Open

Date inconsistencies #6

arpie71 opened this issue Mar 10, 2020 · 1 comment

Comments

@arpie71
Copy link
Collaborator

arpie71 commented Mar 10, 2020

There is an inconsistency in the parsing of the date in the API. For some endpoints, a leading zero is necessary but for others it is not.
For a full-text search, the full date is necessary.
So this does not work: http://api.declassification-engine.org/declass/v0.4/text/?search=udeac&collections=statedeptcables&start_date=1950-1-1&end_date=2000-12-31&page_size=25
For a regular date search, the leading zero is not needed.
This works: http://api.declassification-engine.org/declass/v0.4/?start_date=1950-1-1&end_date=2000-12-31&page_size=100

@benjlis
Copy link
Member

benjlis commented Mar 10, 2020

We will make the API consistent across all calls and not require a leading zero when specifying a date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants