Update observation types.
This commit is contained in:
parent
186edad1db
commit
73f7b580c1
9 changed files with 158 additions and 0 deletions
|
@ -35,6 +35,7 @@ func API() *mux.Router {
|
|||
m.Path("/observation_types").Methods("GET").Name(ObservationTypes)
|
||||
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)
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
|
@ -26,4 +26,5 @@ const (
|
|||
ObservationType = "observation_type:get"
|
||||
CreateObservationType = "observation_type:create"
|
||||
ObservationTypes = "observation_type:list"
|
||||
UpdateObservationType = "observation_type:update"
|
||||
)
|
||||
|
|
Reference in a new issue