Documentation ¶
Index ¶
- Constants
- type EntityRestAPI
- func (api *EntityRestAPI) DeleteEntity(w rest.ResponseWriter, r *rest.Request)
- func (api *EntityRestAPI) GetAllEntities(w rest.ResponseWriter, r *rest.Request)
- func (api *EntityRestAPI) GetEntity(w rest.ResponseWriter, r *rest.Request)
- func (api *EntityRestAPI) PostEntity(w rest.ResponseWriter, r *rest.Request)
- func (api *EntityRestAPI) PutEntity(w rest.ResponseWriter, r *rest.Request)
Constants ¶
View Source
const ( Offset = "0" Limit = "10" OrderDir = "ASC" StatusCodeHeader = "X-Status-Code" EntityIDHeader = "X-Entity-ID" LocationHeader = "Location" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntityRestAPI ¶
type EntityRestAPI struct {
// contains filtered or unexported fields
}
func NewEntityRestAPI ¶
func NewEntityRestAPI(em *eram.EntityDbManager) *EntityRestAPI
func (*EntityRestAPI) DeleteEntity ¶
func (api *EntityRestAPI) DeleteEntity(w rest.ResponseWriter, r *rest.Request)
func (*EntityRestAPI) GetAllEntities ¶
func (api *EntityRestAPI) GetAllEntities(w rest.ResponseWriter, r *rest.Request)
func (*EntityRestAPI) GetEntity ¶
func (api *EntityRestAPI) GetEntity(w rest.ResponseWriter, r *rest.Request)
func (*EntityRestAPI) PostEntity ¶
func (api *EntityRestAPI) PostEntity(w rest.ResponseWriter, r *rest.Request)
func (*EntityRestAPI) PutEntity ¶
func (api *EntityRestAPI) PutEntity(w rest.ResponseWriter, r *rest.Request)
Click to show internal directories.
Click to hide internal directories.