andrewdyer / andrewdyer/actions

Standardise JSON response structure for actions

Đang mở
#6 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
PHP
Star
0
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Description

Currently, actions construct JSON responses in an inconsistent way, leading to duplication and potential variation in response formats.

Introduce a standardised approach for returning JSON responses from actions to ensure:

- Consistent structure across all endpoints
- Reduced boilerplate in individual actions
- Easier maintenance and evolution of response format

### Acceptance Criteria

- Actions return responses in a consistent JSON structure
- Response creation logic is centralised
- Existing actions are updated to follow the new approach

### Notes

- Implementation approach is open (helper methods, service, responder, etc.)
- Should support both success and error responses

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

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.