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"`
|
Data interface{} `json:"data,omitempty" swaggerignore:"true"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Error strings used for HTTPError.Message.
|
||||||
const (
|
const (
|
||||||
APIErrorInvalidRequestFormat = "Invalid Request Format"
|
APIErrorInvalidRequestFormat = "Invalid Request Format"
|
||||||
APIErrorInternalDatabase = "Internal Database Error"
|
APIErrorInternalDatabase = "Internal Database Error"
|
||||||
|
|
|
@ -4,6 +4,7 @@ import (
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// MIME type strings.
|
||||||
const (
|
const (
|
||||||
ContentTypeJSON = "application/json"
|
ContentTypeJSON = "application/json"
|
||||||
ContentTypeJS = "application/javascript"
|
ContentTypeJS = "application/javascript"
|
||||||
|
|
Loading…
Reference in New Issue