curl -s -X GET "http://localhost:8000/items/1" | jq '.'
curl -X GET "http://localhost:8000/query_similar/name/john"
curl -X GET "http://localhost:8000/query_similar/city/new?limit=5"
curl -X POST "http://localhost:8000/query_by_text"
-H "Content-Type: application/json"
-d '{
"conditions": {
"name": "John"
},
"case_sensitive": false
}'
curl -X POST "http://localhost:8000/query_by_text"
-H "Content-Type: application/json"
-d '{
"conditions": {
"city": "New York",
"age": 25
},
"operator": "AND",
"case_sensitive": false
}'
curl -X POST "http://localhost:8000/query_by_text"
-H "Content-Type: application/json"
-d '{
"conditions": {
"city": "New York",
"city": "New Jersey"
},
"operator": "OR",
"case_sensitive": false
}'
curl -X POST "http://localhost:8000/query_by_text?limit=5"
-H "Content-Type: application/json"
-d '{"conditions": {"city": "New York"}}'
curl -s -X GET "http://localhost:8000/items/1" | jq '.name, .age'
curl -s -X POST "http://localhost:8000/query_by_text" \
-H "Content-Type: application/json" \
-d '{
"conditions": {
"city": "New York"
}
}' | jq '.[] | select(.age >= 30)'
curl -s -X POST "http://localhost:8000/items" \
-H "Content-Type: application/json" \
-d '{"name": "hello","age": 25,"city": "hello"}' | jq -r '.id'
curl -s -X GET "http://localhost:8000/query_similar/name/bob" | jq '.'
curl -s -X PUT "http://localhost:8000/items/1" \
-H "Content-Type: application/json" \
-d '{"columns": {"age": 26}}' | jq '.'
curl -s -X DELETE "http://localhost:8000/items" \
-H "Content-Type: application/json" \
-d "{\"ids\": [1]}" | jq '.'
curl -X DELETE "http://localhost:8000/items" \
-H "Content-Type: application/json" \
-d '{
"ids": [2,3]
}'