@RestController public class OrgsController extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
GENERAL_ORGS_URL |
| Constructor and Description |
|---|
OrgsController(UserDetailsFinder detailsFinder,
OrgResourceMock orgResourceMock) |
| Modifier and Type | Method and Description |
|---|---|
UUID |
createOrg(OrgNameRequest request) |
void |
deleteOrg(String org) |
Collection<Org> |
getOrgs(org.springframework.security.core.Authentication auth) |
void |
renameOrg(OrgNameRequest request,
String org) |
public static final String GENERAL_ORGS_URL
@Autowired public OrgsController(UserDetailsFinder detailsFinder, OrgResourceMock orgResourceMock)
@RequestMapping(value="/rest/orgs",
method=GET,
produces="application/json")
public Collection<Org> getOrgs(org.springframework.security.core.Authentication auth)
@RequestMapping(value="/rest/orgs/{org}/name",
method=PUT,
consumes="application/json")
public void renameOrg(@RequestBody
OrgNameRequest request,
@PathVariable
String org)
@RequestMapping(value="/rest/orgs/{org}",
method=DELETE)
public void deleteOrg(@PathVariable
String org)
@RequestMapping(value="/rest/orgs",
method=POST,
consumes="application/json")
public UUID createOrg(@RequestBody
OrgNameRequest request)
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.