code: func intervalActionByIntervalHandler(w http.ResponseWriter, r *http.Request) {
  	if r.Body != nil {
  		defer r.Body.Close()
  	}
  
  	// URL parameters
  	vars := mux.Vars(r)
  	interval, err := url.QueryUnescape(vars["interval"])
  	//Issues un-escaping
  	if err != nil {
  		http.Error(w, err.Error(), http.StatusBadRequest)
  		LoggingClient.Error("Error un-escaping the value interval name: " + err.Error())
  		return
  	}
  
  	switch r.Method {
  	case http.MethodGet:
  		intervalActions, err := getIntervalActionsByInterval(interval)
  		if err != nil {
  			LoggingClient.Error(err.Error())
  			http.Error(w, err.Error(), http.StatusInternalServerError)
  			return
  		}
  		encode(intervalActions, w)
  		break
  	}
  }
docs: /*
  Handler for the IntervalAction By-Interval API
  Status code 404 - interval action not found
  Status code 500 - unanticipated issues
  api/v1/interval
  */