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

[API] Add new endpoint with range between two dates #22

Open
rafaell-lycan opened this issue Apr 18, 2015 · 1 comment
Open

[API] Add new endpoint with range between two dates #22

rafaell-lycan opened this issue Apr 18, 2015 · 1 comment
Milestone

Comments

@rafaell-lycan
Copy link
Owner

Description

  • User need to set two dates and separate by "/" (2015-10-15/2015-10-16)
  • The first param need to be lt than second (/2015-10-15/2015-10-16)
  • If user set other params, show a error message
@rafaell-lycan rafaell-lycan added this to the API milestone May 15, 2015
@rafaell-lycan
Copy link
Owner Author

@wbruno

About validations:

Case 0. Default

  • Return current status of Sabesp

Case 1. Select with Date

  • Date format must be like YYYY-MM-DD;
  • Date must be between 2003-01-01 until today;
  • Return status about the specific date

Case 2. Range

  • Date format must be like YYYY-MM-DD;
  • Date must be between 2003-01-01 until today;
  • The first date must be lower than the second
  • Return status about the specific range

Possible routes

  • /range?from=YYYY-MM-DD&to=YYYY-MM-DD)
  • /range?begin=YYYY-MM-DD&end=YYYY-MM-DD
  • /range/YYYY-MM-DD/YYYY-MM-DD

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

No branches or pull requests

1 participant