andrewdyer / andrewdyer/actions

Standardise JSON response structure for actions

Ouverte
#6 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
PHP
Étoiles
0
Forks
0
Métriques de merge des PR
Aucune PR mergée en 30 j

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.