greptilian logo

IRC log for #rest, 2014-11-15

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
01:09 shrink0r_ joined #rest
01:10 tr3online joined #rest
01:16 shrink0r joined #rest
01:48 warehouse13 joined #rest
02:33 shrink0r_ joined #rest
02:59 tr3onlin_ joined #rest
03:15 shrink0r joined #rest
03:17 shrink0r_ joined #rest
04:27 shrink0r joined #rest
05:23 shrink0r_ joined #rest
06:00 ralphschindler joined #rest
07:31 ralphschindler joined #rest
08:15 shrink0r joined #rest
08:24 ph88 joined #rest
10:04 shrink0r joined #rest
10:29 Left_Turn joined #rest
10:51 proteusguy joined #rest
11:53 shrink0r joined #rest
12:21 proteusguy joined #rest
13:15 warehouse13 joined #rest
13:42 shrink0r joined #rest
13:48 shrink0r joined #rest
15:07 shrink0r_ joined #rest
17:13 shrink0r^jumpin joined #rest
18:50 mgomezch_ joined #rest
18:50 HIGHBIT_ joined #rest
18:50 rj11_ joined #rest
18:50 ChrisAnn joined #rest
18:51 `0660_ joined #rest
18:51 happyface joined #rest
18:58 Schrodinger`Cat joined #rest
19:02 jgornick joined #rest
19:06 happyface joined #rest
19:09 pdurbin joined #rest
19:10 warehouse13 joined #rest
19:36 dreamdust joined #rest
19:41 pdurbin1 joined #rest
19:55 DrCode joined #rest
19:57 tmoore_ joined #rest
19:58 rickharrison_ joined #rest
19:59 `0660 joined #rest
19:59 ReScO_ joined #rest
20:00 alxbl joined #rest
20:00 igitoor_ joined #rest
20:01 igitoor_ joined #rest
20:02 blongden joined #rest
20:07 jgornick joined #rest
20:07 ramsey joined #rest
20:08 whartung_ joined #rest
20:10 bigbluehat joined #rest
20:11 gamache_ joined #rest
20:11 HIGHBIT joined #rest
20:21 pdurbin1 joined #rest
20:23 asm89 joined #rest
20:35 SupaHam joined #rest
20:42 shrink0r^jumpin joined #rest
21:18 lemur joined #rest
21:37 Schrodinger`Cat hey
21:38 Schrodinger`Cat i'm writing a chessgame. I have some ressources: Player, Chessboard, Square, Piece
21:38 Schrodinger`Cat and i need to handle piece deplacement validation
21:39 Schrodinger`Cat actually i use POST "/piece/<idPiece>" {"destSquareId": "/square/<squareId>"} to move a piece
21:40 Schrodinger`Cat and i'm asking the best way to add the player to this
21:40 Schrodinger`Cat if i do POST "/piece/<idPiece>" {"destSquareId": "/square/<squareId>", nickName : "/player/<playerId>"}, im not violating the semantic of the POST ?
21:41 pdurbin why would it be a violation?
21:44 Schrodinger`Cat because the data i send on the POST contains other stuff than a piece property, i think
21:46 Schrodinger`Cat in my mind if i POST on a Carrot ressource, i can pass in the body of the request only properties of a Carrot
21:49 trygvis how about you post a 'move' document to a service endpoint instead of thinking of this as CRUD operations on objects?
21:54 Schrodinger`Cat because i prefer to not anymore think in term of action, but in term of ressources, state transfert
21:55 trygvis it sounds to me like you're thinking in terms of CRUD instead of REST
21:55 Schrodinger`Cat hum, maybe
21:56 Schrodinger`Cat i'm still learning REST
21:56 Schrodinger`Cat can you give me an example that is REST and not CRUD ?
21:57 trygvis doing crud when that is what you need is fine
21:57 trygvis (given that you've discovered the resources and talk the hypermedia the resource want)
21:58 trygvis but if you want to change the state of the 'application' (where the application is 'a round of chess', not your chess application) you send such a command
21:58 Schrodinger`Cat yes
21:59 trygvis the client still have to be told that it is appropriate to do so (send the command) and where to send it
22:01 Schrodinger`Cat ok, so i can use some action representation in REST
22:06 Schrodinger`Cat so its like i'm saying "Toto do a move, the piece foo moves to destination" ?
22:10 Schrodinger`Cat i think the issue is more like an authentification problem
22:21 trygvis authentication is an orthogonal problem, it's handled by http directly
23:05 begriffs joined #rest
23:25 marcoslamuria joined #rest
23:31 marcoslamuria joined #rest

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

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