@Controller @RequestMapping(value="/api/approved") @PreAuthorize(value="hasRole(\'ROLE_USER\')") public class ApprovedSiteAPI extends Object
Constructor and Description |
---|
ApprovedSiteAPI() |
Modifier and Type | Method and Description |
---|---|
String |
deleteApprovedSite(Long id,
org.springframework.ui.ModelMap m,
Principal p)
Delete an approved site
|
String |
getAllApprovedSites(org.springframework.ui.ModelMap m,
Principal p)
Get a list of all of this user's approved sites
|
String |
getApprovedSite(Long id,
org.springframework.ui.ModelMap m,
Principal p)
Get a single approved site
|
public static final String URL
public ApprovedSiteAPI()
@RequestMapping(method=GET, produces="application/json") public String getAllApprovedSites(org.springframework.ui.ModelMap m, Principal p)
m
- @RequestMapping(value="/{id}", method=DELETE) public String deleteApprovedSite(@PathVariable(value="id") Long id, org.springframework.ui.ModelMap m, Principal p)
@RequestMapping(value="/{id}", method=GET, produces="application/json") public String getApprovedSite(@PathVariable(value="id") Long id, org.springframework.ui.ModelMap m, Principal p)
Copyright © 2018. All rights reserved.