Species Read - Order of ops:
router/routes.go router/api.go models/species_test.go models/species.go models/client.go datastore/migrations/addspecies.sql datastore/migrations/dropspecies.sql datastore/species_test.go datastore/species.go datastore/datastore.go api/species_test.go api/species.go api/handler.go
This commit is contained in:
parent
6fe6d5d189
commit
830a8805c9
13 changed files with 263 additions and 7 deletions
|
@ -16,5 +16,9 @@ func API() *mux.Router {
|
|||
m.Path("/genera/{Id:.+}").Methods("GET").Name(Genus)
|
||||
m.Path("/genera/{Id:.+}").Methods("PUT").Name(UpdateGenus)
|
||||
m.Path("/genera/{Id:.+}").Methods("DELETE").Name(DeleteGenus)
|
||||
|
||||
// Species
|
||||
m.Path("/species/{Id:.+}").Methods("GET").Name(Species)
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
|
@ -10,4 +10,6 @@ const (
|
|||
Genera = "genera"
|
||||
UpdateGenus = "genus:update"
|
||||
DeleteGenus = "genus:delete"
|
||||
|
||||
Species = "species"
|
||||
)
|
||||
|
|
Reference in a new issue