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

Application that allows a user to register a case number and a phone number to be notified #10

Open
2 tasks
ying1 opened this issue Mar 16, 2022 · 0 comments
Assignees

Comments

@ying1
Copy link
Collaborator

ying1 commented Mar 16, 2022

This should be a simple client / server application.

Parts:

  • UI - simple javascript / index.html that will call the backend services. - Ying
  • REST endpoints to work with the UI above. See below for details. - Ray

Application flow:

  • User lands on an index.html page in which there is a field for phone number and case number user can provide.
  • User provides the case number and phone number.
  • User will first fill in the case data - which a query will be done.
  • Once user verifies that they had the correct case, the user submits his/her number to have notification be done.
    (Optionally, we can have a - notify me # days prior court date - if so, we'll need to add additional input and storage in the table)

Two REST endpoints are needed

  1. /get_court_date?case=<case_number> . This endpoint will query the database for the nearest court date for this case. This will also add as a verification for the user so that they can validate if they had set the case properly.
    if case not found:
{
   "case": <case_number>
   "court_date": null,
   "court_data": null,
   "system_last_updated" : <last_scanned_date> 
} 

if case is found -

{
   "case": <case_number>
   "court_date": <date_closest_to_today_in_future>
   "court_data": { ...some sort of info maybe to display to user? ...  } 
   "system_last_updated" : <last_scanned_date> 
} 
  1. /notify_case?case=<case_number>&phone=<phone_number> . This endpoint should create an entry in the notification table for case number and the phone. This table will be used by the cron job that will send out notification.
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