Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
protogrid:json_api_database_views [2019-02-07 09:01] – 46.140.51.3 | protogrid:json_api_database_views [2019-02-07 09:09] – [sums_by_proto_and_design_element_and_condition] 46.140.51.3 |
---|
} | } |
} | } |
</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. |
<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> |
| |
<code> | <code> |
https://example.protogrid.com/api/v2/apps/produktekatalog/views/sums_by_proto_and_design_element_and_condition?keys=[["12532072-0d76-4457-8cf8-7847d0470738","816950eb-1b70-41e2-89f5-5400f9636345","359a18bf-2fb6-4d6d-afe4-3b6283f35b50","fde10c41-7e7c-45a2-bbf3-3065de5e05ad"]] | https://example.protogrid.com/api/v2/apps/produktekatalog/views/sums_by_proto_and_design_element_and_condition?keys=[["12532072-0d76-4457-8cf8-7847d0470738","816950eb-1b70-41e2-89f5-5400f9636345","359a18bf-2fb6-4d6d-afe4-3b6283f35b50","fde10c41-7e7c-45a2-bbf3-3065de5e05ad"]] |
| </code> |
| |
| Example Response: |
| <code json> |
| { |
| "errors": [], |
| "protogrid_environment_version": "2.0beta7", |
| "result": { |
| "rows": [ |
| { |
| "key": [ |
| "12532072-0d76-4457-8cf8-7847d0470738", |
| "816950eb-1b70-41e2-89f5-5400f9636345", |
| "359a18bf-2fb6-4d6d-afe4-3b6283f35b50", |
| "fde10c41-7e7c-45a2-bbf3-3065de5e05ad" |
| ], |
| "value": 5 |
| } |
| ], |
| "total_rows": 0 |
| } |
| } |
</code> | </code> |
| |