REST API: remove status from ApiResponse

it duplicates the header HTTP status
This commit is contained in:
Nicola Murino
2020-09-08 09:45:21 +02:00
parent b9c381e26f
commit 01850c7399
5 changed files with 180 additions and 875 deletions

View File

@@ -82,9 +82,8 @@ type Conf struct {
}
type apiResponse struct {
Error string `json:"error"`
Message string `json:"message"`
HTTPStatus int `json:"status"`
Error string `json:"error,omitempty"`
Message string `json:"message"`
}
// Initialize configures and starts the HTTP server