Profile Configuration FAQs #352
recalcitrantsupplant
started this conversation in
General
Replies: 1 comment
-
|
Thank you for clarifying the prez:SearchResult query. For the /sites/{siteId}, I understand that normally when you do a specific search on one object, you would want a detailed output. However, the devs are trying to create a fully dynamic table where it just outputs whatever the API response is. Therefore, we need an option to specify a profile, so that it only outputs this set of fields, instead of everything. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The profile should target
prez:SearchResult. This is not a real class in the data, it is a "placeholder" class prez uses in order that you can create profiles for search results, as the search results can be of many different types.It is recommended that, as searches can return many results, for both performance and readability, a minimal set of common properties is defined in the search profiles. The default search profiles only return information like name, description, and geo location for this reason. Users can retrieve detailed information on search results in subsequent API calls.
The
/sitesendpoint is a listing endpoint, profiles classed as aprez:ListingProfileare targeted when a request comes in on a listing endpoint. The/sites/{sideId}endpoint is an object endpoint, profiles classed as aprez:ObjectProfileare targeted when a request for an object comes in on an object endpoint. A profile can be classed as both. Typically you would want a listing profile to define a minimal set of properties per listing item, to reduce the amount of data needing to be transferred. An object profile would tend to define a more "complete" set of properties that describe an object.Beta Was this translation helpful? Give feedback.
All reactions