greptilian logo

IRC log for #rest, 2015-10-08

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
01:13 baweaver joined #rest
01:28 fuzzyhorns joined #rest
01:34 talios joined #rest
02:21 wavded joined #rest
03:15 ralphschindler joined #rest
03:24 wavded joined #rest
03:38 wavded joined #rest
03:39 riddle joined #rest
04:21 fuzzyhorns joined #rest
04:22 angular_mike_ joined #rest
04:47 ralphschindler joined #rest
05:42 fuzzyhorns joined #rest
06:23 dEPy joined #rest
07:13 fuzzyhorns joined #rest
07:16 timg___ joined #rest
07:50 talios joined #rest
07:50 jackeroo_marc joined #rest
08:36 baweaver joined #rest
08:37 rosstuck joined #rest
08:39 talios joined #rest
08:46 fuzzyhorns joined #rest
10:04 graste joined #rest
10:06 interop_madness joined #rest
10:21 fuzzyhorns joined #rest
10:21 chthon joined #rest
10:53 dEPy joined #rest
11:32 mezod joined #rest
11:41 dEPy joined #rest
11:45 DrCode joined #rest
11:54 eschmidbauer joined #rest
11:56 fuzzyhorns joined #rest
11:56 timg___ joined #rest
11:57 eschmidbauer left #rest
12:09 dorei joined #rest
12:09 dorei hello
12:09 trygvis hi
12:10 dorei let's say i have a movie object and it can be associated with one or more genre objects how do i do that in a restful way? post the movie and then what? let's assume that the genre objects already exist
12:19 pdurbin dorei: reminds me a bit of posting something that has multiple contact email addresses: https://github.com/IQSS/dataverse/blob/v4.2/scripts/api/data/dv-root.json
12:27 trygvis dorei: the genre can exist on its own so it would have a URI. in the movie you can have a list of genre URIs
12:28 dorei something like POST the movie to /genres/10/movies and /genres/25/movies ?
12:31 trygvis the path that is posted to is not significant
12:32 dorei okie
12:32 dorei should i post the whole movie object when adding to genres or only its id?
12:33 trygvis when you're updating a resource with PUT you should send the full object
12:33 trygvis if you use PATCH you can send parts
12:34 dorei okie
12:35 dorei but wouldnt that involve an extra lookup on the server side (in the case of PUT) ? i mean the server will have to look up the PUTed object and check whether it exists in the db, no?
12:36 trygvis more than what?
12:37 dorei i guess you're right, even if i use only the id, the server should do the same checks
12:50 _ollie joined #rest
13:30 fuzzyhorns joined #rest
14:02 anth0ny_ joined #rest
14:52 ralphschindler joined #rest
14:59 timg___ joined #rest
15:01 interop_madness joined #rest
15:02 fuzzyhorns joined #rest
15:07 anth0ny joined #rest
16:09 rosstuck joined #rest
16:32 fuzzyhorns joined #rest
16:42 ralphschindler joined #rest
18:03 fuzzyhorns joined #rest
18:13 Coldblackice_ joined #rest
18:22 simonv3 joined #rest
19:32 fuzzyhorns joined #rest
19:50 ralphschindler joined #rest
20:28 timg___ joined #rest
21:02 fuzzyhorns joined #rest
21:17 eschmidbauer joined #rest
21:18 eschmidbauer left #rest
21:19 _ollie joined #rest
22:02 talios joined #rest
22:32 fuzzyhorns joined #rest
22:43 ralphschindler joined #rest
23:10 fuzzyhorns joined #rest
23:49 ralphschindler joined #rest
23:51 ralphschindler joined #rest
23:53 ralphschindler joined #rest

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

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