Delete an observation type

This commit is contained in:
Matthew Dillon 2014-11-10 15:24:16 -09:00
parent 73f7b580c1
commit 68b98f6d6b
9 changed files with 141 additions and 0 deletions

View file

@ -36,6 +36,7 @@ func API() *mux.Router {
m.Path("/observation_types").Methods("POST").Name(CreateObservationType)
m.Path("/observation_types/{Id:.+}").Methods("GET").Name(ObservationType)
m.Path("/observation_types/{Id:.+}").Methods("PUT").Name(UpdateObservationType)
m.Path("/observation_types/{Id:.+}").Methods("DELETE").Name(DeleteObservationType)
return m
}

View file

@ -27,4 +27,5 @@ const (
CreateObservationType = "observation_type:create"
ObservationTypes = "observation_type:list"
UpdateObservationType = "observation_type:update"
DeleteObservationType = "observation_type:delete"
)