From 92e7a45b9f2b47f79cb037c875a66a14afd11d67 Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Sat, 16 Sep 2023 15:07:36 -0400 Subject: [PATCH] Ajouter squelette de apihandler.ScanPOST --- apihandler/apihandler.go | 9 +++++++++ apiresponse/apiresponse.go | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/apihandler/apihandler.go b/apihandler/apihandler.go index a485de9..ae97e0f 100644 --- a/apihandler/apihandler.go +++ b/apihandler/apihandler.go @@ -94,3 +94,12 @@ func (a *APIHandler) ScanGET(c echo.Context) error { return c.JSON(r.StatusCode, r) } + +// ScanPOST is the handler for `POST /v{version}/scan/{membre_id}/ http/1.1` +func (a *APIHandler) ScanPOST(c echo.Context) error { + var r apiresponse.ScanPOST + + _ = r + + return nil +} diff --git a/apiresponse/apiresponse.go b/apiresponse/apiresponse.go index 619f240..cdeb9c0 100644 --- a/apiresponse/apiresponse.go +++ b/apiresponse/apiresponse.go @@ -24,3 +24,11 @@ type ScanGET struct { IsScanned bool } } + +// ScanPOST is the response type for `POST /v:version/scan/ http/1.1` +type ScanPOST struct { + Response + Data struct { + MembreID string + } +}