From 48f7749730c718d3e2874121334c6950a7f91f9c Mon Sep 17 00:00:00 2001 From: Constantine Colotiline Date: Wed, 22 Oct 2014 18:39:06 +0400 Subject: [PATCH 1/3] Update README.md --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0372f0c..2ca2418 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,7 @@ Reversed API documentation collection: [{ "[uri]" }], - "updated_at":1413818419, - "main": "[uri]" + "updated_at":1413818419 }], documents: { "[uri]": { @@ -51,6 +50,14 @@ Reversed API documentation `[funType]` can be `video`, `coub`, `picture`, `infographics`. +### Additional JSON base on `[screenType] +#### Is contained in `root` property + +`news` +```json +"main": "[uri]" +``` + ### Additional JSON based on `[documentType]` #### Is contained in `documents` property From f2239abe0eec5748408eb7ffc62c83a62004fac3 Mon Sep 17 00:00:00 2001 From: Constantine Colotiline Date: Wed, 22 Oct 2014 18:39:43 +0400 Subject: [PATCH 2/3] Update README.md --- README.md | 52 ++++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 2ca2418..7ff5263 100644 --- a/README.md +++ b/README.md @@ -9,36 +9,36 @@ Reversed API documentation ```json { root: [{ - "title" : "[Title]", - "screen_type" : "[screenType]", + "title": "[Title]", + "screen_type": "[screenType]", collection: [{ "[uri]" }], - "updated_at":1413818419 + "updated_at": 1413818419 }], documents: { "[uri]": { "url": "[uri]", - "title" : "[title]", - "second_title" : "[secondTitle]", + "title": "[title]", + "second_title": "[secondTitle]", "authors": [ ["Author"] ], - "document_type" : "[documentType]", + "document_type": "[documentType]", "version":[versionInt], "published_at":1413814542, "full":[isFullBoolean], "source": { - "url" : "[sourceUrl]", - "name" : "[sourceName]", - "quote" : "[sourceQuote]" + "url": "[sourceUrl]", + "name": "[sourceName]", + "quote": "[sourceQuote]" }, "image": { - "original_url" : "[originalImageUri]", - "large_url" : "[largeImageUri]", - "small_url" : "[smallImageUri]", - "caption" : "[caption]", - "credit" : "[credit]" + "original_url": "[originalImageUri]", + "large_url": "[largeImageUri]", + "small_url": "[smallImageUri]", + "caption": "[caption]", + "credit": "[credit]" } } } @@ -67,28 +67,28 @@ Reversed API documentation "table_of_contents":[ "[chapterName]" ], -"thesis" : "[thesis]", -"chapters" : [{ - "title" : "[title]", - "content" : "[content]" +"thesis": "[thesis]", +"chapters": [{ + "title": "[title]", + "content": "[content]" }], -"layout_url" : "[layoutUrl]", -"bg_image" : { - "large_url" : "[largeBgUri]", - "small_url" : "[smallBgUri]", - "caption" : "[caption]", - "credit" : "[credit]" +"layout_url": "[layoutUrl]", +"bg_image": { + "large_url": "[largeBgUri]", + "small_url": "[smallBgUri]", + "caption": "[caption]", + "credit": "[credit]" } ``` `fun` ```json -"fun_type" : "[funType]" +"fun_type": "[funType]" ``` `topic` ```json -"content" : [ +"content": [ "[uri]" ] ``` From 94c349b01393085df53c53a29194e22197e1e930 Mon Sep 17 00:00:00 2001 From: Constantine Colotiline Date: Wed, 22 Oct 2014 20:18:22 +0400 Subject: [PATCH 3/3] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 7ff5263..94f0a3a 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ Reversed API documentation "document_type": "[documentType]", "version":[versionInt], "published_at":1413814542, + "updated_at":1413814542, "full":[isFullBoolean], "source": { "url": "[sourceUrl]",