greptilian logo

IRC log for #rest, 2016-08-28

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 Coldblackice joined #rest
00:17 fuzzyhorns joined #rest
00:39 tonyacunar joined #rest
01:19 tonyacunar joined #rest
03:09 wsieroci joined #rest
03:22 impl_ joined #rest
03:27 rickharrison joined #rest
06:50 wsieroci joined #rest
07:03 wsieroci joined #rest
09:35 sp1rs joined #rest
09:51 sp1rs_ joined #rest
10:53 _ollie joined #rest
11:04 sp1rs joined #rest
13:20 kibibyte joined #rest
14:01 tonyacunar joined #rest
14:19 tonyacunar joined #rest
14:22 ralphschindler joined #rest
15:23 tonyacunar joined #rest
15:28 fuzzyhorns joined #rest
15:48 sp1rs joined #rest
16:15 ralphschindler joined #rest
18:15 fuzzyhorns joined #rest
18:32 tonyacunar joined #rest
18:34 timg__ joined #rest
19:02 timg__ joined #rest
20:03 timg__ joined #rest
20:13 sp1rs joined #rest
20:32 nso95 joined #rest
20:33 arancio joined #rest
20:34 arancio Hi.
20:35 arancio I'm designing my first web api
20:36 arancio Is it considered ok to use the POST verb to ask the server to create an object based on a computation on the parameters passed as content of the POST request?
20:37 arancio Let's use cooking as example.
20:37 MatthiasVance joined #rest
20:37 arancio I see example where POST would be used to request the server to store a new menu
20:37 MatthiasVance left #rest
20:38 arancio example -> examples
20:38 arancio I would use it to request the server to generate a menu based on some specification (meat menu vs fish menu)
20:39 arancio I expect to receive a url to the newly created resource (a detailed menu designed on the given specifications)
20:40 arancio Is it a proper usage of the POST verb?
20:40 Mansuoi joined #rest
20:42 asdf arancio, yes sure, creating stuff is what POST is for
20:44 arancio it's also ok to get more data with GET than what I put it with POST?
20:45 sp1rs joined #rest
20:47 asdf arancio, sure. Always only getting the data that you put in would be pretty boring :)
20:49 arancio asdf: I'm sorry if my question appeared silly. Thanks.
20:49 arancio Very much
20:52 ShekharReddy joined #rest
20:52 nso95 left #rest
21:05 sp1rs joined #rest
21:18 arancio when I reference another resource in the response to a request, should I use an "id" and let the client infer the url(s) used to interact with that resource or should I use the url of the resource directly?
21:19 trygvis you must use the URLs, the client should never create any URLs
21:20 arancio trygvis: thanks
21:21 ShekharReddy joined #rest
21:32 sp1rs joined #rest
22:00 timg__ joined #rest
22:29 rickharrison joined #rest
22:34 tonyacunar joined #rest
22:44 fuzzyhorns joined #rest
23:09 rickharrison joined #rest
23:12 ramsey joined #rest
23:24 tonyacunar joined #rest

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

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