Time |
S |
Nick |
Message |
00:03 |
|
|
fuzzyhorns joined #rest |
00:28 |
|
|
fuzzyhorns joined #rest |
01:40 |
|
|
baweaver joined #rest |
01:49 |
|
|
_ollie joined #rest |
03:04 |
|
|
fuzzyhorns joined #rest |
07:26 |
|
|
rosstuck joined #rest |
07:41 |
|
|
graste joined #rest |
09:02 |
|
|
quimrstorres joined #rest |
09:07 |
|
|
quimrstorres joined #rest |
11:07 |
|
|
Jarda joined #rest |
13:11 |
|
|
quimrstorres joined #rest |
13:32 |
|
|
quimrstorres joined #rest |
13:42 |
|
|
StatelessCat joined #rest |
14:10 |
|
|
saml joined #rest |
14:25 |
|
|
nkoza joined #rest |
14:37 |
|
|
rmwdeveloper joined #rest |
14:38 |
|
|
wsiqueir joined #rest |
15:08 |
|
|
fumanchu_ joined #rest |
15:37 |
|
|
alxbl joined #rest |
15:37 |
|
|
trygvis joined #rest |
15:37 |
|
|
blongden joined #rest |
15:45 |
|
|
ironChicken joined #rest |
15:51 |
|
|
angular_mike_ joined #rest |
15:58 |
|
|
quimrstorres joined #rest |
16:02 |
|
|
bigbluehat joined #rest |
16:17 |
|
|
quimrstorres joined #rest |
16:21 |
|
|
quimrstorres joined #rest |
16:52 |
|
rmwdeveloper |
what are some good up to date resources for learning about REST? |
16:53 |
|
whartung |
mamunds book is probably pretty good, but I have not read it. |
16:53 |
|
rmwdeveloper |
wahts the book called? |
16:53 |
|
_ollie |
restful web apis |
16:53 |
|
pdurbin |
there's also https://trygvis.io/rest-wiki |
16:53 |
|
rmwdeveloper |
ty handsome |
16:53 |
|
_ollie |
rest in practice is quite decent, too |
16:59 |
|
|
baweaver joined #rest |
17:03 |
|
|
quimrstorres joined #rest |
17:03 |
|
rmwdeveloper |
do these books walk me through how to architect a REST api from the ground up |
17:05 |
|
rmwdeveloper |
or are there any materials like that ? ? |
17:08 |
|
|
kuwv joined #rest |
17:08 |
|
whartung |
what do you mean? |
17:08 |
|
rmwdeveloper |
hmm not sure exactly |
17:09 |
|
rmwdeveloper |
i guess like |
17:09 |
|
rmwdeveloper |
given a concept of a website, or a bunch of tables in a database |
17:10 |
|
rmwdeveloper |
what would be the proper way to build the url schema |
17:10 |
|
rmwdeveloper |
and the resources |
17:10 |
|
rmwdeveloper |
hierarchy |
17:10 |
|
rmwdeveloper |
etc |
17:11 |
|
rmwdeveloper |
right now im reading restful web apis and rest in practice |
17:12 |
|
wsiqueir |
rmwdeveloper, there's one |
17:13 |
|
rmwdeveloper |
wsiqueir : oh?? |
17:13 |
|
whartung |
REST isn't about URLs and hierarchy. It's about Hypermedia aware content types and the definition of the actions available to them. |
17:13 |
|
pdurbin |
whartung: if your ears are burning: http://irclog.perlgeek.de/shibboleth/2015-07-13 |
17:13 |
|
rmwdeveloper |
whartung: ohhhhh i see |
17:13 |
|
wsiqueir |
rmwdeveloper, this http://restcookbook.com/ |
17:14 |
|
whartung |
he pinged me in a PM pdurbin |
17:14 |
|
wsiqueir |
rmwdeveloper, and steve klabibnik stuff http://blog.steveklabnik.com/posts/2011-07-03-nobody-understands-rest-or-http |
17:14 |
|
rmwdeveloper |
wsiqueir : thank you thank you thank you |
17:15 |
|
pdurbin |
whartung: kuwv is here as well |
17:15 |
|
wsiqueir |
rmwdeveloper, yw :-) |
17:33 |
|
rmwdeveloper |
whats everyones preferred way of content negotiation? in the header or in the URI? |
17:38 |
|
whartung |
handshake and a beer in a dark, smoky bar. |
17:38 |
|
whartung |
Oh, you said content, not payment... |
17:38 |
|
rmwdeveloper |
haha XD |
17:39 |
|
|
quimrstorres joined #rest |
17:43 |
|
|
graste joined #rest |
17:44 |
|
fumanchu_ |
rmwdeveloper: both. header for machines and URI for people |
17:45 |
|
rmwdeveloper |
fumanchu_ : thank you |
17:50 |
|
|
quimrstorres joined #rest |
17:55 |
|
kuwv |
Thanks Whartung |
17:55 |
|
whartung |
you bet kuwv |
17:56 |
|
pdurbin |
kuwv whartung: so what was the answer? |
17:56 |
|
whartung |
he needs to delve more in to his requirements |
17:56 |
|
pdurbin |
ok |
18:04 |
|
|
quimrstorres joined #rest |
18:18 |
|
|
fuzzyhorns joined #rest |
19:24 |
|
|
sarseo joined #rest |
19:25 |
|
sarseo |
what status code should i return on a POST where a related object key was not found in the database? |
19:26 |
|
asdf` |
409 is fine |
19:26 |
|
sarseo |
ex: POST payload: { "name" : "alien", "alienType" : "facehguger" } (the request would fail because facehugger is spelled incorrectly and not found in the list of "alienType"s) |
19:26 |
|
sarseo |
hm... is it really a conflict tho? |
19:27 |
|
sarseo |
i guess it would be. the root type does not match because it's related type does not exist. |
19:27 |
|
sarseo |
I WILL USE STATUS CODE 409 THEN |
19:28 |
|
asdf` |
i'd advise not to lose too much sleep over that |
19:29 |
|
sarseo |
heh... like i've gotten any sleep as of late. pssh |
19:29 |
|
* sarseo |
drinks more coffee. |
19:32 |
|
sarseo |
oh wait |
19:32 |
|
sarseo |
400 works |
19:32 |
|
sarseo |
bad request |
19:32 |
|
sarseo |
cuz the request is technically bad |
19:32 |
|
sarseo |
isn't it? |
19:33 |
|
sarseo |
santa's naughty list and all that |
19:37 |
|
asdf` |
sure |
19:39 |
|
asdf` |
uh, i don't think people really care all that deeply about http error codes really, on a 400 vs 409 level |
19:42 |
|
sarseo |
jsonapi.org cares |
19:52 |
|
trygvis |
400 is "bad syntax" (i.e. bad json), 422 is "bad semantics" |
19:53 |
|
sarseo |
you are bad semantics. |
19:53 |
|
sarseo |
no wait... |
19:53 |
|
sarseo |
your mom is bad semantics |
19:53 |
|
trygvis |
it's too bad 400 isn't a more generic error like 200 and 500 |
19:54 |
|
* sarseo |
is kidding. :P |
19:54 |
|
fumanchu_ |
409 would be more appropriate if the user could add a "facehguger" alienType and repeat the request |
19:55 |
|
fumanchu_ |
(and the 409 payload should say that) |
20:11 |
|
trygvis |
this seems like a nice http/2 library: https://nghttp2.org |
20:19 |
|
|
quimrstorres joined #rest |
20:21 |
|
|
quimrstorres joined #rest |
20:48 |
|
|
Coldblackice joined #rest |
21:02 |
|
|
quimrstorres joined #rest |
21:25 |
|
|
cookiecat joined #rest |
21:49 |
|
|
foist joined #rest |
22:05 |
|
|
fuzzyhorns joined #rest |
22:15 |
|
|
quimrstorres joined #rest |
22:29 |
|
|
quimrstorres joined #rest |
22:34 |
|
|
quimrsto_ joined #rest |
23:10 |
|
|
fuzzyhorns joined #rest |
23:24 |
|
|
fuzzyhorns joined #rest |
23:54 |
|
|
FreezingDroid joined #rest |