Skip to content
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

Added support for _search_document #353

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions reference/admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13825,7 +13825,11 @@ paths:
This API gets you expenses submitted by any employee in the current organization.

This API supports very rich filtering on all response fields and pagination via query parameters. To understand how to use these parameters, please see the [Guide to Data APIs](https://docs.fylehq.com/docs/fyle-platform-docs/ZG9jOjI3Mzk2NTM3-guide-to-data-ap-is#filtering)

This API supports supports a full text search as well apart from the above-mentioned filtering you can use it by passing it in `q` as a query parameter.
operationId: expenses_list
parameters:
- $ref: '#/components/parameters/q'
responses:
'200':
description: OK
Expand Down
11 changes: 11 additions & 0 deletions reference/approver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2404,6 +2404,13 @@ components:
description: |
List of IDs of expense fields which are mandatory but are missing.
parameters:
q:
in: query
name: q
description: A search query to filter the results.
schema:
type: string
example: Ritas
limit:
in: query
name: limit
Expand Down Expand Up @@ -2582,7 +2589,11 @@ paths:
This API gets expenses assigned to you to approve.

This API supports very rich filtering on all response fields and pagination via query parameters. To understand how to use these parameters, please see the [Guide to Data APIs](https://docs.fylehq.com/docs/fyle-platform-docs/ZG9jOjI3Mzk2NTM3-guide-to-data-ap-is#filtering)

This API supports supports a full text search as well apart from the above-mentioned filtering you can use it by passing it in `q` as a query parameter.
operationId: expenses_list
parameters:
- $ref: '#/components/parameters/q'
responses:
'200':
description: OK
Expand Down
4 changes: 4 additions & 0 deletions src/admin/paths/admin@expenses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ get:
This API gets you expenses submitted by any employee in the current organization.

This API supports very rich filtering on all response fields and pagination via query parameters. To understand how to use these parameters, please see the [Guide to Data APIs](https://docs.fylehq.com/docs/fyle-platform-docs/ZG9jOjI3Mzk2NTM3-guide-to-data-ap-is#filtering)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Append some sentence to convey extra functionality of q.


This API supports supports a full text search as well apart from the above-mentioned filtering you can use it by passing it in `q` as a query parameter.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.....above-mentioned filtering. You can use....

operationId: expenses_list
parameters:
- $ref: ../../components/parameters/q.yaml
responses:
'200':
description: OK
Expand Down
5 changes: 5 additions & 0 deletions src/approver/paths/approver@expenses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ get:
This API gets expenses assigned to you to approve.

This API supports very rich filtering on all response fields and pagination via query parameters. To understand how to use these parameters, please see the [Guide to Data APIs](https://docs.fylehq.com/docs/fyle-platform-docs/ZG9jOjI3Mzk2NTM3-guide-to-data-ap-is#filtering)

This API supports supports a full text search as well apart from the above-mentioned filtering you can use it by passing it in `q` as a query parameter.

operationId: expenses_list
parameters:
- $ref: ../../components/parameters/q.yaml
responses:
'200':
description: OK
Expand Down