[ 
https://issues.apache.org/jira/browse/TOMEE-4198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tim Clapp resolved TOMEE-4198.
------------------------------
    Resolution: Information Provided

asked and answered here: 
https://lists.apache.org/[email protected]:2023-4

> Programmatic rest service
> -------------------------
>
>                 Key: TOMEE-4198
>                 URL: https://issues.apache.org/jira/browse/TOMEE-4198
>             Project: TomEE
>          Issue Type: Documentation
>          Components: TomEE Core Server
>            Reporter: Tim Clapp
>            Priority: Minor
>         Attachments: PublicAPI.java
>
>
> I'd like to create a restful endpoint, in the fashion described here 
> [https://tomee.apache.org/tomee-8.0/examples/simple-rest.html,] in a 
> programmatic way that is idiomatic to TomEE.
> For example, instead of annotating a method like this below, to bind the 
> method to an http endpoint, I'd like to be able to programmatically create 
> the binding ....
>     @PUT
>     @Path("orders/invoice/\{id}")
>     @Produces(\{MediaType.APPLICATION_XML})
>     @Lock(LockType.READ)
>     public Response DoSomething(){
>         ...
>     }
>  
> Is such a thing possible ?
> How do I tie into the underlying objects TomEE manages so that I can 
> "register" a new http endpoint in the same sort of fashion as I do above via 
> annotations ?
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to