-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from waterflow80/service-info
Implemented the service-info endpoint
- Loading branch information
Showing
8 changed files
with
147 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/main/java/uk/ac/ebi/eva/evaseqcol/exception/UnableToLoadServiceInfoException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package uk.ac.ebi.eva.evaseqcol.exception; | ||
|
||
public class UnableToLoadServiceInfoException extends RuntimeException { | ||
|
||
public UnableToLoadServiceInfoException(String serviceInfoFilePath) { | ||
super("Unable to load service-info file: " + serviceInfoFilePath); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ [email protected]@ | |
config.scaffolds.enabled = @contig-alias.scaffolds-enabled@ | ||
|
||
asm.file.download.dir=/tmp | ||
service.info.file.path=src/main/resources/static/service-info.json | ||
|
||
# remove spring data browsing endpoints (https://docs.spring.io/spring-data/rest/docs/3.3.x/reference/html/#getting-started.setting-repository-detection-strategy) | ||
spring.data.rest.detection-strategy=annotated | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"id": "uk.ebi.eva.eva-seqcol", | ||
"name": "Implementation of the GA4GH Sequence collection retrieval API", | ||
"type": { | ||
"group": "org.ga4gh", | ||
"artifact": "seqcol", | ||
"version": "1.0.0" | ||
}, | ||
"organization": { | ||
"name": "European Variation Archive", | ||
"url": "https://www.ebi.ac.uk/eva" | ||
}, | ||
"contactUrl": "mailto:[email protected]", | ||
"documentationUrl": "https://www.ebi.ac.uk/eva/....", | ||
"updatedAt": "08-24-2023", | ||
"environment": "dev", | ||
"version": "1.0.0", | ||
"seqcol": { | ||
"schema": { | ||
"description": "A collection of sequences, representing biological sequences including nucleotide or amino acid sequences. For example, a sequence collection may represent the set of chromosomes in a reference genome, the set of transcripts in a transcriptome, a collection of reference microbial sequences of a specific gene, or any other set of sequences.", | ||
"type": "object", | ||
"properties":{ | ||
"lengths":{ | ||
"type": "array", | ||
"description": "Number of elements, such as nucleotides or amino acids, in each sequence.", | ||
"collated": "true", | ||
"items":{ | ||
"type": "string" | ||
} | ||
}, | ||
"names":{ | ||
"type": "array", | ||
"description": "Human-readable identifiers of each sequence, commonly called chromosome names.", | ||
"collated": "true", | ||
"items":{ | ||
"type": "string" | ||
} | ||
}, | ||
"sequences":{ | ||
"type": "array", | ||
"description": "Digests of sequences computed using the GA4GH digest algorithm (sha512t24u).", | ||
"collated": "true", | ||
"items":{ | ||
"type": "string" | ||
} | ||
}, | ||
"md5-sequences":{ | ||
"type": "array", | ||
"description": "Digests of sequences computed using md5 digest algorithm.", | ||
"collated": "true", | ||
"items":{ | ||
"type": "string" | ||
} | ||
}, | ||
"sorted-name-length-pairs":{ | ||
"type": "array", | ||
"description": "Objects composed of length and name of a sequence digested and ordered lexicographically", | ||
"collated": "false", | ||
"items":{ | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"names", | ||
"lengths", | ||
"sequences" | ||
], | ||
"inherent":[ | ||
"names", | ||
"lengths", | ||
"sequences" | ||
] | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters