Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIController ¶
type APIController struct {
// contains filtered or unexported fields
}
APIController for products
func (*APIController) Get ¶
Get Response for Product matching marketplacecode param @Summary Gets the requested product @Tags Product @Produce json @Success 200 {object} APIResult{product=domain.SimpleProduct} @Failure 500 {object} APIResult @Failure 404 {object} APIResult @Param marketplacecode path string true "the marketplace code (idendifier) for the product" @Router /api/v1/products/{marketplacecode} [get]
func (*APIController) Inject ¶
func (c *APIController) Inject(responder *web.Responder, productService domain.ProductService, uRLService *application.URLService) *APIController
Inject dependencies
type APIResult ¶
type APIResult struct { Error *resultError Success bool Product domain.BasicProduct }
APIResult view data
type View ¶
type View struct { Responder *web.Responder `inject:""` domain.ProductService `inject:""` URLService *application.URLService `inject:""` Template string `inject:"config:commerce.product.view.template"` Router *web.Router `inject:""` }
View demonstrates a product view controller
Click to show internal directories.
Click to hide internal directories.