Create species, cleanup schema.
- create species - species genus_id not null
This commit is contained in:
parent
ed2ba26654
commit
7fe5566edf
10 changed files with 155 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -11,5 +11,6 @@ const (
|
|||
UpdateGenus = "genus:update"
|
||||
DeleteGenus = "genus:delete"
|
||||
|
||||
Species = "species"
|
||||
Species = "species"
|
||||
CreateSpecies = "species:create"
|
||||
)
|
||||
|
|
Reference in a new issue