info:
  name: Test Collection Rules - Author Contains
  type: http
  seq: 2
http:
  method: POST
  url: '{{base_url}}/api/collections/test-rules'
  auth: inherit
  body:
    type: json
    jsonBody: "{\n    \"rules\": [\n      {\n        \"field\": \"author\",\n    \
      \    \"operator\": \"contains\",\n        \"value\": \"Asimov\""
  headers:
  - key: Content-Type
    value: application/json
  - key: Authorization
    value: Bearer {{authToken

docs: |-
  ## Test Collection Rules - Author Contains
  
    Tests the "contains" operator on the author field to find books by a specific author (partial match).
  
    **Example Use Case:** Finding all books by an author whose name contains "Asimov" (e.g., "Isaac Asimov").
  
    **Operator:** `contains` - Matches if the field contains the specified value as a substring (case-insensitive typically).
  
    **Expected Result:** Returns all books where the author field contains "Asimov".
  
    **Purpose:** Demonstrates text-based partial matching for author searches, useful when you don't need the exact author name or want to find books by authors with similar names.
