greptilian logo

IRC log for #rest, 2017-01-18

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:18 foist joined #rest
03:30 fuzzyhorns joined #rest
04:22 sp1rs joined #rest
04:23 sp1rs joined #rest
05:56 sp1rs_ joined #rest
06:19 sp1rs joined #rest
06:26 wsieroci joined #rest
06:31 wsieroci_ joined #rest
06:48 wsieroci joined #rest
08:20 interop_madness joined #rest
08:31 sp1rs joined #rest
08:44 sp1rs joined #rest
09:20 sp1rs joined #rest
09:26 sp1rs joined #rest
11:45 DevAntoine joined #rest
11:45 DevAntoine hi
11:45 DevAntoine I've got a route for PATCHing user's data. I can patch data AND its avatar
11:45 DevAntoine I was trying to do a multipart/form-data but it isn't working with PATCH
11:45 DevAntoine how should I proceed?
11:49 DevAntoine Should I have two separate routes then? User's data would be updated using PATCH and user's avatar doing a POST (considering it seems that to send a file you need to set the content-type to multipart/form-data which only works with POST)?
11:51 DevAntoine Or I just change the PATCH to POST
11:53 sp1rs_ joined #rest
11:54 pdurbin You could try two routes and see how it feels.
11:59 DevAntoine pdurbin: so api/users/{id} for PATCH and api/users/{id}/avatar for POST?
12:11 pdurbin DevAntoine: I've never used PATCH. And to replace things I often use PUT. I use POST for creating new things.
12:34 sp1rs joined #rest
15:19 upasana joined #rest
15:20 CustosL1men joined #rest
15:20 asm89 joined #rest
15:22 sp1rs joined #rest
15:22 jgornick_ joined #rest
15:23 jgornick joined #rest
15:35 test222 joined #rest
15:56 sp1rs joined #rest
17:06 sp1rs joined #rest
17:25 wsieroci joined #rest
18:23 sp1rs joined #rest
18:44 trygvis joined #rest
18:46 wsieroci joined #rest
20:09 wsieroci joined #rest
21:12 wsieroci joined #rest
23:29 test222 joined #rest

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

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