Single finders: return a single record that matches a set of criteria input through query parameters
URI pattern: GET /api/v1/<resource>/find?<attribute>=<value>
work for any attribute of the corresponding resource including the updated_at and created_at timestamps
[x] id
[x] name
[ ] created_at
[ ] updated_at
find partial matches for strings and be case insensitive: for example a request to GET /api/v1/merchants/find?name=ring would match a merchant with the name Turing and a merchant with the name Ring World.
Note: It does NOT need to accept multiple attributes, for exampleGET /api/v1/items/find?name=pen&description=blue
Multi-finders: return all records that match a set of criteria input through query parameters
URI pattern: GET /api/v1/<resource>/find_all?<attribute>=<value>
Single finders: return a single record that matches a set of criteria input through query parameters URI pattern:
GET /api/v1/<resource>/find?<attribute>=<value>
updated_at
andcreated_at
timestampsGET /api/v1/merchants/find?name=ring
would match a merchant with the nameTuring
and a merchant with the nameRing World
. Note: It does NOT need to accept multiple attributes, for exampleGET /api/v1/items/find?name=pen&description=blue
Multi-finders: return all records that match a set of criteria input through query parameters URI pattern:
GET /api/v1/<resource>/find_all?<attribute>=<value>