Get an observation.
This commit is contained in:
parent
01036de04d
commit
a018d2bd7a
11 changed files with 262 additions and 0 deletions
|
@ -38,5 +38,8 @@ func API() *mux.Router {
|
|||
m.Path("/observation_types/{Id:.+}").Methods("PUT").Name(UpdateObservationType)
|
||||
m.Path("/observation_types/{Id:.+}").Methods("DELETE").Name(DeleteObservationType)
|
||||
|
||||
// Observations
|
||||
m.Path("/observations/{Id:.+}").Methods("GET").Name(Observation)
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
|
@ -28,4 +28,6 @@ const (
|
|||
ObservationTypes = "observation_type:list"
|
||||
UpdateObservationType = "observation_type:update"
|
||||
DeleteObservationType = "observation_type:delete"
|
||||
|
||||
Observation = "observation:get"
|
||||
)
|
||||
|
|
Reference in a new issue