Kippenjungle API documentation

There are 2 APIs documented here. One is based on the general fexible genetic calculators, and the other is specific for the chicken calculator.

Flexible API

Usage

https://kippenjungle.nl/api/?DATA=...&mgt=A/a,B/b,...,Z/z&fgt=...,z/-

GET method -- DATA as from flexible calculator, mgt/fgt only necessary for aberrant genes; Note: no Locus symbol prefix!

Example Output (goose):

{"species":{"oddGender":"F","noSexlinkedGenes":false
	,"genes":[{"locus":"Sd","name":"Sexlinked Dilution","sexlinked":true
		,"alleles":[{"symbol":"Sd","effect":"Dimorphic","heteffect":"Dilute","dominance":"H","wildtype":false,"epistatic":""}
			,...]}
		,...]
	,"maleWildtype":["sd+\/sd+","Sp+\/Sp+","bl+\/bl+","G+\/G+"]
	,"femaleWildtype":["sd+\/-","Sp+\/-","bl+\/bl+","G+\/-"]}
,"parents":[{"gender":"male","genotype":"sd+\/sd+,Sp+\/Sp+,bl+\/bl+,G+\/G+","split":"","phenotype":" Grey "}
	,{"gender":"female","genotype":"sd+\/-,Sp+\/-,bl+\/bl+,G+\/-","split":"","phenotype":" Grey "}]
,"gametes":[{"gender":"male","gametes":["sd+,Sp+,bl+,G+"]}
	,{"gender":"female","gametes":["sd+,Sp+,bl+,G+","-,-,bl+,-"]}]
,"offspring":[{"genotype":"sd+\/-,Sp+\/-,bl+\/bl+,G+\/-","split":"","phenotype":" Grey ","gender":"female","count":1}
	,...]
,"summary":[{"percentage":"50%","gender":"female","phenotype":" Grey "}
	,...]}

... means repeated for other entities

Chicken Color Calculator API

Usage

https://kippenjungle.nl/api/api.php

POST method -- payload:

{sire: {genotype: "C+/C+,..."}
, dam: {genotype: "C+/C+,..."}}

Genotypes have a default, so you only have to provide the aberrant genes.
Note:Allele symbols are strict for now, as used in the chicken calculator. Dominant wheaten is E^Wh for now, not the consensus.

Example Output:

{"species":{"oddGender":"F","name":"chicken","noSexlinkedGenes":false
	,"genes":[{"locus":"C","name":"Recessive White","sexlinked":false
		,"alleles":[{"symbol":"C+","effect":"","heteffect":"","dominance":"D","wildtype":true,"epistatic":""}
			,...]}
		,...]
	,"maleWildtype":["C+\/C+",...]
	,"femaleWildtype":["C+\/C+",...,"b+\/-",...]}
,"parents":[{"gender":"male","genotype":"C+\/C+,..."
	,"explicit":{"C":"C+\/C+",...}
	,"split":""
	,"phenotype":"black pat. gold partridge-duckwing"}
	,...]
,"gametes":[{"gender":"male","gametes":["C+,e+,co+,db+,pg+,ml+,Cha+,mh+,di+,Ig+,cb+,i+,bl+,Mo+,Lav+,b+,s+,Choc+"]}
	,{"gender":"female","gametes":["C+,...,b+,s+,Choc+","C+,...,-,-,-"]}]
,"offspring":[{"genotype":"C+\/C+,...,b+\/-,..."
		,"explicit":{"C":"C+\/C+",...,"B":"b+\/-",...}
		,"split":""
		,"phenotype":"black pat. gold partridge-duckwing"
		,"gender":"female"
		,"count":1}
	,...]
,"summary":[{"percentage":"50%","gender":"female","phenotype":"black pat. gold partridge-duckwing"}
	,...]
,"footnotes":[{"code":"pat.","footnote":"patterned\/marked"}
	,...]}