Skip to content

yuriyzubarev/restgames-numberguess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purpose

The number guessing game is a proof-of-concept game for the REST game network. The purpose behind the game is to explore and implement RESTful mechanisms to support a simple game.

Notes

No authentication / authorization yet.

API

POST /numberguess/start
response: [game-id] and the range of numbers

GET /numberguess/[game-id]
response: information about a game

PUT /numberguess/[game-id]
body: text/plan number
response: too low/high or correct guess

PUT /numberguess/[game-id]/end
surrender the game