You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+71-4Lines changed: 71 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Installation
22
22
Available Middlewares
23
23
---------------------
24
24
25
-
**jsonExtension**
25
+
**jsonExtension()**
26
26
27
27
This middleware allows to use the dot-notation `.json` in API endpoints URL (Express route paths).
28
28
This feature can be used as a shortcut to require JSON representations of resources, instead of using `Accept: application/json` HTTP header only for content-negotiation in an API.
@@ -32,9 +32,16 @@ OK, wait a moment... why using dot-notation when we have HTTP headers?
32
32
Be pragmatic! And make your API users happy, as explained in [this guide](https://leanpub.com/thewebapinntux).
33
33
34
34
35
-
Basic Example
35
+
36
+
**jsonLDExtension()**
37
+
This middleware allows to use the dot-notation `.jsonld` in API endpoints URL (Express route paths).
38
+
This feature can be used as a shortcut to require JSON-LD representations of resources, instead of using `Accept: application/ld+json` HTTP header only for content-negotiation in an API.
0 commit comments