Create species, cleanup schema.

- create species
- species genus_id not null
This commit is contained in:
Matthew Dillon 2014-10-15 16:43:09 -08:00
parent ed2ba26654
commit 7fe5566edf
10 changed files with 155 additions and 3 deletions

View file

@ -18,6 +18,7 @@ func API() *mux.Router {
m.Path("/genera/{Id:.+}").Methods("DELETE").Name(DeleteGenus)
// Species
m.Path("/species").Methods("POST").Name(CreateSpecies)
m.Path("/species/{Id:.+}").Methods("GET").Name(Species)
return m

View file

@ -11,5 +11,6 @@ const (
UpdateGenus = "genus:update"
DeleteGenus = "genus:delete"
Species = "species"
Species = "species"
CreateSpecies = "species:create"
)