Skip to content

Commit 61ce34b

Browse files
author
Michael Wenk
authored
Merge pull request #11 from michaelwenk/add-root-response
chore: added root response
2 parents 41ec4b9 + b921688 commit 61ce34b

File tree

1 file changed

+22
-0
lines changed
  • backend/sherlock-core/src/main/java/org/openscience/sherlock/core/controller

1 file changed

+22
-0
lines changed

backend/sherlock-core/src/main/java/org/openscience/sherlock/core/controller/CoreController.java

+22
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,28 @@ public CoreController(final WebClient.Builder webClientBuilder, final ExchangeSt
6969
this.elucidationController = elucidationController;
7070
}
7171

72+
@GetMapping(value = "/", produces = "application/json")
73+
public String root() {
74+
75+
return "Welcome to the Sherlock backend services!"
76+
+ "\n\n"
77+
+ "status: "
78+
+ "OK"
79+
+ "\n"
80+
+ "version: "
81+
+ "1.1.2"
82+
+ "\n"
83+
+ "API documentation: "
84+
+ "postman_link"
85+
+ "\n"
86+
+ "documentation: "
87+
+ "https://docs.nmrxiv.org/sherlock"
88+
+ "\n"
89+
+ "github: "
90+
+ "https://github.com/michaelwenk/sherlock"
91+
+ "\n";
92+
}
93+
7294
@PostMapping(value = "/core", consumes = "application/json", produces = "application/json")
7395
public ResponseEntity<Transfer> core(@RequestBody final Transfer requestTransfer) {
7496
final Transfer responseTransfer = new Transfer();

0 commit comments

Comments
 (0)