Package za.co.wethinkcode.robots.webapi
Class WorldApiHandler
java.lang.Object
za.co.wethinkcode.robots.webapi.WorldApiHandler
Handles HTTP requests for the Robot World Web API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetCurrentWorld(io.javalin.http.Context context) GET /world Returns the currently running world as JSON.voidgetSavedWorld(io.javalin.http.Context ctx) GET /world/{world} Returns the currently running world as JSON.voidrobotCommand(io.javalin.http.Context ctx)
-
Constructor Details
-
WorldApiHandler
-
-
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)
-