greptilian logo

IRC log for #rest, 2017-08-31

https://trygvis.io/rest-wiki/

| Channels | #rest index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
02:06 tbsf joined #rest
02:23 tbsf joined #rest
02:25 tbsf joined #rest
02:27 tbsf_ joined #rest
03:22 tbsf joined #rest
03:58 tbsf joined #rest
04:26 tbsf joined #rest
05:48 wsieroci joined #rest
07:40 interop_madness joined #rest
10:25 drcode joined #rest
14:47 tbsf joined #rest
15:39 timdiels joined #rest
15:42 timdiels Which would be considered more RESTful to get all families of a short list of genes (<100)? GET /genes/families?gene_id=g1&gene_id=g2... or GET /families_of_genes?gene_id=g1&gene_id=g2...
15:43 mdk timdiels: see this as a directory and files hierarchy, does it looks more natural to you to have a directory /genes/ with a direcotry families/ with files in it, or a directory /families_of_genes/ with files in it?
15:45 mdk timdiels: also, don't "duplicate" your documents (as you're not duplicaitng files in your hierarchy) so if "foo" is accessible in /genes/foo it's NOT in /genes_by_family/42/foo too (may not match your particular context very well, but don't duplicate)
15:50 timdiels mdk: /genes/families, e.g. if it were about 1 gene I'd definitely have chosen /genes/{gene_id}/families
15:50 tbsf joined #rest
15:51 timdiels mdk: as for not duplicating. When offering only /genes/families, it would become very expensive to find all genes in a family, which would be /family/{family_id}/genes
15:51 wsieroci joined #rest
15:55 timdiels mdk: though I would make /family/{family_id}/genes just return gene ids mostly and keep /genes/ as the central point for modifying and getting data of a particular gene
16:01 tbsf joined #rest
17:04 wsieroci joined #rest
19:36 tbsf joined #rest
19:37 tbsf joined #rest
19:41 tbsf joined #rest
21:58 tbsf joined #rest
22:01 tbsf_ joined #rest
22:01 tbsf_ joined #rest
22:57 tbsf joined #rest
23:42 tbsf joined #rest
23:53 tbsf joined #rest

| Channels | #rest index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

https://trygvis.io/rest-wiki/