Create a new observation
This commit is contained in:
parent
a018d2bd7a
commit
f867e5c424
9 changed files with 154 additions and 3 deletions
|
@ -39,6 +39,7 @@ func API() *mux.Router {
|
|||
m.Path("/observation_types/{Id:.+}").Methods("DELETE").Name(DeleteObservationType)
|
||||
|
||||
// Observations
|
||||
m.Path("/observations").Methods("POST").Name(CreateObservation)
|
||||
m.Path("/observations/{Id:.+}").Methods("GET").Name(Observation)
|
||||
|
||||
return m
|
||||
|
|
|
@ -29,5 +29,6 @@ const (
|
|||
UpdateObservationType = "observation_type:update"
|
||||
DeleteObservationType = "observation_type:delete"
|
||||
|
||||
Observation = "observation:get"
|
||||
Observation = "observation:get"
|
||||
CreateObservation = "observation:create"
|
||||
)
|
||||
|
|
Reference in a new issue