-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
There are multiple ways to fetch instances of entities with a REST web service, we should probably decide on a single one that best supports our potential use-cases. Here are a couple options:
# Fetches Sample record with ID 123, returns 404 if not found
http://api.oncoblocks.org/v1/samples/123
# Fetches Sample record with ID 123, returns an empty set if not found
http://api.oncoblocks.org/v1/samples?samplesId=123
There are pros and cons to both, but I am leaning towards the second option, which could support queries like this:
# Fetches Sample records with ID 123, 456, and 789
http://api.oncoblocks.org/v1/samples?sampleId=123,456,789
Thoughts?