Renaming observation types to characteristic types
This commit is contained in:
parent
be9e6481d0
commit
c1323f9c1f
24 changed files with 873 additions and 873 deletions
|
@ -31,12 +31,12 @@ func API() *mux.Router {
|
|||
m.Path("/strains/{Id:.+}").Methods("PUT").Name(UpdateStrain)
|
||||
m.Path("/strains/{Id:.+}").Methods("DELETE").Name(DeleteStrain)
|
||||
|
||||
// ObservationTypes
|
||||
m.Path("/observation_types").Methods("GET").Name(ObservationTypes)
|
||||
m.Path("/observation_types").Methods("POST").Name(CreateObservationType)
|
||||
m.Path("/observation_types/{Id:.+}").Methods("GET").Name(ObservationType)
|
||||
m.Path("/observation_types/{Id:.+}").Methods("PUT").Name(UpdateObservationType)
|
||||
m.Path("/observation_types/{Id:.+}").Methods("DELETE").Name(DeleteObservationType)
|
||||
// CharacteristicTypes
|
||||
m.Path("/characteristic_types").Methods("GET").Name(CharacteristicTypes)
|
||||
m.Path("/characteristic_types").Methods("POST").Name(CreateCharacteristicType)
|
||||
m.Path("/characteristic_types/{Id:.+}").Methods("GET").Name(CharacteristicType)
|
||||
m.Path("/characteristic_types/{Id:.+}").Methods("PUT").Name(UpdateCharacteristicType)
|
||||
m.Path("/characteristic_types/{Id:.+}").Methods("DELETE").Name(DeleteCharacteristicType)
|
||||
|
||||
// Observations
|
||||
m.Path("/observations").Methods("GET").Name(Observations)
|
||||
|
|
|
@ -23,11 +23,11 @@ const (
|
|||
UpdateStrain = "strain:update"
|
||||
DeleteStrain = "strain:delete"
|
||||
|
||||
ObservationType = "observation_type:get"
|
||||
CreateObservationType = "observation_type:create"
|
||||
ObservationTypes = "observation_type:list"
|
||||
UpdateObservationType = "observation_type:update"
|
||||
DeleteObservationType = "observation_type:delete"
|
||||
CharacteristicType = "characteristic_type:get"
|
||||
CreateCharacteristicType = "characteristic_type:create"
|
||||
CharacteristicTypes = "characteristic_type:list"
|
||||
UpdateCharacteristicType = "characteristic_type:update"
|
||||
DeleteCharacteristicType = "characteristic_type:delete"
|
||||
|
||||
Observation = "observation:get"
|
||||
CreateObservation = "observation:create"
|
||||
|
|
Reference in a new issue