Delete an observation
This commit is contained in:
parent
b90da728fe
commit
952224e2df
9 changed files with 141 additions and 0 deletions
|
@ -43,6 +43,7 @@ func API() *mux.Router {
|
|||
m.Path("/observations").Methods("POST").Name(CreateObservation)
|
||||
m.Path("/observations/{Id:.+}").Methods("GET").Name(Observation)
|
||||
m.Path("/observations/{Id:.+}").Methods("PUT").Name(UpdateObservation)
|
||||
m.Path("/observations/{Id:.+}").Methods("DELETE").Name(DeleteObservation)
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
|
@ -33,4 +33,5 @@ const (
|
|||
CreateObservation = "observation:create"
|
||||
Observations = "observation:list"
|
||||
UpdateObservation = "observation:update"
|
||||
DeleteObservation = "observation:delete"
|
||||
)
|
||||
|
|
Reference in a new issue