andrewdyer / andrewdyer/actions

Standardise JSON response structure for actions

Abierto
#6 0 comentarios 0 reacciones 0 asignados Ver en GitHub
enhancement
Lenguaje dominante
PHP
Estrellas
0
Forks
0
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.