Merge branch 'master' into EDGE-242
author차지원/Service Innovation Lab(SR)/Engineer/삼성전자 <jw_wonny.cha@samsung.com>
Mon, 25 Mar 2019 08:07:18 +0000 (17:07 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 25 Mar 2019 08:07:18 +0000 (17:07 +0900)
1  2 
src/restapi/v1/restapi.go

@@@ -113,30 -107,18 +113,25 @@@ func APIV1ServicemgrServicesServiceIDDe
  func APIV1ServicemgrEventServiceIDPost(w http.ResponseWriter, r *http.Request) {
        log.Printf("[%s] APIV1ServicemgrEventServiceIDPost", logPrefix)
  
 -      vars := mux.Vars(r)
 -      serviceID := vars["serviceid"]
 -      id, err := strconv.ParseUint(serviceID, 10, 64)
 +      w.Header().Set("Content-Type", "application/json; charset=UTF-8")
 +      writeJSONResponse(w, nil, http.StatusNotImplemented)
  
 -      if len(serviceID) == 0 || err != nil {
 -              writeJSONResponse(w, nil, http.StatusBadRequest)
 -      } else {
 -              servicemgr.DataPathHandler(w, r, id)
 -              writeJSONResponse(w, nil, http.StatusOK)
 -      }
 +      // @ TODO
 +      // vars := mux.Vars(r)
 +      // serviceID := vars["serviceid"]
 +      // id, err := strconv.ParseUint(serviceID, 10, 64)
 +
 +      // if len(serviceID) == 0 || err != nil {
 +      //      w.Header().Set("Content-Type", "application/json; charset=UTF-8")
 +      //      w.WriteHeader(http.StatusBadRequest)
 +      // } else {
 +      //      servicemgr.DataPathHandler(w, r, id)
 +
 +      //      w.Header().Set("Content-Type", "application/json; charset=UTF-8")
 +      //      w.WriteHeader(http.StatusOK)
 +      // }
  }
  
- // APIV1ServicemgrServicesServiceIDGet function
- func APIV1ServicemgrServicesServiceIDGet(w http.ResponseWriter, r *http.Request) {
-       log.Printf("[%s] APIV1ServicemgrServicesServiceIDGet", logPrefix)
- }
  // APIV1ServicemgrServicesServiceIDPost function
  func APIV1ServicemgrServicesServiceIDPost(w http.ResponseWriter, r *http.Request) {
        log.Printf("[%s] APIV1ServicemgrServicesServiceIDPost", logPrefix)