Antonio Goncalves created FORGE-2323:
----------------------------------------
Summary: Being able to create a new servlet
Key: FORGE-2323
URL:
https://issues.jboss.org/browse/FORGE-2323
Project: Forge
Issue Type: Sub-task
Components: Java EE
Affects Versions: 2.16.0.Final
Reporter: Antonio Goncalves
Fix For: 2.x Future
It would be good to have a command to create a Servlet. A command like this :
{code}
servlet-new-endpoint --named MyEndpoint
{code}
Would generate
{code}
@Path("/myEndpoint")
public class CustomerEndpoint
{
}
{code}
Changing the path would be :
{code}
rest-new-endpoint --named MyEndPoint --path endpoint
{code}
This would generate :
{code}
@Path("/endpoint")
public class CustomerEndpoint
{
}
{code}
Also, a REST configuration class needs to be creates, such as :
{code}
@ApplicationPath("/rest")
public class RestApplication extends Application
{
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)