Skip to content

Commit

Permalink
Updated OpenAPI specs
Browse files Browse the repository at this point in the history
  • Loading branch information
CI committed Oct 12, 2023
1 parent 95e0335 commit f6fd8c9
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 24 deletions.
26 changes: 13 additions & 13 deletions json/answersapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -239,19 +239,19 @@
"$ref": "#/components/parameters/experienceKey"
},
{
"$ref": "#/components/parameters/locale"
"$ref": "#/components/parameters/filterSearchVerticalKey"
},
{
"$ref": "#/components/parameters/filterSearchVerticalKey"
"$ref": "#/components/parameters/locale"
},
{
"$ref": "#/components/parameters/excluded"
"$ref": "#/components/parameters/requiredInput"
},
{
"$ref": "#/components/parameters/SearchParameters"
},
{
"$ref": "#/components/parameters/requiredInput"
"$ref": "#/components/parameters/excluded"
}
],
"summary": "Vertical Search: Filter Search",
Expand Down Expand Up @@ -530,29 +530,29 @@
"filterSearchVerticalKey": {
"name": "verticalKey",
"in": "query",
"required": false,
"required": true,
"schema": {
"type": "string"
},
"description": "String key that uniquely identifies the vertical to scope the filter search request to."
},
"excluded": {
"name": "excluded",
"SearchParameters": {
"name": "search_parameters",
"in": "query",
"required": false,
"required": true,
"schema": {
"type": "string"
},
"description": "JSON array containing the IDs of all filters that should be excluded from filter search results (if it has already been returned and selected). This parameter should be provided as a URL-encoded string containing a JSON array."
"description": "This parameter represents the parameters that should be used for filter search. This parameter should be provided as a URL-encoded string containing a JSON object.\n\nFilter search uses the user's input string to find a set of existing filters that match the user's input query for the fields provided in the parameters.\n\nThe JSON object must have a `fields` property made up of a list of `FilterField` objects that have the following properties:\n\n<table style=\"width:100%\">\n <tr>\n <th>Property</th>\n <th>Details</th>\n </tr>\n <tr>\n <th>fieldId</th>\n <th>The api name of the field.</th>\n </tr>\n <tr>\n <th>entityTypeId</th>\n <th>The api name for the entity type the filter belongs to.</th>\n </tr>\n <tr>\n <th>shouldFetchEntities</th>\n <th>Optional boolean. If true, entities matching each filter will be returned inline with the filter.</th>\n </tr>\n</table>\n\n</br>\n\nAdditionally, there is an optional boolean property `sectioned`. If set to true, the matching filters will be returned in a separate section per field. By default, they are all returned in the same section.\n"
},
"SearchParameters": {
"name": "search_parameters",
"excluded": {
"name": "excluded",
"in": "query",
"required": true,
"required": false,
"schema": {
"type": "string"
},
"description": "This parameter represents the parameters that should be used for filter search. This parameter should be provided as a URL-encoded string containing a JSON object.\n\nFilter search uses the user's input string to find a set of existing filters that match the user's input query for the fields provided in the parameters.\n\nThe JSON object must have a `fields` property made up of a list of `FilterField` objects that have the following properties:\n\n<table style=\"width:100%\">\n <tr>\n <th>Property</th>\n <th>Details</th>\n </tr>\n <tr>\n <th>fieldId</th>\n <th>The api name of the field.</th>\n </tr>\n <tr>\n <th>entityTypeId</th>\n <th>The api name for the entity type the filter belongs to.</th>\n </tr>\n <tr>\n <th>shouldFetchEntities</th>\n <th>Optional boolean. If true, entities matching each filter will be returned inline with the filter.</th>\n </tr>\n</table>\n\n</br>\n\nAdditionally, there is an optional boolean property `sectioned`. If set to true, the matching filters will be returned in a separate section per field. By default, they are all returned in the same section.\n"
"description": "This parameter represents any values which should not be returned. This parameter should be provided as a URL-encoded string containing a JSON array, where each entry of the array is a JSON object representing a field and an excluded value for that field. For example:\n```\n[\n {\n \"name\": {\n \"$eq\": \"John\"\n }\n },\n {\n \"c_jobCategory\": {\n \"$eq\": \"Engineering\"\n }\n }\n]\n```\n"
}
},
"responses": {
Expand Down
37 changes: 26 additions & 11 deletions yaml/answersapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ paths:
- $ref: '#/components/parameters/accountId'
- $ref: '#/components/parameters/v'
- $ref: '#/components/parameters/experienceKey'
- $ref: '#/components/parameters/locale'
- $ref: '#/components/parameters/filterSearchVerticalKey'
- $ref: '#/components/parameters/excluded'
- $ref: '#/components/parameters/SearchParameters'
- $ref: '#/components/parameters/locale'
- $ref: '#/components/parameters/requiredInput'
- $ref: '#/components/parameters/SearchParameters'
- $ref: '#/components/parameters/excluded'
summary: 'Vertical Search: Filter Search'
description: Retrieve a list of potential filters that match the user's input up to that point. This differs from query suggest by only returning the names of filters that can be searched rather than the broader corpus of suggested queries.
responses:
Expand Down Expand Up @@ -683,17 +683,10 @@ components:
filterSearchVerticalKey:
name: verticalKey
in: query
required: false
required: true
schema:
type: string
description: String key that uniquely identifies the vertical to scope the filter search request to.
excluded:
name: excluded
in: query
required: false
schema:
type: string
description: JSON array containing the IDs of all filters that should be excluded from filter search results (if it has already been returned and selected). This parameter should be provided as a URL-encoded string containing a JSON array.
SearchParameters:
name: search_parameters
in: query
Expand Down Expand Up @@ -729,6 +722,28 @@ components:
</br>
Additionally, there is an optional boolean property `sectioned`. If set to true, the matching filters will be returned in a separate section per field. By default, they are all returned in the same section.
excluded:
name: excluded
in: query
required: false
schema:
type: string
description: |
This parameter represents any values which should not be returned. This parameter should be provided as a URL-encoded string containing a JSON array, where each entry of the array is a JSON object representing a field and an excluded value for that field. For example:
```
[
{
"name": {
"$eq": "John"
}
},
{
"c_jobCategory": {
"$eq": "Engineering"
}
}
]
```
responses:
AutocompleteResponse:
description: Autocomplete Request Response
Expand Down

0 comments on commit f6fd8c9

Please sign in to comment.