Provide concrete example of building custom events

Đang mở
#640 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
java, spring-boot
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu với trang wiki Custom-event-types hiện có và issue 639 liên quan, sau đó so sánh hướng dẫn về bốn lớp trong đó với các yêu cầu bổ sung đối với ExceptionHandler, SecurityContext và SecurityContextWriter được mô tả ở đây. Công việc được xem là hoàn tất khi tài liệu bao gồm một ví dụ thực tế về custom-event, xác định các thuộc tính servlet-request tối thiểu và tùy chọn, đồng thời giải thích cách các trường response được điền.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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. The documentation provided here 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

Ngôn ngữ chính
Java
Star
1.6k
Fork
575
Merge trung bình
1 ngày 15 giờ
Pull request đã merge (30 ngày)
12

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của aws/serverless-java-container

Tất cả issue của aws/serverless-java-container

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.