|
26 | 26 | import com.parallax.client.cloudsession.exceptions.UserBlockedException; |
27 | 27 | import com.parallax.server.blocklyprop.rest.typewrappers.CompileActionTypeWrapper; |
28 | 28 | import com.parallax.server.blocklyprop.services.impl.SecurityServiceImpl; |
29 | | -import javax.servlet.http.HttpServletRequest; |
30 | | -import javax.ws.rs.FormParam; |
31 | | -import javax.ws.rs.GET; |
32 | | -import javax.ws.rs.POST; |
33 | | -import javax.ws.rs.Path; |
34 | | -import javax.ws.rs.PathParam; |
35 | | -import javax.ws.rs.Produces; |
36 | | -import javax.ws.rs.QueryParam; |
37 | | -import javax.ws.rs.core.Response; |
38 | | -import javax.ws.rs.core.Response.Status; |
39 | 29 | import org.apache.commons.configuration.Configuration; |
40 | 30 | import org.slf4j.Logger; |
41 | 31 | import org.slf4j.LoggerFactory; |
42 | 32 |
|
| 33 | +import javax.servlet.http.HttpServletRequest; |
| 34 | +import javax.ws.rs.*; |
| 35 | +import javax.ws.rs.core.Response; |
| 36 | +import javax.ws.rs.core.Response.Status; |
| 37 | + |
43 | 38 | /** |
44 | 39 | * |
45 | 40 | * @author Michel |
@@ -72,12 +67,22 @@ public void setConfiguration(Configuration configuration) { |
72 | 67 | @Name("compile") |
73 | 68 | @Produces("text/plain") |
74 | 69 | public Response get(@QueryParam("test") String testString) { |
75 | | - |
76 | 70 | LOG.info("REST:/rest/compile/ Get request received"); |
77 | | - |
78 | 71 | return Response.ok("Hello " + testString).build(); |
79 | 72 | } |
80 | 73 |
|
| 74 | +/* |
| 75 | + @GET |
| 76 | + @Detail("Get Simple Libraries version") |
| 77 | + @Name("version") |
| 78 | + @Produces("text/plain") |
| 79 | + public Response version() { |
| 80 | + LOG.info("REST:/rest/compile/ Get request received"); |
| 81 | + return Response.ok("v0.0.0").build(); |
| 82 | + } |
| 83 | +*/ |
| 84 | + |
| 85 | + |
81 | 86 | @POST |
82 | 87 | @Path("/spin/{action}") |
83 | 88 | @Detail("Spin compile") |
|
0 commit comments