search_by_hash
Method for searching records by their hash. Returns an array of records.
- operation (required) - must always be 'search_by_hashes'
- schema (required) - schema where the table you are searching lives
- table (required) - table you wish to search
- hash_attribute (required) - hash_attribute for table you are searching. defined in add table
- hash_values(required) - array of hashes to retrive
- get_attriburtes (required) - define which attributes you want returned. Use '*' to return all attributes
Request Body
{"operation"=>"search_by_hash", "schema"=>"dev", "table"=>"dog", "hash_attribute"=>"id", "hash_values"=>[1, 2], "get_attributes"=>["name", "breed"]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Authorization | string |
RESPONSES
status: OK
[{"age":5,"breed":"Mutt","id":1,"name":"Harper","weight_lbs":55},{"age":5,"breed":"Mutt","id":3,"name":"Penny","owner":"kyle b","weight_lbs":35}]