Changes between Version 17 and Version 18 of RestApi


Ignore:
Timestamp:
30.10.2011 23:48:06 (11 years ago)
Author:
jri
Comment:

Adapt JSON formatting of "Topics by type" example to page style (indentation is 2 spaces, newline before closing brace, no space before colon)

Legend:

Unmodified
Added
Removed
Modified
  • RestApi

    v17 v18  
    8787The default for `fetch_composite` is `false`. 
    8888 
    89 ==== Example: Getting all "Web Resource" topics ''without'' their `composite` values ==== 
     89==== Example: Getting all "Web Resource" topics ''without'' their `composites` ==== 
    9090 
    9191{{{ 
     
    100100 
    101101{ 
    102    "total_count" : 2, 
    103    "items" : [ 
    104       { 
    105          "id" : 2436, 
    106          "uri" : "", 
    107          "type_uri" : "dm4.webbrowser.web_resource", 
    108          "value" : "JSON Format - your online JSON Formatter", 
    109          "composite" : {} 
    110       }, 
    111       { 
    112          "id" : 2259, 
    113          "uri" : "", 
    114          "type_uri" : "dm4.webbrowser.web_resource", 
    115          "value" : "DeepaMehta 4.0.5", 
    116          "composite" : {} 
     102  "total_count": 2, 
     103  "items": [ 
     104    { 
     105      "id": 2436, 
     106      "uri": "", 
     107      "type_uri": "dm4.webbrowser.web_resource", 
     108      "value": "JSON Format - your online JSON Formatter", 
     109      "composite": { 
    117110      } 
    118    ] 
     111    }, 
     112    { 
     113      "id": 2259, 
     114      "uri": "", 
     115      "type_uri": "dm4.webbrowser.web_resource", 
     116      "value": "DeepaMehta 4.0.5", 
     117      "composite": { 
     118      } 
     119    } 
     120  ] 
    119121} 
    120122