TODO:
Extracting link from BrAPI object to another:
- GET object (ex: /brapi/v1/studies/1)
{ "studyDbId": "1", "studyName": "Study 1" }
- GET linked objects (ex: /brapi/v1/studies/1/germplasm)
{ "germplasmDbId": "1", "germplasmName": "Germplasm 1" },
{ "germplasmDbId": "2", "germplasmName": "Germplasm 2" }
- Add linked object ids to parent object
{ "studyDbId": "1", "studyName": "Study 1", "germplasmDbIds": ["1", "2"]}
- Generate reversed links
{ "germplasmDbId": "1", "germplasmName": "Germplasm 1", "studyDbIds": ["1"] },
{ "germplasmDbId": "2", "germplasmName": "Germplasm 2", "studyDbIds": ["1"] }
TODO:
[ ] (Optional) Create BrAPI object index (ID => JSON File, File offset to object)[ ] Basic JSON validation (minimum fields required, minimum links between objects)(moved to elasticsearch transform)Extracting link from BrAPI object to another:
{ "studyDbId": "1", "studyName": "Study 1" }{ "germplasmDbId": "1", "germplasmName": "Germplasm 1" }, { "germplasmDbId": "2", "germplasmName": "Germplasm 2" }{ "studyDbId": "1", "studyName": "Study 1", "germplasmDbIds": ["1", "2"]}{ "germplasmDbId": "1", "germplasmName": "Germplasm 1", "studyDbIds": ["1"] }, { "germplasmDbId": "2", "germplasmName": "Germplasm 2", "studyDbIds": ["1"] }