What's wrong with this topic answer key
This is the answer key for Activity: What’s wrong with this API reference topic.
After you’ve finished commenting on the Google Doc, go to this annotated Google doc.

Alternatively, expand the answers below to see how many issues you found. If you found additional issues beyond those noted here, feel free to drop me an email letting me know. You can also add your own comments on the Google Doc answer key.
Answer key:
Resource description:
- wordy. should be more concise and action-oriented
- Surfreport probably shouldn’t capitalized
Endpoints and definition:
-
GET/POST should just be GET
-
no need for colon in
{:beachId} -
consider color coding {beachId}
Parameters:
-
Query string parameters are mixed into same table as Path parameters. Separate into different tables.
-
Where you get the beach ID isn’t specified
-
Number versus Integer is potentially inconsistent. Technically, a number refers to a float or double (which would allow for decimals), while an integer refers to a whole number. In this case, I doubt the beach IDs have decimals.
-
No default specified for
timeparameter -
With
timedata types, why do some data types have examples but not all?
Sample request:
-
not in curl format
-
only one query string parameter shown; should include
timetoo -
zipquery string parameter is included but not defined anywhere -
appIDincludes long API key that should likely be shortened to a variable such asAPIKEY
Sample response:
-
includes
riptideelement that isn’t defined in response definition -
riptidemissing comma after second instance -
riptidenot shown in third hour block -
indentation formatting is a bit messed up with word riptide
Response definition:
-
winddescription doesn’t indicate what measurement is used (knots?) -
for
wind, “int” should be spelled out as integer -
watertempdoesn’t indicate measurement units either -
surfheightdata type is “Map” when it should be Integer -
recommendationdoesn’t include more detail such as how many possible recommendation strings are available, and what they even mean. -
surfheightshould either besurf_heightorsurfheight– response example conflicts with usage in response definition table -
no hierarchy expressed for child elements (e.g.,
tide,wind,watertemp)
142/145 pages complete. Only 3 more pages to go.