From the course: Learn API Documentation with JSON and XML
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Documenting one-level JSON responses
From the course: Learn API Documentation with JSON and XML
Documenting one-level JSON responses
- [Narrator] Let's take a look at how to document JSON. We'll start by looking at single-level responses. So as I said, we're going to start with the simplest of JSON files, which is data with no nesting. In other words, we'll just have one object with some key-value pairs. Everything will be on one level. Before we get into the details, let me first give you a caveat. There is no one standard way to document JSON. What's described in this lesson is my own favorite way, based on my years of experience. You might find a better way for the APIs that you document. I suggest documenting one JSON file and then getting approval from the project manager and the developers before writing all of the documentation. That said, I document each JSON structure with a sentence that describes what it represents and then I use one or more tables. The columns of the tables contain the key names, description, and type. If you need to, you can have a column that includes additional information, which I…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
JSON basics2m 45s
-
(Locked)
JSON examples6m 14s
-
(Locked)
Create JSON challenge37s
-
(Locked)
Create JSON solution1m 22s
-
(Locked)
Documenting one-level JSON responses2m 28s
-
(Locked)
Documenting nested JSON responses6m 7s
-
(Locked)
Documenting JSON requests5m 32s
-
(Locked)
Documenting JSON challenge35s
-
(Locked)
Documenting JSON solution2m 47s
-
-
-
-