Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
protogrid:json_api_database_views [2019-02-07 09:01] 46.140.51.3protogrid:json_api_database_views [2019-02-07 09:05] – [sums_by_proto_and_design_element] 46.140.51.3
Line 630: Line 630:
     }     }
 } }
-</code+</code>
 ===== data_protos_by_id ===== ===== data_protos_by_id =====
 This view lists all [[protgrid:proto#data_proto|data Protos]] by id. The value is null. You may want to use this to list all data Protos or to find a given Proto. This view lists all [[protgrid:proto#data_proto|data Protos]] by id. The value is null. You may want to use this to list all data Protos or to find a given Proto.
Line 1026: Line 1026:
 <code> <code>
 https://example.protogrid.com/api/v2/apps/produktekatalog/views/sums_by_proto_and_design_element?keys=[["12532072-0d76-4457-8cf8-7847d0470738", "816950eb-1b70-41e2-89f5-5400f9636345"]] https://example.protogrid.com/api/v2/apps/produktekatalog/views/sums_by_proto_and_design_element?keys=[["12532072-0d76-4457-8cf8-7847d0470738", "816950eb-1b70-41e2-89f5-5400f9636345"]]
 +</code>
 +
 +Example Response:
 +<code json>
 +{
 +    "errors": [],
 +    "protogrid_environment_version": "2.0beta7",
 +    "result": {
 +        "rows": [
 +            {
 +                "key": [
 +                    "12532072-0d76-4457-8cf8-7847d0470738",
 +                    "816950eb-1b70-41e2-89f5-5400f9636345"
 +                ],
 +                "value": 21
 +            }
 +        ],
 +        "total_rows": 0
 +    }
 +}
 </code> </code>
  
Print/export