Class WorldApiHandler

java.lang.Object
za.co.wethinkcode.robots.webapi.WorldApiHandler

public class WorldApiHandler extends Object
Handles HTTP requests for the Robot World Web API.
  • Constructor Details

  • Method Details

    • getSavedWorld

      public void getSavedWorld(io.javalin.http.Context ctx)
      GET /world/{world} Returns the currently running world as JSON.
    • getCurrentWorld

      public void getCurrentWorld(io.javalin.http.Context context)
      GET /world Returns the currently running world as JSON.
    • robotCommand

      public void robotCommand(io.javalin.http.Context ctx)