I am new to keycloak and i am going through with the quickstart at the Link:
https://github.com/keycloak/keycloak-quickstarts/tree/latest/app-authz-rest-employee
Purpose:
- The project merely expose one Rest-API:
@RestController
public class ApplicationController {
@RequestMapping(value = "/api/{employee}", method = RequestMethod.GET)
public Employee salary(@PathVariable String employee) {
return new Employee(employee);
}
public static class Employee {
private final String name;
public Employee(String name) {
this.name = name;
}
public String getName() {
return name;
}
}
}