summaryrefslogtreecommitdiffstats
path: root/sms-service/src
diff options
context:
space:
mode:
authorKiran Kamineni <kiran.k.kamineni@intel.com>2018-03-05 12:57:22 -0800
committerKiran Kamineni <kiran.k.kamineni@intel.com>2018-03-05 13:31:01 -0800
commit5a4dfbf75e292a03d73c5a7690d78547b45ffc88 (patch)
treec497f4c0326ed545166651b187ef3351e4e079b2 /sms-service/src
parent7f0c6c6ff3a180827c539d696d33df44abd7491e (diff)
Updating api documentation
Updating API documentation to add login, status and unseal end points Issue-ID: AAF-121 Change-Id: I073d970aa779353a34236e61692ca67f380084b6 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Diffstat (limited to 'sms-service/src')
-rw-r--r--sms-service/src/sms/handler/handler.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/sms-service/src/sms/handler/handler.go b/sms-service/src/sms/handler/handler.go
index dd124e9..fde6718 100644
--- a/sms-service/src/sms/handler/handler.go
+++ b/sms-service/src/sms/handler/handler.go
@@ -52,6 +52,8 @@ func (h handler) createSecretDomainHandler(w http.ResponseWriter, r *http.Reques
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
+
+ w.WriteHeader(http.StatusCreated)
}
// deleteSecretDomainHandler deletes a secret domain with the name provided
@@ -64,6 +66,8 @@ func (h handler) deleteSecretDomainHandler(w http.ResponseWriter, r *http.Reques
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
+
+ w.WriteHeader(http.StatusNoContent)
}
// createSecretHandler handles creation of secrets on a given domain name