Delete an observation type
This commit is contained in:
parent
73f7b580c1
commit
68b98f6d6b
9 changed files with 141 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -27,4 +27,5 @@ const (
|
|||
CreateObservationType = "observation_type:create"
|
||||
ObservationTypes = "observation_type:list"
|
||||
UpdateObservationType = "observation_type:update"
|
||||
DeleteObservationType = "observation_type:delete"
|
||||
)
|
||||
|
|
Reference in a new issue