Procházet zdrojové kódy

add example where only one parent is missing

Kimberly Meechan před 5 měsíci
rodič
revize
59083a0179

+ 36 - 0
pyrat-api-multiple-responses-offspring.json

@@ -229,5 +229,41 @@
             }
         ],
         "parents": []
+    },
+    {
+        "animalid": 7,
+        "eartag_or_id": "ID-007",
+        "species_name": "Mouse",
+        "sacrifice_reason_name": "Not usable age",
+        "dateborn": "2026-02-09T00:00:00",
+        "strain_name": "Line-AB",
+        "mutations": [
+            {
+                "animalid": 7,
+                "mutation_id": 5,
+                "mutationname": "Mut-A",
+                "mutationtype": "BAC transgenic",
+                "grade_id": 5,
+                "mutationgrade": "het"
+            },
+            {
+                "animalid": 7,
+                "mutation_id": 5,
+                "mutationname": "Mut-B",
+                "mutationtype": "BAC transgenic",
+                "grade_id": 5,
+                "mutationgrade": "het"
+            }
+        ],
+        "parents": [
+            {
+                "animalid": 5,
+                "parent_id": 107,
+                "parent_eartag": "ID-107",
+                "parent_sex": "f",
+                "parent_labid": "B",
+                "parent_cagenumber": "B2"
+            }
+        ]
     }
 ]

+ 2 - 1
pyrat-api-multiple-responses.csv

@@ -4,4 +4,5 @@ ID-002,Mouse,Not usable age,2026-02-04,Line-A,Mut-A,,hom,,ID-101,ID-100,Mut-A,,h
 ID-003,Mouse,Not usable age,2026-02-05,Line-AB,Mut-A,Mut-B,het,hom,ID-103,ID-102,Mut-A,Mut-B,het,wt,Mut-A,Mut-B,wt,hom
 ID-004,Mouse,Not usable age,2026-02-06,Line-AB,Mut-A,Mut-B,het,het,ID-105,ID-104,Mut-A,,het,,Mut-B,,hom,
 ID-005,Mouse,Not usable age,2026-02-07,Line-AB,Mut-A,Mut-B,het,het,ID-107,ID-106,Mut-A,Mut-B,het,wt,,,,
-ID-006,Mouse,Not usable age,2026-02-08,Line-AB,Mut-A,Mut-B,het,het,,,,,,,,,,
+ID-006,Mouse,Not usable age,2026-02-08,Line-AB,Mut-A,Mut-B,het,het,,,,,,,,,,
+ID-007,Mouse,Not usable age,2026-02-09,Line-AB,Mut-A,Mut-B,het,het,ID-107,,Mut-A,Mut-B,het,wt,,,,