Skip to content
Snippets Groups Projects
Commit 217669bc authored by John Watkins's avatar John Watkins
Browse files

Added rest controller route to search for shops

parent 238a4a7c
Branches
No related tags found
3 merge requests!114LoggingService service class, new method to add a log to the "Logs" table when...,!106Branch Update,!105Issue thirty
package com.example.clientproject.web.restControllers;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RestController
public class ShopSearch {
@GetMapping("/shop/search")
public String searchShops(@RequestParam(value = "q", required = false) String query,
@RequestParam(value = "p", required = false) Integer page,
@RequestParam(value = "t", required = false) List<Integer> tags){
System.out.println(tags);
System.out.println(query);
System.out.println(page);
return "here";
}
}
src/main/resources/static/imgs/uploaded/02b3324f_113c_4c98_8ad6_7f1cf28f74c9.jpg

6.35 KiB

src/main/resources/static/imgs/uploaded/1eab1fb2_7744_4eb6_9505_8a1e9b59981b.jpg

6.35 KiB

src/main/resources/static/imgs/uploaded/7615374a_c54e_4854_ad96_14b719c5af9c.jpg

6.35 KiB

src/main/resources/static/imgs/uploaded/8d96f724_c612_4da0_9ab0_26a0ea2ad161.jpg

6.35 KiB

......@@ -75,7 +75,7 @@
</div>
</div>
<div th:if="${@loadSocials.getSocial(socials, 'facebook' != '')}" class="control">
<div th:if="${@loadSocials.getSocial(socials, 'facebook') != ''}" class="control">
<div class="tags has-addons">
<span class="tag is-large is-grey">
<span class="icon-text">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment