| Constructor and Description |
|---|
ClientAPI() |
| Modifier and Type | Method and Description |
|---|---|
String |
apiAddClient(String jsonString,
org.springframework.ui.Model m,
org.springframework.security.core.Authentication auth)
Create a new client
|
String |
apiDeleteClient(Long id,
org.springframework.web.servlet.ModelAndView modelAndView)
Delete a client
|
String |
apiGetAllClients(org.springframework.ui.Model model,
org.springframework.security.core.Authentication auth)
Get a list of all clients
|
String |
apiShowClient(Long id,
org.springframework.ui.Model model,
org.springframework.security.core.Authentication auth)
Get an individual client
|
String |
apiUpdateClient(Long id,
String jsonString,
org.springframework.ui.Model m,
org.springframework.security.core.Authentication auth)
Update an existing client
|
org.springframework.http.ResponseEntity<byte[]> |
getClientLogo(Long id,
org.springframework.ui.Model model)
Get the logo image for a client
|
public static final String URL
public ClientAPI()
@RequestMapping(method=GET,
produces="application/json")
public String apiGetAllClients(org.springframework.ui.Model model,
org.springframework.security.core.Authentication auth)
modelAndView - @PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(method=POST,
consumes="application/json",
produces="application/json")
public String apiAddClient(@RequestBody
String jsonString,
org.springframework.ui.Model m,
org.springframework.security.core.Authentication auth)
json - m - principal - @PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/{id}",
method=PUT,
consumes="application/json",
produces="application/json")
public String apiUpdateClient(@PathVariable(value="id")
Long id,
@RequestBody
String jsonString,
org.springframework.ui.Model m,
org.springframework.security.core.Authentication auth)
id - jsonString - m - principal - @PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/{id}",
method=DELETE)
public String apiDeleteClient(@PathVariable(value="id")
Long id,
org.springframework.web.servlet.ModelAndView modelAndView)
id - modelAndView - @RequestMapping(value="/{id}",
method=GET,
produces="application/json")
public String apiShowClient(@PathVariable(value="id")
Long id,
org.springframework.ui.Model model,
org.springframework.security.core.Authentication auth)
id - modelAndView - @RequestMapping(value="/{id}/logo",
method=GET,
produces={"image/gif","image/jpeg","image/png"})
public org.springframework.http.ResponseEntity<byte[]> getClientLogo(@PathVariable(value="id")
Long id,
org.springframework.ui.Model model)
id - Copyright © 2018. All rights reserved.