@RestController public class AppmarketMigrationController extends Object
| Constructor and Description |
|---|
AppmarketMigrationController() |
| Modifier and Type | Method and Description |
|---|---|
Callable<APIResult> |
migrate(Subscription subscription)
Migrate a subscription which is already validated by
validateISVSubscription(Map) |
Callable<APIResult> |
validateISVCustomerAccount(Map<String,String> isvCustomerAccountData)
Validate a customer account record that need to be migrated.
|
Callable<APIResult> |
validateISVSubscription(Map<String,String> isvSubscriptionData)
Validate a subscription record that need to be migrated.
|
@RequestMapping(method=POST,
value={"/api/v1/migration/validateCustomerAccount","/api/v2/migration/validateCustomerAccount"},
produces="application/json",
consumes="application/json")
public Callable<APIResult> validateISVCustomerAccount(@RequestBody
Map<String,String> isvCustomerAccountData)
isvCustomerAccountData - A single migration record that is to be validatedAPIResult.success(String) in case the validation is successful and a APIResult.failure(ErrorCode, String)
otherwise.@RequestMapping(method=POST,
value={"/api/v1/migration/validateSubscription","/api/v2/migration/validateSubscription"},
produces="application/json",
consumes="application/json")
public Callable<APIResult> validateISVSubscription(@RequestBody
Map<String,String> isvSubscriptionData)
isvSubscriptionData - the subscription record to be migratedAPIResult.success(String) in case the validation is successful and a APIResult.failure(ErrorCode, String)
otherwise.@RequestMapping(method=POST,
value={"/api/v1/migration/subscription","/api/v2/migration/subscription"},
produces="application/json",
consumes="application/json")
public Callable<APIResult> migrate(@RequestBody
Subscription subscription)
validateISVSubscription(Map)subscription - the subscription record to be migratedAPIResult.success(String) in case the migration is successful and a APIResult.failure(ErrorCode, String)Copyright © 2021 Pivotal Software, Inc.. All rights reserved.