Strain API

Search for Strains

GET /api/search?q={TERM}

[
	{
		"code": "",
		"stub": "",
		"name": "Strain A",
	},
	{
		"code": "",
		"stub": "",
		"name": "Strain B",
	},
]

Strain Autocomplete

GET /api/search?q={TERM}

[
	{
		"code": "",
		"stub": "",
		"label": "Strain A",
		"value": "Strain A",
	},
	{
		"code": "",
		"stub": "",
		"label": "Strain B",
		"value": "Strain B",
	},
]

Create a Strain

POST /api/create

>>>>
{
	"name": "Strain C",
	"type": "",
}
####

Update a Strain

POST /api/update/S123.D

>>>>
{
	"name": "Strain D",
	"type": "",
}
####