greptilian logo

IRC log for #rest, 2016-04-25

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
00:10 Devastator joined #rest
03:01 quimrstorres joined #rest
03:29 fuzzyhorns joined #rest
04:36 Macaveli joined #rest
06:07 quimrstorres joined #rest
07:19 gigo1980________ joined #rest
07:54 gigo1980________ joined #rest
08:32 quimrsto_ joined #rest
08:40 gigo1980________ joined #rest
09:08 quimrsto_ joined #rest
09:44 quimrsto_ joined #rest
09:53 nesselbosch joined #rest
12:51 interop_madness joined #rest
12:59 zama joined #rest
13:03 pdurbin joined #rest
13:48 tbsf joined #rest
13:53 gigo1980________ joined #rest
14:13 saml joined #rest
14:37 DevAntoine joined #rest
14:37 DevAntoine hi
14:37 DevAntoine I've got site types and sites. A site type cannot be deleted if it's attached to at least one site. Does it make sense to throw a 403 when the client tries to delete an attached type?
14:38 fumanchu 409
14:39 DevAntoine fumanchu: Indicates that the request could not be processed because of conflict in the request, such as an edit conflict between multiple simultaneous updates.
14:39 DevAntoine I understand this as if two clients were trying to edit the same resource at the same time
14:40 fumanchu 403 is for authentication issues, not state issues
14:41 fumanchu and whatever you quoted isn't the spec: https://tools.ietf.org/html/rfc7231#section-6.5.8
14:43 fumanchu in general, use 409 for semantic issues, especially where the user has a chance to fix things and try again (and your 409 response ought to provide text and links to do so if possible)
14:43 fumanchu in this case, the user is not allowed to delete the type because of its current state (attached to more than zero sites)
14:44 fumanchu so the response ought to provide a description of that state and maybe a link to delete the sites first
14:45 DevAntoine that makes sense fumanchu
14:45 DevAntoine thanks!
14:49 _ollie joined #rest
15:19 christo_m i have an endpoint that strictly emails people, and an endpoint that generates pdf's but if i want to combine them, i either have to make multilpe calls from the client (which is bad on mobile) or make a call to something non-resty like
15:19 christo_m generateAndEmailPDF
15:19 christo_m whats the accepted solution here.
15:35 gigo1980________ joined #rest
15:39 tbsf joined #rest
15:40 tbsf joined #rest
15:49 Coldblackice_ joined #rest
15:54 HermanToothrot joined #rest
16:06 interop_madness joined #rest
17:05 tbsf joined #rest
17:06 _ollie joined #rest
17:24 gigo1980________ joined #rest
17:53 gigo1980________ joined #rest
18:12 _ollie joined #rest
19:48 quimrstorres joined #rest
21:07 quimrstorres joined #rest
21:08 quimrst__ joined #rest
21:11 igitoor joined #rest
21:15 igitoor joined #rest
21:28 gigo1980________ joined #rest
21:28 tbsf joined #rest
22:04 Wildblue` joined #rest
22:04 Wildblue` joined #rest
22:07 quimrstorres joined #rest
22:17 arcsky joined #rest
22:54 fuzzyhorns joined #rest

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

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