greptilian logo

IRC log for #rest, 2014-11-01

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:12 Left_Turn hey using oauth, when a server accesses someones data for them, lets say facebook data. the access of data is done on the server right? It doesn't render html for the client to request & access the data through javascript?
00:16 begriffs joined #rest
00:18 begriffs joined #rest
01:33 shrink0r joined #rest
02:49 prisonerZer0 joined #rest
02:54 shrink0r_ joined #rest
02:59 shrink0r joined #rest
03:01 shrink0r_ joined #rest
03:16 begriffs joined #rest
05:18 shrink0r joined #rest
06:16 Jarda hmm
06:17 Jarda I have POST /customers/search that returns 201 Location /customers/search/1234
06:18 Jarda that works great, because I can then paginate saved search results without breaking them if underlying data-set changes
06:18 Jarda now I have POST /somethingelse/search that works exactly like it
06:18 Jarda the returned response includes a self-link and pagination links
06:19 Jarda now I'm thinkin, should I change the content-type for these requests. To be something like "application/vnd.mycompany.m​yservice.searchresult+json"
06:19 Jarda instead of standard "application/vnd.mycompany.myservice+json"
07:16 trygvis good question
07:17 trygvis do you use many different media types in your company? like one per service?
07:50 systmkor joined #rest
08:15 shrink0r joined #rest
10:04 shrink0r joined #rest
10:51 begriffs joined #rest
10:57 _ollie joined #rest
11:22 systmkor1 joined #rest
11:24 Left_Turn joined #rest
11:45 pdurbin Left_Turn: whatever computer has the OAuth token or secret key or whatever is the computer that is getting access to the data. It doesn't have to be a server. There are clients for Twitter that you configure with tokens and keys to get access to your Twitter data.
11:53 shrink0r joined #rest
12:35 systmkor2 joined #rest
12:37 shrink0r joined #rest
12:54 shrink0r_ joined #rest
13:57 DrCode joined #rest
14:09 ph88 joined #rest
15:14 shrink0r joined #rest
18:36 marcoslamuria joined #rest
19:58 marcoslamuria joined #rest
20:55 shrink0r joined #rest
20:59 systmkor2 joined #rest
21:04 Schrodinger`sCat hey
21:05 Schrodinger`sCat im doing a REST chess game
21:07 Schrodinger`sCat i have a chessboard ressource, a square ressource, and a chessboard contains some squares
21:07 Schrodinger`sCat my uri looks like GET "/chessboard/<idChessBoard>/square/<[A-H][1-8]>"
21:07 Schrodinger`sCat and now i need to handle a move of a piece
21:10 Schrodinger`sCat and i wonder if i respect a good semantic for URL if i do PUT "/chessboard/<idChessBoard>"{ "src": "E2", "dst": "E4" }
21:10 Schrodinger`sCat and this request need to edit 2 squares of the chessboard
21:23 vincent___ joined #rest
21:30 vincent___ joined #rest
21:33 fumanchu HTTP is optimized for large-grain resources. I would seriously consider not having a separate resource per square.
21:33 vincent___ joined #rest
21:35 fumanchu if it's just for experiments or instruction, I would suggest a resource per piece instead of per square.
21:38 Schrodinger`sCat thanks
21:38 Schrodinger`sCat fumanchu: a ressource per piece or per square is the same things
21:39 Schrodinger`sCat i need in both of case to specify the source and the destination
21:39 Schrodinger`sCat and i dont know how to represent it
21:39 Schrodinger`sCat PUT "/chessboard/<idChessBoard>/piece/<idPiece> {src: E2, dst: E4} ?
21:43 marcoslamuria joined #rest
22:04 fumanchu_ joined #rest
23:12 marcoslamuria joined #rest

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

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