IlluzionzDev / typespec

MIT License
0 stars 0 forks source link

Create Spring RouteHandler Component #4

Closed IlluzionzDev closed 1 month ago

IlluzionzDev commented 2 months ago

Create a component under java-spring named RouteHandler. This component should define a method used to handle a route.

A normal route method may look something like this

@GetMapping("/title/{bookTitle}")
public List findByTitle(@PathVariable String bookTitle) {
    return bookRepository.findByTitle(bookTitle);
}

It will need to take arguments such as the route type (GET, POST etc), the route name itself /title/{bookTitle}, defined that arguments it takes in to the method. Should just pass children to the body of the function.

IlluzionzDev commented 1 month ago

Work is being continued in #7