document web.ContentType* and web.APIError*
continuous-integration/drone the build is pending Details

This commit is contained in:
Lennart 2021-07-20 10:34:59 +02:00 committed by Geno
parent fb766ca32b
commit 281d10aba3
2 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@ type HTTPError struct {
Data interface{} `json:"data,omitempty" swaggerignore:"true"`
}
// Error strings used for HTTPError.Message.
const (
APIErrorInvalidRequestFormat = "Invalid Request Format"
APIErrorInternalDatabase = "Internal Database Error"

View File

@ -4,6 +4,7 @@ import (
"github.com/gin-gonic/gin"
)
// MIME type strings.
const (
ContentTypeJSON = "application/json"
ContentTypeJS = "application/javascript"