plantbreeding / BrAPI

Repository for version control of the BrAPI specifications
https://brapi.org
MIT License
57 stars 32 forks source link

Add support for list of different types (accessions, trials, traits, etc.) #177

Closed lukasmueller closed 6 years ago

BrapiCoordinatorSelby commented 6 years ago

Versailles Hackathon

User Created Object Lists Def- Named collections of things.

Proposal: brapi/v1/lists{?listType}{?listSource}{?listName} result:{ data: [ { name: "List Name", description: "", listDbId: "listDbId", listOwner: "Bob", // change to personDbId in future dateCreated: "01/01/2018T00:00:00Z", dateModified: "01/01/2018T00:00:00Z", listType: "Germplasm", //strictly enforced BrAPI model type listSource: "cassavabase.org", listSize: 3 } ] }

brapi/v1/lists/{listDbId} result:{ name: "List Name", description: "", listDbId: "listDbId", listOwner: "Bob", // change to personDbId in future dateCreated: "01/01/2018T00:00:00Z", dateModified: "01/01/2018T00:00:00Z", listType: "Germplasm", //strictly enforced listSource: "cassavabase.org", data: [ "abcd_dbid1", "abcd_dbid2", "abcd_dbid3", ] }