| |
---|
| | import cactusServer.entities.Character; |
---|
| | import cactusServer.entities.EmoteState; |
---|
| | import cactusServer.entities.IDAddressedEntity; |
---|
| | import cactusServer.entities.Instance; |
---|
| | import cactusServer.entities.Instance.State; |
---|
| | import cactusServer.entities.Plain; |
---|
| | import cactusServer.entities.Player; |
---|
| | import cactusServer.entities.URIAddressedEntity; |
---|
| | import cactusServer.models.Instances; |
---|
| |
---|
| | |
---|
| | public InstancesRest() { |
---|
| | |
---|
| | } |
---|
| | |
---|
| | |
---|
| | |
---|
| | |
---|
| | // @Path("/test") |
---|
| | // @GET |
---|
| | // @Produces(MediaType.TEXT_PLAIN) |
---|
| |
---|
| | // @Produces(MediaType.APPLICATION_JSON) |
---|
| | // public Instance updateInstance(@FormParam("state") Instance.State state) { |
---|
| | // return Instances.getInstance().updateInstance(name, state, stageID); |
---|
| | // } |
---|
| | |
---|
| | |
---|
| | // @Path("/{instanceId}") |
---|
| | // @PUT |
---|
| | // @Produces(MediaType.APPLICATION_JSON) |
---|
| | // public Instance updateInstance(@FormParam("state") State state) { |
---|
| | // return Instances.getInstance(name, state, stageID) |
---|
| | // } |
---|
| | |
---|
| | |
---|
| | @Path("/players/{playerId}") |
---|
| | @PUT |
---|
| | @Produces(MediaType.APPLICATION_JSON) |
---|
| | public Player updatePlayer(@PathParam("instanceId") String instanceId, @FormParam("playerId") String playerId, |
---|
| |
---|
| | |