Image Image Image




Post new topic Reply to topic  [ 25 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Call for participation in CSPoker
PostPosted: Sun Jun 07, 2009 7:02 pm 
Offline
Regular member
User avatar

Posts: 64
Favourite Bot: MCTSBot
Everything's sent in the message body, not encoded in the URI.

We're not webservice experts. There aren't any big ideological reasons for the choices we made. Feel free to contribute a better designed API.


Top
 Profile E-mail  
 
 Post subject: Re: Call for participation in CSPoker
PostPosted: Tue Jun 09, 2009 2:28 pm 
Offline
New member
User avatar

Posts: 5
Favourite Bot: me myself and i
I am not sure if we have the same idea of an REST service.

Don't get me wrong I do not want to talk down you interface, i just want to get an impression of it, and maybe a proper way to define a well suited simple interface between server and client.

In you rest interpretation I found mostly verbs/actions/methods.
I think of the following Nouns/Resources/Endpoints:

Persons
- profile
- skin
- balance
Events
- type (SitAndGo/Money/tourney)
- list of Tables

Tables (your tableConfiguration)
- list of Hands
- smallBlind
Hands
- list of Hand

Hand:
- deckOnTable
- potSize
- round/type (preflop, ..)
- list (Seated)Person
- winner

SeatedPlayer
- stackValue
- action (check, fold, call, callOrFold, ...)
- amount (when raise)
- seatId
- cards

For example you do a get on the current played Hand:

http://myPokerserver.com/Hand/1234

with a put you can update the Hand with your seatedPalyer action like fold.

Are you always using the put method? even when getting the Data? A get has no body?


Top
 Profile E-mail  
 
 Post subject: Re: Call for participation in CSPoker
PostPosted: Tue Jun 09, 2009 6:47 pm 
Offline
Regular member
User avatar

Posts: 64
Favourite Bot: MCTSBot
The confusion might arise because the XML API was designed for XML over sockets. The XML objects are sent over the channel and events and acknowledgements are received.
For the REST API we take the same objects but wrap them in a HTTP body. This is the reason why the REST API doesn't look well designed. It's actually a XML over Sockets API channeled through HTTP.

Your suggestions make sense.


Top
 Profile E-mail  
 
 Post subject: Re: Call for participation in CSPoker
PostPosted: Wed Jun 10, 2009 10:19 am 
Offline
New member
User avatar

Posts: 5
Favourite Bot: me myself and i
I downloaded the sources. Since if have maven already in place I will build the project.
If I find the time I am going to play around with it, and maybe defining a new interface.Somethig like RESTlesPoker :)

My goal will be defining a easy to use interface, which can be used by different clients, on which
many server/clients can agree to.

Something like the Java Specification Request for Poker software would be nice.

How do you deal with authentication? It wouldn't be nice if an opponent is sending a fold request for us.


Top
 Profile E-mail  
 
 Post subject: Re: Call for participation in CSPoker
PostPosted: Wed Jun 10, 2009 1:02 pm 
Offline
Regular member
User avatar

Posts: 64
Favourite Bot: MCTSBot
You should really talk to loic dachary at pokersource. He's very interested in such a standard poker API.


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 25 posts ]  Go to page Previous  1, 2


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: