838 B
838 B
ADDED Requirements
Requirement: Short URL per alert
When an alert SMS is sent with a location, a short code SHALL be created mapping to the scan, and the SMS SHALL contain https://where-woof.com/s/{code} as the location link.
Scenario: Alert with location
- WHEN an alert is sent for a scan with coordinates
- THEN a short code exists for the scan and the SMS links to it
Requirement: Location page
GET /s/{code} SHALL render the owner's location page: embedded map of the scan's coordinates, the finder's phone if provided, a link to the tag page, and the scan time.
Scenario: Owner opens the link
- WHEN the owner opens a valid short link
- THEN the map and finder details are shown
Scenario: Unknown code
- WHEN the code does not exist
- THEN a not-found response is returned