aws / aws/serverless-java-container
Provide concrete example of building custom events
- 主要言語
- Java
- スター
- 1.6k
- フォーク
- 574
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
*To help us debug your issue fill in the basic information below using the options provided*
*Serverless Java Container version*: `eg. 1.5`
v1 (Spring Boot 2) and v2 (Spring Boot 3.x)
*Implementations:* `Jersey / Spring / Spring Boot / Spring Boot 2 / Spark`
Spring Boot
*Framework version:* `eg SpringBoot 2.2.6.RELEASE`
Spring Boot 2.x and Spring Boot 3.x
*Frontend service:* `REST API / HTTP API / ALB`
VPC Lattice
*Deployment method:* `eg SAM, Serverless Framework, Console`
N/A
## Scenario
*Describe what you are trying to accomplish*
This is a more general ask related to this [issue](https://github.com/awslabs/aws-serverless-java-container/issues/639). The documentation provided [here](https://github.com/awslabs/aws-serverless-java-container/wiki/Custom-event-types) indicates that just four classes need to be implemented to build the custom class. However, pursuant of trying to implement the VPC Lattice event, I discovered that in addition to creating the POJOs for the event model itself, I needed to also implement `ExceptionHandler`, `SecurityContext`, `SecurityContextWriter`. It would helpful to include a practical example of how to create the custom event, outline the minimum and optional attributes for the servlet request, and how to set fields for the response payload.
## Expected behavior
*Describe how you would expect the application to behave*
Ability to simply or at least clear extend the framework with custom event payloads
## Actual behavior
*Describe what you are seeing instead*
Difficulty following the documentation
コントリビューションガイド
調査の方向性
既存の Custom-event-types wiki ページと関連する issue 639 から始め、そこにある4クラスのガイダンスを、ここで説明されている ExceptionHandler、SecurityContext、SecurityContextWriter に関する追加要件と比較します。ドキュメントに実用的な custom-event の例が含まれ、servlet-request の必須およびオプションの属性が特定され、response フィールドがどのように設定されるかが説明されていれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, spring-boot
- 領域
- documentation
- issue の種類
- ドキュメント
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100