Skip to content

Commit

Permalink
Merge pull request #77 from waterflow80/update-swagger-page
Browse files Browse the repository at this point in the history
updated the swagger page's endpoints' names to more meaningful names
  • Loading branch information
waterflow80 authored Jan 29, 2024
2 parents 1fa020c + eef729a commit a2387cf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.responses.ApiResponses;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
Expand All @@ -24,6 +25,7 @@

@RequestMapping("/admin")
@RestController
@Tag(name = "Admin endpoints")
public class AdminController {

private SeqColService seqColService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.responses.ApiResponses;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
Expand All @@ -23,6 +24,7 @@

@RestController
@RequestMapping("/comparison")
@Tag(name = "Seqcol endpoints")
public class SeqColComparisonController {

private SeqColService seqColService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.responses.ApiResponses;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
Expand All @@ -25,6 +26,7 @@

@RestController
@RequestMapping("/")
@Tag(name = "Seqcol endpoints")
public class SeqColController {

private SeqColService seqColService;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ springdoc.swagger-ui.path=/seqcol-documentation
springdoc.api-docs.path=/seqcol-api-docs

springdoc.packages-to-scan=uk.ac.ebi.eva.evaseqcol.controller
springdoc.swagger-ui.operationsSorter=method
springdoc.swagger-ui.operationsSorter=alpha
springdoc.swagger-ui.tagsSorter=alpha

0 comments on commit a2387cf

Please sign in to comment.