Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jaxrs-dev] [External] : Re: @Status Annotation?
  • From: Santiago Pericasgeertsen <santiago.pericasgeertsen@xxxxxxxxxx>
  • Date: Fri, 3 Sep 2021 12:25:05 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ICS3XL93F7HP1KghtYb3k/sQqqyFnmXV8fC44IsszPc=; b=Zfj9Ma/C5X6dOk0I1CvreKGOh+0LwF2tBXG9GWVyXIOtl0lV9mIHifpV1GNve5N4kg/nuMCTKFTsjaDwcdBWemAiKhAr6KD9ZiDQCaDdEkJl/H63OzlkuVlqJrh1s3oJR+5JNOChzXfE4jbER5R9TJNVB6sjnN4J0lMUPc4lObjMt99l1raLazKR906fMMjq/bkDuDJSsg+oeVG/W6M+Ky1+b8s5G/3mnrY3yIcK60eKKN6INPDH6zHxdAmXcKQRCQvm9k0W9JdWln0jfCL773cFTmgwfNnZEVVtrjQaoe/UzbyvMcohJQ3jtiuN9BPaFJvShlgBbAKOoR96Y3oWEA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NMrsPe20VOsxvxiqHY1avWGLJNefEPGWdeedoAFkHrSh33CqXHe6/aykBAW0Kej9/yXCheae6NVtVhpWOdmIwaxD6b9x+kR9dBJRZ8Hd2NKx9M845wPCT8IdI6PuImJgEoUEb3iuDEq0zjTaTV+YS7vnO36SKbt9JOAJyTvq0wH9o+HlXRtAr++p3fxlEIZ8dOPfFo8nHYH94QQmNNLlcCBlH86aTl5FG/wky7vcD+ytwNSkM74nI80bHTYrCD0UwQNsk4SeRQ+8HLbhSwY9YxyRH3SWluh6013kCNov6kNj5arjINkARCaxh2fZBerEkC4wxqRNtTzj+f6WGuR6eA==
  • Delivered-to: jaxrs-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/jaxrs-dev/>
  • List-help: <mailto:jaxrs-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/jaxrs-dev>, <mailto:jaxrs-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/jaxrs-dev>, <mailto:jaxrs-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHXoBXpTEAmXehD0EWzlQwFTJOg1auROUsAgAED/IA=
  • Thread-topic: [External] : Re: [jaxrs-dev] @Status Annotation?


> On Sep 2, 2021, at 4:54 PM, Markus Karg <markus@xxxxxxxxxxxxxxx> wrote:
> 
> 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?

 We are talking about declaratively (instead of programmatically) overriding the default response code in Jakarta REST methods. Can you think of any other “more flexible” solutions? There are other REST frameworks already using a simple annotation like this.

— Santiago

> \-----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://urldefense.com/v3/__https://www.eclipse.org/mailman/listinfo/jaxrs-dev__;!!ACWV5N9M2RV99hQ!ZmqdOyRxHvvEEulDP6fSDO7_fhr4ze6vbSc3dBBdTkXSuXHbUDMn7QGCrUdpILJHSJxVsfZaGw$ 
> 
> _______________________________________________
> jaxrs-dev mailing list
> jaxrs-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit https://urldefense.com/v3/__https://www.eclipse.org/mailman/listinfo/jaxrs-dev__;!!ACWV5N9M2RV99hQ!ZmqdOyRxHvvEEulDP6fSDO7_fhr4ze6vbSc3dBBdTkXSuXHbUDMn7QGCrUdpILJHSJxVsfZaGw$ 


Back to the top