Skip to content

Latest commit

 

History

History
50 lines (41 loc) · 764 Bytes

README.md

File metadata and controls

50 lines (41 loc) · 764 Bytes

Creation of REST API with SpringBoot and Java in combination with code wars Kata

The link to kata can be found here

Api Endpoints

Get Array of all fighters

street-fighter/all-fighters

{
    "fighers" : [
    ["figher1" "figher2" "figher1" "figher2"]
    ["figher1" "figher2""figher1" "figher2"]
    ]
}
Get current position

street-fighter/current-position

{
    "position" {
    "x" : 1,
    "y" : 1
    }
}
Get new position after a movement command

street-fighter/move/{move-cmd}

move-cmd:

  • up
  • left
  • down
  • right
{
    "position" {
    "x" : 1,
    "y" : 1
    }
}

Persistance DAOs

  • List of all fighters
  • Current position