GET
/api/public/rice/varieties/{id}Get rice variety by ID
Returns a single rice variety by its ID
Parameters
Name | Type | Required | Description | Default | Parameter |
---|---|---|---|---|---|
id | string | Required | ObjectId of the rice variety | — | — |
Example Request
curl -X GET https://nutri.ricethailand.go.th/api/public/rice/varieties/{id} \
--header 'Authorization: Bearer 1POdFZRZbvb...qqillRxMr2z'
Responses
200
400
404
500
{
"id": "string",
"varietyID": 0,
"riceVar": "string",
"names": {
"th": {
"variety": "string",
"group": "string",
"other": "string",
"local": "string",
"gi": "string",
"commercial": "string"
},
"en": {
"variety": "string",
"group": "string",
"other": "string",
"local": "string",
"gi": "string",
"commercial": "string"
}
},
"isRegistered": true,
"isGI": true,
"sticky": "string",
"photoperiodSensitive": "string",
"origin": "string",
"images": [
"string"
],
"RKB": {
"pedigree": "string",
"registration": "string",
"yield": "string",
"remarkableChar": "string",
"caution": "string",
"suggestedArea": "string"
},
"RGB": {
"panicleNum": 0,
"seedSettingRate": "string",
"shattering": "string",
"thousandGrainWeight": 0
},
"crops": [
{
"cropSampleName": "string",
"riceCategories": "string",
"nutritionData": {
"protein": 0,
"carbohydrate": 0,
"totalFat": 0
}
}
]
}
GET
/api/rice/varieties/{id}Get rice variety by ID
Returns a single rice variety by its ID
Parameters
Name | Type | Required | Description | Default | Parameter |
---|---|---|---|---|---|
id | string | Required | ObjectId of the rice variety | — | — |
Example Request
curl -X GET https://nutri.ricethailand.go.th/api/rice/varieties/{id} \
--header 'Authorization: Bearer 1POdFZRZbvb...qqillRxMr2z'
Responses
200
400
404
500
{
"id": "string",
"varietyID": 0,
"riceVar": "string",
"names": {
"th": {
"variety": "string",
"group": "string",
"other": "string",
"local": "string",
"gi": "string",
"commercial": "string"
},
"en": {
"variety": "string",
"group": "string",
"other": "string",
"local": "string",
"gi": "string",
"commercial": "string"
}
},
"isRegistered": true,
"isGI": true,
"sticky": "string",
"photoperiodSensitive": "string",
"origin": "string",
"images": [
"string"
],
"genesysLink": [
{
"accession": "string",
"name": "string",
"doi": "string",
"grinGlobalID": "string",
"grinGlobalLinks": "string",
"geneSysLinks": "string",
"pgrfadoi": "string"
}
],
"RKB": {
"infoId": 0,
"rkbId": 0,
"riceVarSticky": "string",
"cross": "string",
"pedigree": "string",
"registration": "string",
"characterization1": "string",
"photoperiodSensitive": "string",
"characterization2": "string",
"characterization3": "string",
"characterization4": "string",
"characterization5": "string",
"characterization6": "string",
"characterization7": "string",
"characterization8": "string",
"characterization9": "string",
"characterization10": "string",
"characterization11": "string",
"characterization12": "string",
"characterization13": "string",
"characterization14": "string",
"yield": "string",
"remarkableChar": "string",
"caution": "string",
"suggestedArea": "string",
"href": "string"
},
"RGB": {
"infoID": "string",
"cropSiteDistrict": "string",
"cropSiteProvince": "string",
"GSno": "string",
"seedCoatPubescence": "string",
"seedCoatColor": "string",
"seedLength": 0,
"seedWidth": 0,
"milledRiceColor": "string",
"grainType": "string",
"milledRiceShape": "string",
"chalkiness": "string",
"amylose": 0,
"gelatinizationTemp": "string",
"gelConsistency": "string",
"aroma": "string",
"elongationRatio": "string",
"heading50": "string",
"stemStrength": "string",
"panicleNum": 0,
"flagLeaf": "string",
"panicle": "string",
"panicleExsertion": "string",
"panicleAxis": "string",
"panicleSecondaryBranching": "string",
"leafSenescence": "string",
"seedSettingRate": "string",
"shattering": "string",
"threshability": "string",
"panicleLength": "string",
"thousandGrainWeight": 0,
"bladePubescence": "string",
"bladeColor": "string",
"leafSheathColor": "string",
"bladeAttitude": "string",
"liguleColor": "string",
"liguleShape": "string",
"liguleLength": 0,
"stipuleColor": "string",
"leafJointColor": "string",
"stemDiameter": 0,
"internodeColor": "string",
"culmHabit": "string",
"stigmaColor": "string",
"panicleTipColor": "string",
"sterileLemmaColor": "string",
"awn": "string",
"awnColor": "string",
"stemLength": "string",
"bladeLength": 0,
"bladeWidth": 0,
"sterileLemmaLength": "string"
}
}
GET
/api/rice/varietiesGet several rice varieties by ID
Returns a single rice variety by its ID
Parameters
Name | Type | Required | Description | Default | Parameter |
---|---|---|---|---|---|
ids | string | Required | A comma-separated list of the ObjectId of the rice variety | — | — |
Example Request
curl -X GET https://nutri.ricethailand.go.th/api/rice/varieties \
--header 'Authorization: Bearer 1POdFZRZbvb...qqillRxMr2z'
Responses
200
400
404
500
[
{
"id": "string",
"varietyID": 0,
"riceVar": "string",
"names": {
"th": {
"variety": "string",
"group": "string",
"other": "string",
"local": "string",
"gi": "string",
"commercial": "string"
},
"en": {
"variety": "string",
"group": "string",
"other": "string",
"local": "string",
"gi": "string",
"commercial": "string"
}
},
"isRegistered": true,
"isGI": true,
"sticky": "string",
"photoperiodSensitive": "string",
"origin": "string",
"images": [
"string"
],
"genesysLink": [
{
"accession": "string",
"name": "string",
"doi": "string",
"grinGlobalID": "string",
"grinGlobalLinks": "string",
"geneSysLinks": "string",
"pgrfadoi": "string"
}
],
"RKB": {
"infoId": 0,
"rkbId": 0,
"riceVarSticky": "string",
"cross": "string",
"pedigree": "string",
"registration": "string",
"characterization1": "string",
"photoperiodSensitive": "string",
"characterization2": "string",
"characterization3": "string",
"characterization4": "string",
"characterization5": "string",
"characterization6": "string",
"characterization7": "string",
"characterization8": "string",
"characterization9": "string",
"characterization10": "string",
"characterization11": "string",
"characterization12": "string",
"characterization13": "string",
"characterization14": "string",
"yield": "string",
"remarkableChar": "string",
"caution": "string",
"suggestedArea": "string",
"href": "string"
},
"RGB": {
"infoID": "string",
"cropSiteDistrict": "string",
"cropSiteProvince": "string",
"GSno": "string",
"seedCoatPubescence": "string",
"seedCoatColor": "string",
"seedLength": 0,
"seedWidth": 0,
"milledRiceColor": "string",
"grainType": "string",
"milledRiceShape": "string",
"chalkiness": "string",
"amylose": 0,
"gelatinizationTemp": "string",
"gelConsistency": "string",
"aroma": "string",
"elongationRatio": "string",
"heading50": "string",
"stemStrength": "string",
"panicleNum": 0,
"flagLeaf": "string",
"panicle": "string",
"panicleExsertion": "string",
"panicleAxis": "string",
"panicleSecondaryBranching": "string",
"leafSenescence": "string",
"seedSettingRate": "string",
"shattering": "string",
"threshability": "string",
"panicleLength": "string",
"thousandGrainWeight": 0,
"bladePubescence": "string",
"bladeColor": "string",
"leafSheathColor": "string",
"bladeAttitude": "string",
"liguleColor": "string",
"liguleShape": "string",
"liguleLength": 0,
"stipuleColor": "string",
"leafJointColor": "string",
"stemDiameter": 0,
"internodeColor": "string",
"culmHabit": "string",
"stigmaColor": "string",
"panicleTipColor": "string",
"sterileLemmaColor": "string",
"awn": "string",
"awnColor": "string",
"stemLength": "string",
"bladeLength": 0,
"bladeWidth": 0,
"sterileLemmaLength": "string"
}
}
]
GET
/api/rice/varieties/searchGet several rice varieties by ID
Returns a single rice variety by its ID
Parameters
Name | Type | Required | Description | Default | Parameter |
---|---|---|---|---|---|
q | string | Search query string to filter results | — | — | |
page | number | Page number for pagination | 1 | — | |
limit | number | Number of items to return per page | 10 | — | |
sortBy | string | Field to sort the results by | createdAt | createdAt,updatedAt,name,id | |
sortOrder | string | Order of sorting (ascending or descending) | desc | asc,desc |
Example Request
curl -X GET https://nutri.ricethailand.go.th/api/rice/varieties/search \
--header 'Authorization: Bearer 1POdFZRZbvb...qqillRxMr2z'
Responses
200
400
404
500
{
"metadata": {
"next": "string",
"previouse": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"totalItems": 0,
"totalPages": 0,
"currentPage": 0,
"limit": 0
},
"items": [
{
"id": "string",
"varietyID": 0,
"riceVar": "string",
"names": {
"th": {
"variety": "string",
"group": "string",
"other": "string",
"local": "string",
"gi": "string",
"commercial": "string"
},
"en": {
"variety": "string",
"group": "string",
"other": "string",
"local": "string",
"gi": "string",
"commercial": "string"
}
},
"isRegistered": true,
"isGI": true,
"sticky": "string",
"photoperiodSensitive": "string",
"origin": "string",
"images": [
"string"
],
"genesysLink": [
{
"accession": "string",
"name": "string",
"doi": "string",
"grinGlobalID": "string",
"grinGlobalLinks": "string",
"geneSysLinks": "string",
"pgrfadoi": "string"
}
],
"RKB": {
"infoId": 0,
"rkbId": 0,
"riceVarSticky": "string",
"cross": "string",
"pedigree": "string",
"registration": "string",
"characterization1": "string",
"photoperiodSensitive": "string",
"characterization2": "string",
"characterization3": "string",
"characterization4": "string",
"characterization5": "string",
"characterization6": "string",
"characterization7": "string",
"characterization8": "string",
"characterization9": "string",
"characterization10": "string",
"characterization11": "string",
"characterization12": "string",
"characterization13": "string",
"characterization14": "string",
"yield": "string",
"remarkableChar": "string",
"caution": "string",
"suggestedArea": "string",
"href": "string"
},
"RGB": {
"infoID": "string",
"cropSiteDistrict": "string",
"cropSiteProvince": "string",
"GSno": "string",
"seedCoatPubescence": "string",
"seedCoatColor": "string",
"seedLength": 0,
"seedWidth": 0,
"milledRiceColor": "string",
"grainType": "string",
"milledRiceShape": "string",
"chalkiness": "string",
"amylose": 0,
"gelatinizationTemp": "string",
"gelConsistency": "string",
"aroma": "string",
"elongationRatio": "string",
"heading50": "string",
"stemStrength": "string",
"panicleNum": 0,
"flagLeaf": "string",
"panicle": "string",
"panicleExsertion": "string",
"panicleAxis": "string",
"panicleSecondaryBranching": "string",
"leafSenescence": "string",
"seedSettingRate": "string",
"shattering": "string",
"threshability": "string",
"panicleLength": "string",
"thousandGrainWeight": 0,
"bladePubescence": "string",
"bladeColor": "string",
"leafSheathColor": "string",
"bladeAttitude": "string",
"liguleColor": "string",
"liguleShape": "string",
"liguleLength": 0,
"stipuleColor": "string",
"leafJointColor": "string",
"stemDiameter": 0,
"internodeColor": "string",
"culmHabit": "string",
"stigmaColor": "string",
"panicleTipColor": "string",
"sterileLemmaColor": "string",
"awn": "string",
"awnColor": "string",
"stemLength": "string",
"bladeLength": 0,
"bladeWidth": 0,
"sterileLemmaLength": "string"
}
}
]
}