Skip to content

Commit

Permalink
Merge pull request #125 from plantbreeding/issue-89
Browse files Browse the repository at this point in the history
Added additional trial to the trial summaries example
  • Loading branch information
BrapiCoordinatorSelby authored Oct 24, 2017
2 parents 89a12e5 + 99d21a8 commit a959a1c
Showing 1 changed file with 36 additions and 10 deletions.
46 changes: 36 additions & 10 deletions Specification/Trials/ListTrialSummaries.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,22 @@ Implementation target date: PAG2016.

+ Parameters
+ programDbId (optional, string, `1`) ... Program filter to only return trials associated with given program id.
+ locationDbId (optional, string, `212`) ... Filter by location
+ pageSize (optional, integer, `1000`)
+ page (optional, integer, `100`)
+ active (optional, boolean, `true/false`) ... Filter active status true/false.
+ sortBy (optional, boolean, `studyDbId`) ... Sort order. Name of the field to sorty by.
+ sortOrder (optional, boolean, `asc/desc`) ... Sort order direction. Ascending/Descending.
+ locationDbId (optional, string, `212`) ... Filter by location
+ pageSize (optional, integer, `1000`)
+ page (optional, integer, `100`)
+ active (optional, boolean, `true/false`) ... Filter active status true/false.
+ sortBy (optional, boolean, `studyDbId`) ... Sort order. Name of the field to sorty by.
+ sortOrder (optional, boolean, `asc/desc`) ... Sort order direction. Ascending/Descending.

+ Response 200 (application/json)

{
"metadata": {
"pagination": {
"pageSize": 2,
"pageSize": 1000,
"currentPage": 0,
"totalCount": 100,
"totalPages": 50
"totalCount": 2,
"totalPages": 1
},
"status" : [],
"datafiles": []
Expand All @@ -54,7 +54,7 @@ Implementation target date: PAG2016.
"programName": "International Yield Trial",
"startDate": "2007-06-01",
"endDate" : "2008-12-31",
"active" : "true",
"active" : "false",
"studies" : [
{
"studyDbId" : "1",
Expand All @@ -72,6 +72,32 @@ Implementation target date: PAG2016.
"property2Name" : "property2Value",
"property3Name" : "property3Value"
}
},
{
"trialDbId" : "2",
"trialName" : "InternationalTrialB",
"programDbId": "35",
"programName": "International Yield Trial 2: Return of the Trial",
"startDate": "2008-06-01",
"endDate" : "2009-12-31",
"active" : "true",
"studies" : [
{
"studyDbId" : "3",
"studyName" : "Zimbabwe Yield Trial",
"locationName" : "Zimbabwe"
},
{
"studyDbId" : "4",
"studyName" : "Kenya Yield Trial",
"locationName" : "Kenya"
}
],
"additionalInfo" : {
"property1Name" : "property1Value",
"property2Name" : "property2Value",
"property3Name" : "property3Value"
}
}
]
}
Expand Down

0 comments on commit a959a1c

Please sign in to comment.