You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Tim Clapp (Jira)" <ji...@apache.org> on 2023/04/13 17:22:00 UTC
[jira] [Updated] (TOMEE-4198) Programmatic rest service
[ https://issues.apache.org/jira/browse/TOMEE-4198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim Clapp updated TOMEE-4198:
-----------------------------
Attachment: PublicAPI.java
> 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)