Skip to content

Commit

Permalink
update rest api path
Browse files Browse the repository at this point in the history
  • Loading branch information
nitin-ebi committed Feb 12, 2024
1 parent b61f196 commit 92d1099
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public ResponseEntity<String> retrieveAndInsertMd5ChecksumForAssembly(
}

@ApiOperation(value = "Given an assembly accession, retrieve ENA sequence name for all chromosomes belonging to assembly and update")
@PutMapping(value = "assemblies/enaSequenceName/{accession}")
@PutMapping(value = "assemblies/ena-sequence-name/{accession}")
public ResponseEntity<String> retrieveAndInsertENASequenceNameForAssembly(@PathVariable(name = "accession")
@ApiParam(value = "INSDC or RefSeq assembly accession. " +
"Eg: GCA_000001405.10") String asmAccession) {
Expand All @@ -144,7 +144,7 @@ public ResponseEntity<String> retrieveAndInsertENASequenceNameForAssembly(@PathV
}

@ApiOperation(value = "Given a list of assembly accessions, retrieve ENA sequence name for all chromosomes belonging to all the assemblies and update")
@PutMapping(value = "assemblies/enaSequenceName")
@PutMapping(value = "assemblies/ena-sequence-name")
public ResponseEntity<String> retrieveAndInsertENASequenceNameForAssembly(
@RequestBody @ApiParam(value = "A JSON array of INSDC or RefSeq assembly accessions. " +
"Eg: [\"GCA_000001405.10\",\"GCA_000001405.11\",\"GCA_000001405.12\"]") List<String> accessions) {
Expand All @@ -157,7 +157,7 @@ public ResponseEntity<String> retrieveAndInsertENASequenceNameForAssembly(


@ApiOperation(value = "Retrieve list of assemblies for which MD5 Checksum updates are running/going-to-run ")
@GetMapping(value = "assemblies/scheduledJobs")
@GetMapping(value = "assemblies/scheduled-jobs")
public ResponseEntity<List<String>> getMD5ChecksumUpdateTaskStatus() {
List<String> scheduledJobStatus = handler.getScheduledJobStatus();
return ResponseEntity.ok(scheduledJobStatus);
Expand Down

0 comments on commit 92d1099

Please sign in to comment.