Skip to content

Commit 4d4c702

Browse files
authored
Merge pull request #93 from ga4gh/service-info-description
Update service info description for refget.sequence and refget.secol
2 parents 51b271a + af0b700 commit 4d4c702

File tree

2 files changed

+54
-1
lines changed

2 files changed

+54
-1
lines changed

docs/seqcol.md

+53
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ Under these umbrella endpoints are a few more specific sub-endpoints, described
345345
- *Return value*: Must include the Seqcol JSON Schema that is used by this server
346346

347347
The `/service-info` endpoint should follow the [GA4GH-wide specification for service info](https://github.com/ga4gh-discovery/ga4gh-service-info/) for general description of the service.
348+
The `artifact` describing sequence collection entities should be `refget.seqcol`. See example below.
348349
Then, it should also add a few specific pieces of information under a `seqcol` property:
349350

350351
- `schema`: MUST return the JSON Schema implemented by the server.
@@ -380,6 +381,58 @@ ga4gh:
380381
- sequences
381382
```
382383
384+
##### Example of a service-info response
385+
386+
```json
387+
{
388+
"id": "org.ga4gh.refget.seqcol",
389+
"name": "Sequence Collection server",
390+
"type": {
391+
"group": "org.ga4gh",
392+
"artifact": "refget-seqcol",
393+
"version": "1.0.0"
394+
},
395+
"description": "Collection of sequences from digests.",
396+
"organization": {
397+
"name": "My organization",
398+
"url": "https://example.com"
399+
},
400+
"contactUrl": "mailto:[email protected]",
401+
"documentationUrl": "https://docs.myservice.example.com",
402+
"createdAt": "2024-01-01T11:00:00Z",
403+
"updatedAt": "2024-01-01T11:00:00Z",
404+
"environment": "prod",
405+
"version": "1.4.1",
406+
"seqcol": {
407+
"schema": {
408+
"description": "A collection of biological sequences.",
409+
"type": "object",
410+
"$id": "https://example.com/sequence_collection",
411+
"properties": {
412+
"lengths": {
413+
"$ref": "/lengths"
414+
},
415+
"names": {
416+
"$ref": "/names"
417+
},
418+
"sequences": {
419+
"$ref": "/sequences"
420+
}
421+
},
422+
"required": [
423+
"names",
424+
"sequences"
425+
],
426+
"ga4gh": {
427+
"inherent": [
428+
"names",
429+
"sequences"
430+
]
431+
}
432+
}
433+
}
434+
}
435+
```
383436

384437
#### 3.2 Collection
385438

docs/sequences.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ GET /service-info
381381
"name": "Refget server",
382382
"type": {
383383
"group": "org.ga4gh",
384-
"artifact": "refget",
384+
"artifact": "refget-sequence",
385385
"version": "2.0.0"
386386
},
387387
"description": "Reference sequences from checksums",

0 commit comments

Comments
 (0)