List observations.
This commit is contained in:
parent
f867e5c424
commit
dac0721a41
9 changed files with 152 additions and 0 deletions
|
@ -39,6 +39,7 @@ func API() *mux.Router {
|
|||
m.Path("/observation_types/{Id:.+}").Methods("DELETE").Name(DeleteObservationType)
|
||||
|
||||
// Observations
|
||||
m.Path("/observations").Methods("GET").Name(Observations)
|
||||
m.Path("/observations").Methods("POST").Name(CreateObservation)
|
||||
m.Path("/observations/{Id:.+}").Methods("GET").Name(Observation)
|
||||
|
||||
|
|
|
@ -31,4 +31,5 @@ const (
|
|||
|
||||
Observation = "observation:get"
|
||||
CreateObservation = "observation:create"
|
||||
Observations = "observation:list"
|
||||
)
|
||||
|
|
Reference in a new issue