marcospsbrito / mars-curiosity-rest-api

This Restful API, simulate a entry point to move the Curiosity robot and explore the Mars terrain.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mars-curiosity-rest-api

The Mars Curiosity Restful API, simulate a entry point to move the Curiosity robot and explore the Mars terrain.

Curiosity Specification

Endpoints

  • http://:8080/rest/mars
  • http://:8080/rest/mars/{Movements: [M|R|L]*}

Movements

  • L: Left Rotation
  • R: Right Rotation
  • M: Move ahead

Response Object

({X position}, {Y position}, {Direction})

Direction

  • S: South
  • N: North
  • W: Weast
  • E: East

Rules

  • Curiosity can't move out a piece (5x5) of Mars Terrain.
  • Curiosity can't ever start from the point [0:0] with North(N) direction.
  • Curiosity return to start point after the end of command (because it is stateless).

About

This Restful API, simulate a entry point to move the Curiosity robot and explore the Mars terrain.

License:GNU General Public License v3.0


Languages

Language:Java 100.0%