HTTP POST: /api/v1/current/weather
Request Body: {
"city":"",
"zipCode":"",
"latitude":"",
"longitude:"",
"region":""
}
Response: {
"temperature":"",
"humidity":"",
"wind":"",
"precipitation":"",
"city":"",
"description":"",
"weather_type":"SUNNEY/COLUDY/RANING/COLD"
"icon":""
}
HTTP POST: /api/v1/weather/
Request Body: {
"city":"",
"zipCode":"",
"latitude":"",
"longitude:"",
"region":"",
"start_date_time":"",
"end_date_time":""
}
Response: {
"start_date_time":"",
"end_date_time":"",
"weather":[{
"temperature":"",
"humidity":"",
"wind":"",
"precipitation":"",
"city":"",
"description":"",
"weather_type":"SUNNEY/COLUDY/RANING/COLD"
"icon":"",
"hour":"",
"day_time":"AM/PM"
}]}
HTTP PATCH: /api/v1/weather/subscribe/{email}/{flag}
Path Parameter:
email: User Email
flag: SUBSCRIBE/UNSUBSCRIBE
Deep dive into 2-3 key components. Explain how they work, how they scale, discuss tradeoffs, capacity, and any relevant algorithms or data structures.