Dwebs911 / TechComA3Group

0 stars 0 forks source link

Call and Response #5

Open Dwebs911 opened 4 years ago

Dwebs911 commented 4 years ago

Flesh out the sample call and response sections

NathanCarriere commented 4 years ago

I wrote up 2 ideas for what we can do with this. The second idea here is meant to be an improvement on idea 1.

I made these quite specific since the prof described in class that the JSON output is what she meant by "resources", and also because the assignment states that the resources need to be detailed and JSON-formatted.

Example Resources Idea 1

{"results" { "Provided_City":"Winnipeg", "Provided_Address":"1 Main Street", "Provided_Postal_Code":"R3T2M5", "Address_Resolved":"true", "Temperature_Celcius":"-5", "City_Population":700000, "Sunrise_Time":[UTC-formatted time? Or Manitoba time?], "Sunset_Time":[UTC, or Manitoba?], "City_Elevation_Metres": 1000 } status: "OK" }

Explanation:

My concerns with this idea:

Call/Resources Idea 2:

Based on issues from 1:

call: /info?city=Winnipeg&postal_code=R3T2M5&temp=true&pop=true&sunrise=true&sunset=true&elev=false (with city being the only required param)

response: {"results" { "Provided_City":"Winnipeg", "Provided_Postal_Code":"R3T2M5", "Temperature_Celcius":"-5", "City_Population":700000, "Local_Sunrise_Time":[local time], "Local_Sunset_Time":[local time], } status: "OK" }

Explanation: