Variant Groups

The variant groups endpoint allows users to enumerate all of the variant groups in CIViC and view their membership.

Get a list of variant groups

This endpoint returns a listing of variant groups in CIViC. This index style endpoint is paginated by default. You can use the count and page parameters or the previous and next links to iterate through all the variant groups.

HTTP Request Format

GET https://civicdb.org/api/variant_groups

Query Parameters

Parameter

Default

Description

page

1

Which page of results to return

count

25

How many variant groups to return on a single page

Example Request

curl https://civicdb.org/api/variant_groups?count=1

Example Response

Expecting value: line 1 column 1 (char 0)

Get details for a specific variant group

This endpoint retrieves details about a specific variant group, given its internal CIViC id.

HTTP Request Format

GET https://civicdb.org/api/variant_groups/:id

Example Request

curl https://civicdb.org/api/variant_groups/21

Example Response

Expecting value: line 1 column 1 (char 0)