jakartaee / jakartaee-tutorial

Jakarta EE Tutorial Content
https://jakartaee.github.io/jakartaee-documentation/jakartaee-tutorial/current/
Eclipse Public License 2.0
15 stars 21 forks source link

Update Jakarta RESTful Web Services sections for Jakarta EE 10 #86

Open kito99 opened 7 months ago

kito99 commented 7 months ago

Recommended approach:

I'm not sure we need to say anything about multi-part requests, but if folks feel differently, we can add a new section for that with an example just like the Java SE example above.

References:

NOTE: Going forward, please give new sections meaningful names (i.e. jaxrs-se-bootstrap.adoc instead of jaxrs005.adoc).

kito99 commented 7 months ago

...

kito99 commented 7 months ago

@spericas please take a look and let me know (a) if this sounds correct, and (b) if you or someone on the committer team would like to contribute. Thanks!

spericas commented 7 months ago

@kito99 You cannot use @Inject as a replacement for @Context in all cases. There may be some implementations that support this in some cases, but for example, @Context can be used in parameter position. Regarding contributions, perhaps you ask for help on the Jakarta REST list.

kito99 commented 7 months ago

thanks, @spericas! With respect to @Context, what is the CDI replacement in cases where @Inject doesn't work?

I'll definitely contact the mailing list.

spericas commented 7 months ago

thanks, @spericas! With respect to @Context, what is the CDI replacement in cases where @Inject doesn't work?

I'll definitely contact the mailing list.

For 4.0, we expect to support parameter injection directly, without the use of any special annotation. For that purpose, we plan to introduce a new @Body annotation to identify the request entity (currently identified by having no Jakarta REST annotations).

kito99 commented 7 months ago

@spericas ok, so it sounds like perhaps adding a warning admonition now might cause more confusion than necessary and people should just continue to use @Context for now?

omniprof commented 7 months ago

I just completed creating a workshop on REST 3.1 for the Eclipse Foundation. Ivar gave the workshop for the first time at EclipseCon last month and he and I will be giving it at Devnexus this April. In the workshop we look at SeBootstrap so possibly I could contribute some info on this topic to the tutorial.

kito99 commented 7 months ago

Hey Ken, that would be awesome. This ticket outlines what I had in mind (short intro and example) but we’re flexible: https://github.com/jakartaee/jakartaee-tutorial/issues/86.

omniprof commented 7 months ago

I will review the ticket later today.

kito99 commented 7 months ago

@omniprof have you had a chance to review yet?

omniprof commented 6 months ago

Sorry about running later than expected. Looking at it now.

omniprof commented 6 months ago

I just sent you, via Email, my tutorial on SeBootstrap. If this meets the needs of the Tutorial then I can move on and do the MultiPart tutorial.