Create a new observation

This commit is contained in:
Matthew Dillon 2014-11-20 10:36:21 -09:00
parent a018d2bd7a
commit f867e5c424
9 changed files with 154 additions and 3 deletions

View file

@ -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

View file

@ -29,5 +29,6 @@ const (
UpdateObservationType = "observation_type:update"
DeleteObservationType = "observation_type:delete"
Observation = "observation:get"
Observation = "observation:get"
CreateObservation = "observation:create"
)