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:
Matthew Dillon 2014-10-15 13:01:11 -08:00
parent 6fe6d5d189
commit 830a8805c9
13 changed files with 263 additions and 7 deletions

View file

@ -16,8 +16,9 @@ import (
// A Client communicates with bactdb's HTTP API.
type Client struct {
Users UsersService
Genera GeneraService
Users UsersService
Genera GeneraService
Species SpeciesService
// BaseURL for HTTP requests to bactdb's API.
BaseURL *url.URL
@ -47,6 +48,7 @@ func NewClient(httpClient *http.Client) *Client {
}
c.Users = &usersService{c}
c.Genera = &generaService{c}
c.Species = &speciesService{c}
return c
}