-
Notifications
You must be signed in to change notification settings - Fork 82
Added JSON /views example
#1857
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
3f79694
Added JSON `/views` example
Steveb-p 8972ca1
Fixed incorrect `ContentQuery` field (renamed to `Query`). Added Face…
Steveb-p 50efbd2
Removed `FacetBuilders` from API doc, as they are deprecated and shou…
Steveb-p 20b4bc8
IBX-5025: Added Aggregation examples for `/views`
Steveb-p 80f5a8a
IBX-5025: Regenerated HTML
Steveb-p File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
docs/api/rest_api_reference/input/examples/views/POST/ViewInput.json.example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| { | ||
| "ViewInput": { | ||
| "identifier": "TitleView", | ||
| "Query": { | ||
| "Filter": { | ||
| "ContentTypeIdentifierCriterion": "image", | ||
| "SectionIdentifierCriterion": "media", | ||
| "DateMetadataCriterion": { | ||
| "Target": "modified", | ||
| "Value": 1675681020, | ||
| "Operator": "gte" | ||
| } | ||
| }, | ||
| "limit": 10, | ||
| "offset": 0, | ||
| "SortClauses": { | ||
| "ContentName": "ascending" | ||
| }, | ||
| "Aggregations": [ | ||
| { | ||
| "ContentTypeTermAggregation": { | ||
| "name": "some name" | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } |
19 changes: 14 additions & 5 deletions
19
docs/api/rest_api_reference/input/examples/views/POST/ViewInput.xml.example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,27 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <ViewInput> | ||
| <identifier>TitleView</identifier> | ||
| <ContentQuery> | ||
| <Query> | ||
| <Filter> | ||
| <ContentTypeIdentifierCriterion>image</ContentTypeIdentifierCriterion> | ||
| <SectionIdentifierCriterion>media</SectionIdentifierCriterion> | ||
| <DateMetadataCriterion> | ||
| <Target>modified</Target> | ||
| <Value>1675681020</Value> | ||
| <Operator>gte</Operator> | ||
| </DateMetadataCriterion> | ||
| </Filter> | ||
| <limit>10</limit> | ||
| <offset>0</offset> | ||
| <SortClauses> | ||
| <ContentName>ascending</ContentName> | ||
| </SortClauses> | ||
| <FacetBuilders> | ||
| <contentTypeFacetBuilder/> | ||
| </FacetBuilders> | ||
| </ContentQuery> | ||
| <Aggregations> | ||
| <Aggregation> | ||
| <ContentTypeTermAggregation> | ||
| <name>some name</name> | ||
| </ContentTypeTermAggregation> | ||
| </Aggregation> | ||
| </Aggregations> | ||
| </Query> | ||
| </ViewInput> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2,842 changes: 1,565 additions & 1,277 deletions
2,842
docs/api/rest_api_reference/rest_api_reference.html
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, this addition is not fully compatible with
"php": "^7.2",above.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick fix in c34be1469801e0ce0035448577074fbbe991a4fa / #1642 for PHP 7.4 w/ few warnings at runtime.
A better fix for PHP 8.1+ will come in #1871
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adriendupuis we will need to take the raml parser and everything else related to it under our organization, because that library is in practice abandoned.