Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountryHandler ¶
type CountryHandler struct {
// contains filtered or unexported fields
}
func NewCountryHandler ¶
func NewCountryHandler(svc CountryService) *CountryHandler
func (*CountryHandler) HandleSumPopulationByState ¶
func (h *CountryHandler) HandleSumPopulationByState(w http.ResponseWriter, r *http.Request)
HandleSumPopulationByState godoc @Summary Sum the total population by state @Tags countries @Produce json @Param request body request.SumPopulationByState true "request body" @Success 200 {object} []domain.State @Failure 400 {object} response.Err @Failure 500 {object} response.Err @Router /countries/sum-population-by-state [post]
Click to show internal directories.
Click to hide internal directories.