GA4GH Beacon API Specification - Datasets Endpoints (2.0.0)

Download OpenAPI specification:Download

E-mail: beacon@ga4gh.org License: Apache 2.0

TBD

GET Endpoints

Available endpoints in this API. All of them have a POST counterpart.

getDatasets

Get a list of datasets

query Parameters
requestedSchema
string
Example: requestedSchema=ga4gh-service-info-v1.0

Schema to be used to format the result field in the response. The response will use Beacon format.

skip
integer (Skip) >= 0
Default: 0
Example: skip=0
  • In the request: number of pages to skip * In the response: number of pages that has been skipped
limit
integer (Limit) >= 0
Default: 10
Example: limit=10

Size of the page. Use 0 to return all the results or the maximum allowed by the Beacon, if there is any.

filters
Array of strings
Examples: filters=DUO:0000007

Responses

Response samples

Content type
application/json
Example
{
  • "beaconHandovers": [],
  • "info": { },
  • "meta": {
    },
  • "responseSummary": {
    }
}

getOneDataset

Get details about one dataset, identified by its (unique) 'id'

path Parameters
id
required
string
query Parameters
requestedSchema
string
Example: requestedSchema=ga4gh-service-info-v1.0

Schema to be used to format the result field in the response. The response will use Beacon format.

Responses

Response samples

Content type
application/json
Example
{
  • "beaconHandovers": [],
  • "info": { },
  • "meta": {
    },
  • "responseSummary": {
    }
}

getOneDatasetEntries

Get the genomic variants list from one dataset, identified by its (unique) 'id'

path Parameters
id
required
string
query Parameters
requestedSchema
string
Example: requestedSchema=ga4gh-service-info-v1.0

Schema to be used to format the result field in the response. The response will use Beacon format.

skip
integer (Skip) >= 0
Default: 0
Example: skip=0
  • In the request: number of pages to skip * In the response: number of pages that has been skipped
limit
integer (Limit) >= 0
Default: 10
Example: limit=10

Size of the page. Use 0 to return all the results or the maximum allowed by the Beacon, if there is any.

Responses

Response samples

Content type
application/json
Example
{
  • "beaconHandovers": [],
  • "info": { },
  • "meta": {
    },
  • "responseSummary": {
    }
}

getOneDatasetBiosamples

Get the biosamples list from one dataset, identified by its (unique) 'id'

path Parameters
id
required
string
query Parameters
requestedSchema
string
Example: requestedSchema=ga4gh-service-info-v1.0

Schema to be used to format the result field in the response. The response will use Beacon format.

skip
integer (Skip) >= 0
Default: 0
Example: skip=0
  • In the request: number of pages to skip * In the response: number of pages that has been skipped
limit
integer (Limit) >= 0
Default: 10
Example: limit=10

Size of the page. Use 0 to return all the results or the maximum allowed by the Beacon, if there is any.

Responses

Response samples

Content type
application/json
Example
{
  • "beaconHandovers": [],
  • "info": { },
  • "meta": {
    },
  • "responseSummary": {
    }
}

getOneDatasetIndividuals

Get the individuals list from one dataset, identified by its (unique) 'id'

path Parameters
id
required
string
query Parameters
requestedSchema
string
Example: requestedSchema=ga4gh-service-info-v1.0

Schema to be used to format the result field in the response. The response will use Beacon format.

skip
integer (Skip) >= 0
Default: 0
Example: skip=0
  • In the request: number of pages to skip * In the response: number of pages that has been skipped
limit
integer (Limit) >= 0
Default: 10
Example: limit=10

Size of the page. Use 0 to return all the results or the maximum allowed by the Beacon, if there is any.

Responses

Response samples

Content type
application/json
Example
{
  • "beaconHandovers": [],
  • "info": { },
  • "meta": {
    },
  • "responseSummary": {
    }
}

getOneDatasetFilteringTerms

Get the list of filtering terms that could be used with a given dataset, identified by its (unique) 'id'

path Parameters
id
required
string
query Parameters
skip
integer (Skip) >= 0
Default: 0
Example: skip=0
  • In the request: number of pages to skip * In the response: number of pages that has been skipped
limit
integer (Limit) >= 0
Default: 10
Example: limit=10

Size of the page. Use 0 to return all the results or the maximum allowed by the Beacon, if there is any.

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "response": {}
}

POST Endpoints

The same operations than GET, just by POST.

postDatasetsRequest

Get a list of datasets

Request Body schema: application/json
$schema
string ($schema)

Refers to the JSON Schema which describes the set of valid attributes for this particular document type. This attribute is mostly used in schemas that should be tested in Beacon implementations.

required
object (beaconRequestMeta)

Meta section of the Beacon request. It includes request context details relevant for the Beacon server when processing the request.

object

Parameters to limit the list of returned results.

Responses

Request samples

Content type
application/json
{
  • "$schema": "string",
  • "meta": {
    },
  • "query": {
    }
}

Response samples

Content type
application/json
Example
{
  • "beaconHandovers": [],
  • "info": { },
  • "meta": {
    },
  • "responseSummary": {
    }
}

postOneDataset

Get details about one dataset, identified by its (unique) 'id'

path Parameters
id
required
string
Request Body schema: application/json
$schema
string ($schema)

Refers to the JSON Schema which describes the set of valid attributes for this particular document type. This attribute is mostly used in schemas that should be tested in Beacon implementations.

required
object (beaconRequestMeta)

Meta section of the Beacon request. It includes request context details relevant for the Beacon server when processing the request.

object

Parameters to limit the list of returned results.

Responses

Request samples

Content type
application/json
{
  • "$schema": "string",
  • "meta": {
    },
  • "query": {
    }
}

Response samples

Content type
application/json
Example
{
  • "beaconHandovers": [],
  • "info": { },
  • "meta": {
    },
  • "responseSummary": {
    }
}

postOneDatasetEntries

Get the genomic variants list from one dataset, identified by its (unique) 'id'

path Parameters
id
required
string
Request Body schema: application/json
$schema
string ($schema)

Refers to the JSON Schema which describes the set of valid attributes for this particular document type. This attribute is mostly used in schemas that should be tested in Beacon implementations.

required
object (beaconRequestMeta)

Meta section of the Beacon request. It includes request context details relevant for the Beacon server when processing the request.

object

Parameters to limit the list of returned results.

Responses

Request samples

Content type
application/json
{
  • "$schema": "string",
  • "meta": {
    },
  • "query": {
    }
}

Response samples

Content type
application/json
Example
{
  • "beaconHandovers": [],
  • "info": { },
  • "meta": {
    },
  • "responseSummary": {
    }
}

postOneDatasetBiosamples

Get the biosamples list from one dataset, identified by its (unique) 'id'

path Parameters
id
required
string
Request Body schema: application/json
$schema
string ($schema)

Refers to the JSON Schema which describes the set of valid attributes for this particular document type. This attribute is mostly used in schemas that should be tested in Beacon implementations.

required
object (beaconRequestMeta)

Meta section of the Beacon request. It includes request context details relevant for the Beacon server when processing the request.

object

Parameters to limit the list of returned results.

Responses

Request samples

Content type
application/json
{
  • "$schema": "string",
  • "meta": {
    },
  • "query": {
    }
}

Response samples

Content type
application/json
Example
{
  • "beaconHandovers": [],
  • "info": { },
  • "meta": {
    },
  • "responseSummary": {
    }
}

postOneDatasetIndividuals

Get the biosamples list from one dataset, identified by its (unique) 'id'

path Parameters
id
required
string
Request Body schema: application/json
$schema
string ($schema)

Refers to the JSON Schema which describes the set of valid attributes for this particular document type. This attribute is mostly used in schemas that should be tested in Beacon implementations.

required
object (beaconRequestMeta)

Meta section of the Beacon request. It includes request context details relevant for the Beacon server when processing the request.

object

Parameters to limit the list of returned results.

Responses

Request samples

Content type
application/json
{
  • "$schema": "string",
  • "meta": {
    },
  • "query": {
    }
}

Response samples

Content type
application/json
Example
{
  • "beaconHandovers": [],
  • "info": { },
  • "meta": {
    },
  • "responseSummary": {
    }
}

postOneDatasetFilteringTerms

Get the list of filtering terms that could be used with a given dataset, identified by its (unique) 'id'

path Parameters
id
required
string
Request Body schema: application/json
$schema
string ($schema)

Refers to the JSON Schema which describes the set of valid attributes for this particular document type. This attribute is mostly used in schemas that should be tested in Beacon implementations.

required
object (beaconRequestMeta)

Meta section of the Beacon request. It includes request context details relevant for the Beacon server when processing the request.

object

Parameters to limit the list of returned results.

Responses

Request samples

Content type
application/json
{
  • "$schema": "string",
  • "meta": {
    },
  • "query": {
    }
}

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "response": {}
}