| Constructor and Description |
|---|
ScopeAPI() |
| Modifier and Type | Method and Description |
|---|---|
String |
createScope(String json,
org.springframework.ui.ModelMap m) |
String |
deleteScope(Long id,
org.springframework.ui.ModelMap m) |
String |
getAll(org.springframework.ui.ModelMap m) |
String |
getScope(Long id,
org.springframework.ui.ModelMap m) |
String |
updateScope(Long id,
String json,
org.springframework.ui.ModelMap m) |
public static final String URL
public ScopeAPI()
@RequestMapping(value="",
method=GET,
produces="application/json")
public String getAll(org.springframework.ui.ModelMap m)
@RequestMapping(value="/{id}",
method=GET,
produces="application/json")
public String getScope(@PathVariable(value="id")
Long id,
org.springframework.ui.ModelMap m)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/{id}",
method=PUT,
produces="application/json",
consumes="application/json")
public String updateScope(@PathVariable(value="id")
Long id,
@RequestBody
String json,
org.springframework.ui.ModelMap m)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="",
method=POST,
produces="application/json",
consumes="application/json")
public String createScope(@RequestBody
String json,
org.springframework.ui.ModelMap m)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/{id}",
method=DELETE)
public String deleteScope(@PathVariable(value="id")
Long id,
org.springframework.ui.ModelMap m)
Copyright © 2022. All rights reserved.