Skip to content

Commit 9453e10

Browse files
committed
Corrected Markdown formatting and removed trailing whitespace. Fixes #125.
1 parent cbac236 commit 9453e10

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

faq/index.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@ remove, only add_ strategy.
1212
### Why not use the HAL specification?
1313

1414
There are several reasons:
15+
1516
* HAL embeds child documents recursively, while JSON API flattens the entire
1617
graph of objects at the top level. This means that if the same "people" are
1718
referenced from different kinds of objects (say, the author of both posts and
1819
comments), this format ensures that there is only a single representation of
19-
each person document in the payload.
20+
each person document in the payload.
2021
* Similarly, JSON API uses IDs for linkage, which makes it possible to cache
21-
documents from compound responses and then limit subsequent requests to only
22-
the documents that aren't already present locally. If you're lucky, this can
23-
even completely eliminate HTTP requests.
22+
documents from compound responses and then limit subsequent requests to only
23+
the documents that aren't already present locally. If you're lucky, this can
24+
even completely eliminate HTTP requests.
2425
* HAL is a serialization format, but says nothing about how to update
2526
documents. JSON API thinks through how to update existing records (leaning on
2627
PATCH and JSON Patch), and how those updates interact with compound documents

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy