]> git.mxchange.org Git - friendica.git/commitdiff
Fix JSON syntax in Friendica API doc
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 10 Dec 2019 12:54:11 +0000 (07:54 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 10 Dec 2019 12:54:11 +0000 (07:54 -0500)
doc/API-Friendica.md

index 2e33a887da170d96beefdd28396f4d2c010ba748..76440600c43b8d24b18a44f1918fb2193dea5462 100644 (file)
@@ -435,7 +435,7 @@ json:
 
 ```json
        {
-               "id": "photo id"
+               "id": "photo id",
                "created": "date(YYYY-MM-DD HH:MM:SS)",
                "edited": "date(YYYY-MM-DD HH:MM:SS)",
                "title": "photo title",
@@ -447,7 +447,7 @@ json:
                "width": "number",
                "profile": "1 if is profile photo",
                "link": {
-                       "<scale>": "url to image"
+                       "<scale>": "url to image",
                        ...
                },
                // if 'scale' is set
@@ -489,11 +489,11 @@ json:
 ```json
        [
                {
-                       id: "resource_id",
-                       album: "album name",
-                       filename: "original file name",
-                       type: "image mime type",
-                       thumb: "url to thumb sized image"
+                       "id": "resource_id",
+                       "album": "album name",
+                       "filename": "original file name",
+                       "type": "image mime type",
+                       "thumb": "url to thumb sized image"
                },
                ...
        ]