-
Notifications
You must be signed in to change notification settings - Fork 2
URL Scheme
A lot is a set of genetic traits. Adding a lot means that you will be adding all the information about a specific set of genetic traits (scientific name, variety name, germination rate, etc).
aln below is the combination of an Accession + Lot number. We will use this as a primary key
on the Seed
table/model.
TODO: It might make more sense to call the Seeds
model Lot
and then name this url as /lots/
instead of /seeds/
.
/seeds/
# show all the lots in the database in a list view
/seeds/add/
# create a new lot
/seeds/<commonname-variety>-<aln>/<id>/
# show a detail view for a given lot (aln is captured)
/seeds/<commonname-variety>-<aln>/edit/<id>/
# edit a seed that already exists
/seeds/<commonname-variety>-<aln>/delete/<id>
# delete
/seeds/scientific-names/
# view all the scientific names in a table
/seeds/scientific-names/add/
# create a new scientific name
/seeds/scientific-names/<name>/<id>/
# detail view on a scientific name
/seeds/scientific-names/<name>/edit/<id>/
# edit an already existing scientific name
/seeds/scientific-names/<name>/delete/<id>/
# delete a specific scientific name
TODO: An add
view might not be necessary. We could always just assume that the user wants to add a new lot when they are adding a new variety.
/seeds/variety/
# view all the varieties
/seeds/variety/add/
# add a new variety
/seeds/variety/<commonname-variety>/<id>/
# detail view for a variety
/seeds/variety/<commonname-variety>/edit/<id>/
# edit an existing variety
/seeds/variety/<commonname-variety>/delete/<id>/
# delete an existing variety
/seeds/families/
# view all the families
/seeds/families/add/
# detail view for a family
/seeds/families/<family-name>/<id>/
# detail view for a family
/seeds/families/<family-name>/edit/<id>/
# edit an existing family
/seeds/families/<family-name>/delete/<id>/
# delete an existing family