Skip to content

Commit

Permalink
changed map details call to be paged
Browse files Browse the repository at this point in the history
  • Loading branch information
BrapiCoordinatorSelby committed Jan 25, 2018
1 parent 22a6c1f commit 070552b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Specification/GenomeMaps/GenomeMapDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,24 @@ Implemented by: Germinate, Cassavabase

Used by: Flapjack

### Get map details [GET /brapi/v1/maps/{mapDbId}]
### Get map details [GET /brapi/v1/maps/{mapDbId}{?pageSize}{?page}]

Provides the number of markers on each linkageGroup and the max position on the linkageGroup

+ Paramters
+ mapDbId (required, string, `abc123`) ... the internal db id of a selected map
+ pageSize (optional, integer, `1000`) ... The size of the pages to be returned. Default is `1000`.
+ page (optional, integer, `0`) ... Which result page is requested. The page indexing starts at 0 (the first page is 'page'= 0). Default is `0`.

+ Response 200 (application/json)

{
"metadata" : {
"pagination" : {
"pageSize":0,
"pageSize":1000,
"currentPage":0,
"totalCount":0,
"totalPages":0
"totalCount":2,
"totalPages":1
},
"status" : [],
"datafiles": []
Expand All @@ -31,7 +33,7 @@ Provides the number of markers on each linkageGroup and the max position on the
"name": "Some map",
"type": "Genetic",
"unit": "cM",
"linkageGroups": [
"data": [
{
"linkageGroupName": "1",
"markerCount": 100000,
Expand Down

0 comments on commit 070552b

Please sign in to comment.