document web.ContentType* and web.APIError*
continuous-integration/drone the build is pending
Details
continuous-integration/drone the build is pending
Details
This commit is contained in:
parent
fb766ca32b
commit
281d10aba3
|
@ -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"
|
||||
|
|
|
@ -4,6 +4,7 @@ import (
|
|||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// MIME type strings.
|
||||
const (
|
||||
ContentTypeJSON = "application/json"
|
||||
ContentTypeJS = "application/javascript"
|
||||
|
|
Loading…
Reference in New Issue