deep-dark-server / GoldMine

0 stars 0 forks source link

http protocol: register #1

Open lacti opened 9 years ago

lacti commented 9 years ago

register

대회 서버에 user-id, hostname, protocol-type을 등록한다.

요청

PUT /register
{
  "userId": yourUserId,
  "protocol": "yourProtocol",
  "accessKey": "yourAccessKey"
}
{
  "result": true
}
LemonTeaDev commented 9 years ago

No Response: What if registration fails with exception?

LemonTeaDev commented 9 years ago

To Discuss: Data type can be used without inference if POST/GET is used to pass variables to server. Variables as URI parts(current way) needs method params to be (string, string), and they should be parsed inside method to get variables in intended types.