REST API on Springboot for Snipped - A salon booking app.
@PostMapping(value="/faq") public Response insert( @RequestParam String ques, @RequestParam String ans)
@GetMapping(value="/faq") public Response getAllFaqs()
@DeleteMapping(value="faq") public String delete(@RequestParam String id)
@PostMapping(value="/mail/order_placed") public String sendEmail(@RequestParam String email)
@PostMapping(value="/order") public Response insert( @RequestParam String phone, @RequestParam String services, @RequestParam String amount, @RequestParam String address, @RequestParam String date, @RequestParam String time, @RequestParam String appointmentDate, @RequestParam String appointmentTime, @RequestParam String status, @RequestParam String remarks)
@GetMapping(value="/order") public Response getOrderByUser(@RequestParam String phone)
@PostMapping(value = "/send_notification", produces = "application/json") public ResponseEntity send( @RequestParam String topic, @RequestParam String title, @RequestParam String text)
@PostMapping(value="/service/{category}/{subcategory}") public Response insertService(@RequestParam String name, @RequestParam int price, @PathVariable String category, @PathVariable String subcategory, @RequestParam String gender)
@GetMapping(value="/service") public Response getAllServices()
@GetMapping(value="/service/{category}") public Response getServicesByCategory(@PathVariable String category)
@GetMapping(value="/service/id/{idstring}") public Response getServicesById(@PathVariable String idstring)
@GetMapping(value="/get_all_images") public Response getAllImages()
@PostMapping("/user") public boolean insertUser(@RequestParam String email, @RequestParam String name, @RequestParam String phone)
@PostMapping("/user") public boolean insertUser(@RequestParam String email, @RequestParam String name, @RequestParam String phone)
@GetMapping("/user/{phone}") public Response getUserByPhone(@PathVariable String phone)
@GetMapping("/user") public Response getAllUsers()