Build
Write an API contract for a fictional public park listing. Use an example JSON file instead of making external requests. Identify any fields you would not publish.
Explain what an API sends and where credentials must stay.
Work with an array of records and use a button to switch a page between states.
Prototype an interface for a fictional city parks directory without making a network request. A public response may include name, district and opening status, but must not include a private contact or provider key.
Do not confuse an empty result with failed access or ship a real API key in a public script.
Run the checks below and write down what you expected, what happened, and one change you can demonstrate. Self-checks are practice evidence, not a verified grade.
Write an API contract for a fictional public park listing. Use an example JSON file instead of making external requests. Identify any fields you would not publish.
Try a well-formed response, an empty response, and an error. Explain what the interface should show in each case, and where any real key would belong.
What is the difference between a public API response and a credential?
Use a fictional example with park name, district, and opening status. Sketch empty and error states.
Ask how the interface can distinguish an empty response from a failed request.