Skip to content

Flexible search endpoint #740

@kyungmin

Description

@kyungmin

The /search endpoint should allow searching and filtering in the following format:

/search?scope[in]=order,transaction&merchant=CU123&buyer=CU456&status=succeeded
// would return all orders and transactions matching the following filtering params

Maybe we can even allow searching by any arbitrary field:

/search?email_address=marshall@balancedpayments.com
// would return all resource types matching the email address

This will also resolve many search-related issues discussed in: #721.

Since the dashboard relies heavily on search to display different associations, it would be nice to achieve this level of flexibility, instead of filing issues for unsupported search params.

Reference: https://github.com/balanced/balanced/issues/717

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions