GA4GH Search API (1.0.0)

Download OpenAPI specification:Download

GA4GH Search Team: ga4gh-discovery-search@ga4gh.org License: Apache 2.0

GA4GH Search is an API for searching biomedical data.

More information on GitHub.

Authentication

bearerAuth

Security Scheme Type HTTP
HTTP Authorization Scheme bearer

tables

List Tables

Returns a list of Tables.

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "tables": [
    ],
  • "pagination": {},
  • "errors": [
    ]
}

Get a Table

Returns the information about the Table identified by name.

Authorizations:
path Parameters
table_name
required
string

Unique Table name, unique to this implementation

Responses

Response samples

Content type
application/json
{
  • "name": "string",
  • "description": "string",
  • "data_model": true,
  • "errors": [
    ]
}

Fetch data from a Table

Optional operation that returns data from a Table

Authorizations:
path Parameters
table_name
required
string

Unique Table name, unique to this implementation

Responses

Response samples

Content type
application/json
{
  • "data_model": true,
  • "data": [
    ],
  • "pagination": {},
  • "errors": [
    ]
}

search

Perform a search on Tables

Optional operation that accepts a SearchRequest and returns a TableData

Authorizations:
Request Body schema: application/json

Query to execute

query
required
string

Query in SQL. Supported SQL grammar, data types, and functions are described in the specification.

parameters
Array of any

Positional parameters for the query in query property.

Responses

Request samples

Content type
application/json
{
  • "query": "SELECT some_string, some_num FROM a_table WHERE some_string=? AND some_num=?",
  • "parameters": [
    ]
}

Response samples

Content type
application/json
{
  • "data_model": true,
  • "data": [
    ],
  • "pagination": {},
  • "errors": [
    ]
}

service-info

Show information about the Search service

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "id": "org.ga4gh.myservice",
  • "name": "My project",
  • "type": {
    },
  • "description": "This service provides...",
  • "organization": {},
  • "contactUrl": "mailto:support@example.com",
  • "documentationUrl": "https://docs.myservice.example.com",
  • "createdAt": "2019-06-04T12:58:19Z",
  • "updatedAt": "2019-06-04T12:58:19Z",
  • "environment": "test",
  • "version": "1.0.0"
}