Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
protogrid:json_api_database_views [2021-12-21 22:57] – dru | protogrid:json_api_database_views [2022-05-14 00:48] – [Proto Specific Views] dru | ||
---|---|---|---|
Line 198: | Line 198: | ||
=== by_sortstring_and_id === | === by_sortstring_and_id === | ||
- | |||
- | === by_search_term_and_sortstring_and_id === | ||
- | This view contains Cards for a certain search term by id. The key is composed of the search term, the Card sorting string and the Card key. Search term means a specific string, for which you want to find all Cards containing this string. You may not find Cards having this string only in the labels of the fields. Example: | ||
- | <code javascript > | ||
- | [" | ||
- | </ | ||
- | The value is null. | ||
- | |||
- | **Be aware**: The search only goes over values stored in this Card. This may differ from the visual representation Card. For example when Card A references another Card, you see the Shortname of the referenced Card (say " | ||
- | |||
- | Example request to find all cards containing the word " | ||
- | < | ||
- | https:// | ||
- | </ | ||
- | |||
- | Example response: | ||
- | <code javascript > | ||
- | { | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | ], | ||
- | " | ||
- | { | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | ], | ||
- | " | ||
- | }, | ||
- | { | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | ], | ||
- | " | ||
- | }, | ||
- | { | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | ], | ||
- | " | ||
- | }, | ||
- | ... | ||
- | ] | ||
- | } | ||
- | } | ||
- | </ | ||
- | |||
- | You might have duplicates in the code due to several occurrences of the same search term on the same Card. | ||
=== by_design_element_and_sortstring_and_id === | === by_design_element_and_sortstring_and_id === | ||
Line 330: | Line 273: | ||
} | } | ||
</ | </ | ||
- | |||
- | === by_proto_and_search_term_and_sortstring_and_id === | ||
- | This view contains all non-deleted and non-hidden Cards by proto and searchterm (see also [[# | ||
- | < | ||
- | [" | ||
- | </ | ||
- | |||
- | Example Request to get all Cards of Proto " | ||
- | < | ||
- | https:// | ||
- | </ | ||
- | |||
- | Example response: | ||
- | <code javascript > | ||
- | { | ||
- | " | ||
- | " | ||
- | " | ||
- | { | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | ], | ||
- | " | ||
- | }, | ||
- | ... | ||
- | ] | ||
- | } | ||
- | } | ||
- | </ | ||
- | |||
=== by_proto_and_design_element_and_sortstring_and_id === | === by_proto_and_design_element_and_sortstring_and_id === |