PAN-52 Fixed issue with the Theorems API
This commit is contained in:
+2
-2
@@ -107,7 +107,7 @@ public class TheoremController {
|
|||||||
|
|
||||||
@GetMapping("/name")
|
@GetMapping("/name")
|
||||||
public @ResponseBody
|
public @ResponseBody
|
||||||
ResponseEntity<List<Theorem>> getAllTheoremsByName(@PathVariable("name") final String name) {
|
ResponseEntity<List<Theorem>> getAllTheoremsByName(@RequestParam("name") final String name) {
|
||||||
LOG.info("Received request to query for theorems whose name is {}", name);
|
LOG.info("Received request to query for theorems whose name is {}", name);
|
||||||
if (name == null) {
|
if (name == null) {
|
||||||
LOG.error("ERROR: name was null");
|
LOG.error("ERROR: name was null");
|
||||||
@@ -137,7 +137,7 @@ public class TheoremController {
|
|||||||
|
|
||||||
@GetMapping("/id")
|
@GetMapping("/id")
|
||||||
public @ResponseBody
|
public @ResponseBody
|
||||||
ResponseEntity<Theorem> getTheoremById(@PathVariable("id") final Integer id) {
|
ResponseEntity<Theorem> getTheoremById(@RequestParam("id") final Integer id) {
|
||||||
LOG.info("Received request to query for theorem with id {}", id);
|
LOG.info("Received request to query for theorem with id {}", id);
|
||||||
if (id == null) {
|
if (id == null) {
|
||||||
LOG.error("ERROR: ID was null");
|
LOG.error("ERROR: ID was null");
|
||||||
|
|||||||
Reference in New Issue
Block a user