GET /data/search

Search the stored data using full-text search.

Query parameters

  • searchTerm string Required

    The term to search for in the data.

Responses

  • 200 application/json

    Successful search results

    Hide response attributes Show response attributes object
    • id string
    • name string
    • value object
  • 400 application/json

    Invalid search query

    Hide response attribute Show response attribute object
    • error string
  • 500 application/json

    Internal server error

    Hide response attribute Show response attribute object
    • error string
GET /data/search
curl \
 --request GET 'https://api.kartsriv.com/v1/data/search?searchTerm=string'
Response examples (200)
[
  {
    "id": "607f1f77bcf86cd799439011",
    "name": "user_info",
    "value": {
      "age": 25,
      "location": "NYC"
    }
  },
  {
    "id": "607f1f77bcf86cd799439012",
    "name": "example",
    "value": "some string data"
  }
]
Response examples (400)
{
  "error": "Search term cannot be empty"
}
Response examples (500)
{
  "error": "Failed to perform search"
}