Application API
The Application Service is a component at the service layer of the BDK which aims to cover the Applications part of the REST API documentation. More precisely:
- Create application
- Create application with an RSA public key
- Update application
- Update application with an RSA public key
- Delete application
- Get application
- List application entitlements
- Update application entitlements
- List user applications
- Update user applications
- Patch user applications
How to use
The central component for the Application Service is the ApplicationService
class. This class exposes the user-friendly service APIs which serve all the services mentioned above and is accessible from the SymphonyBdk
object by calling the applications()
method:
@Slf4j
public class Example {
public static final String APP_ID = "MY_APP_ID";
public static void main(String[] args) throws Exception {
// Create BDK entry point
final SymphonyBdk bdk = new SymphonyBdk(loadFromClasspath("/config.yaml"));
// Get an application details by id
ApplicationService applications = bdk.applications();
ApplicationDetail applicationDetails = applications.getApplication(APP_ID);
log.info("Application details: " + applicationDetails);
}
}