Search Data API

Endpoint

  • Endpoint: /data/_search

  • Method: POST

Request Structure

  • RequestInfo: Object containing request information.

  • SearchCriteria: Object containing search criteria.

    • id: (Optional) ID of the resource.

    • tenantId: Tenant identifier.

    • type: (Optional) Type of the resource (boundary, facility, user, boundaryWithTarget).

    • status: (Optional) Status of the resource.

Response Structure

  • ResponseInfo: Object containing response information.

  • ResourceDetails: Array containing the details object of the searched resource.

Flow

  1. Client Request: The client sends a POST request to /data/_search.

  2. Request Content: Includes RequestInfo and SearchCriteria.

  3. Validation: The server validates request structure and content.

  4. Response Creation: The server creates a response with info and resource details.

  5. Response Dispatch: Sends response back to client.

  6. Error Handling: If errors occur, generate an error response and send it.

Flow Diagram

Last updated

Was this helpful?