Merged in feature/docresult (pull request #105)

Document Result Endpoint

* testing

* cleantesting

* progress

* query

* lint

* readme

* dockerclient

* api

* passtest

* tests

* test
This commit is contained in:
Michael McGuinness
2025-03-17 18:14:15 +00:00
parent f7c41c4ef3
commit 555b6d420b
105 changed files with 3276 additions and 2484 deletions
+19
View File
@@ -0,0 +1,19 @@
package queryapi
import (
"fmt"
"net/http"
"github.com/labstack/echo/v4"
)
func (s *Controllers) GetStatusByClientId(ctx echo.Context, id ClientID) error {
status, err := s.svc.Client.GetStatusByExternalId(ctx.Request().Context(), id)
if err != nil {
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Unable to find client: %s", err))
}
return ctx.JSON(http.StatusOK, ClientStatusBody{
Status: parseClientStatus(status),
})
}