andrewdyer / andrewdyer/actions

Standardise JSON response structure for actions

Open
#6 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
PHP
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

### 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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.