Retourner transactions lors de leur insertion

Rendre disponible les id de transactions officiellement ajoutées lors
d'un '201 Created' sur 'POST /v2/transactions http/1.1' dans le response
body sous 'application/json: data.transactions'.
This commit is contained in:
Victor Lacasse-Beaudoin 2023-06-08 01:31:34 -04:00
parent 12d98cf302
commit 6f5b8733b6
3 changed files with 18 additions and 16 deletions

View file

@ -19,7 +19,7 @@ type GetMembreResponse struct {
}
type PostTransactionsResponseData struct {
RowsInserted int64 `json:"rows_inserted"`
Transactions []models.Transaction `json:"transactions"`
}
type PostTransactionsResponse struct {