pass a list of string as PathVariable to api spring boot

@RestController
@RequestMapping("/api")
public class YourController {

    @GetMapping("/example/{strings}")
    public ResponseEntity<String> handleRequest(@PathVariable List<String> strings) {
        // Your logic here
        // ...
        return ResponseEntity.ok("Request processed successfully");
    }
}