Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jaxrs-dev] @Status Annotation?

No need for Response is a great thing, we already use fitlers for that but with providers for dynamic code.
I wonder if we shall really hurry and put in 3.1, my belly says -0. Maybe there are better or more flexible solutions to discuss?
So I would say "in general a good idea" but not for 3.1 without checking alternatives.
-Markus


-----Ursprüngliche Nachricht-----
Von: jaxrs-dev [mailto:jaxrs-dev-bounces@xxxxxxxxxxx] Im Auftrag von Santiago Pericasgeertsen
Gesendet: Donnerstag, 2. September 2021 18:17
An: jaxrs developer discussions
Betreff: [jaxrs-dev] @Status Annotation?

Hi All,

 Trying to get some quick feedback before doing anything. 

 There are some use cases in which the default status return for a resource method that does not return Response needs to be overridden. For example, a POST request that wants to return 201 instead of 200. Of course, you can fix this by returning a Response, but that may not be ideal in all cases (e.g., tools that do static analysis would prefer to see Foo over Response as return type). I believe some impls already support this.

 Shall we try to squeeze this in 3.1?

— Santiago
_______________________________________________
jaxrs-dev mailing list
jaxrs-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jaxrs-dev



Back to the top