diff --git a/src/main/java/cactusServer/resources/InstancesRest.java b/src/main/java/cactusServer/resources/InstancesRest.java index 084c11e..4db312e 100644 --- a/src/main/java/cactusServer/resources/InstancesRest.java +++ b/src/main/java/cactusServer/resources/InstancesRest.java @@ -74,16 +74,6 @@ return null; } - @Path("/{instanceId}/objects/{objectId}") - @GET - @Produces(MediaType.APPLICATION_JSON) - public Object getObject(@PathParam("instanceId") String instanceId, @PathParam("objectId") String objectId) { - Instance instance = Instances.getInstance().getInstance(instanceId); - if (instance != null) { - return instance.getObject(objectId); - } - return null; - } @Path("/{instanceId}/characters/{characterId}") @GET @@ -124,17 +114,6 @@ return new URIAddressedEntity((INSTANCES_URI + "/" + instanceId + "/areas/" + ae.getId()), ae.getBody()); } - @Path("/{instanceId}/objects") - @POST - @Produces(MediaType.APPLICATION_JSON) - public URIAddressedEntity createObject(@PathParam("instanceId") String instanceId, @FormParam("position") Position3D position, - @FormParam("velocity") Velocity3D velocity, @FormParam("angularVelocity") AngularVelocity3D angularVelocity, - @FormParam("angle") Angle angle, @FormParam("attribute") Attribute attribute, @FormParam("model") String model) { - Instance instance = Instances.getInstance().getInstance(instanceId); - IDAddressedEntity ae = instance.createObject(position, velocity, angularVelocity, angle, attribute, model); - return new URIAddressedEntity((INSTANCES_URI + "/" + instanceId + "/objects/" + ae.getId()), ae.getBody()); - } - @Path("/{instanceId}/characters") @POST @Produces(MediaType.APPLICATION_JSON)