Interface ApiRegistrationStrategy
- All Known Implementing Classes:
DefaultApiRegistrationStrategy,KymaApiRegistrationStrategy
public interface ApiRegistrationStrategy
Service for exporting/registration webservices specifications
-
Method Summary
Modifier and TypeMethodDescriptionvoidregisterExposedDestination(ExposedDestinationModel destination) Send api specification to register exposed destinationretrieveRegisteredExposedDestinations(DestinationTargetModel destinationTarget) Retrieves all registered exposed destination from target systemvoidunregisterExposedDestination(ExposedDestinationModel destination) Send api specification to unregister exposed destinationvoidunregisterExposedDestinationByTargetId(String targetId, String destinationTargetId) Unregister exposed destination from target system
-
Method Details
-
registerExposedDestination
void registerExposedDestination(ExposedDestinationModel destination) throws ApiRegistrationException Send api specification to register exposed destination- Parameters:
destination-- Throws:
ApiRegistrationException
-
unregisterExposedDestination
void unregisterExposedDestination(ExposedDestinationModel destination) throws ApiRegistrationException Send api specification to unregister exposed destination- Parameters:
destination-- Throws:
ApiRegistrationException
-
retrieveRegisteredExposedDestinations
List<RegisteredDestinationData> retrieveRegisteredExposedDestinations(DestinationTargetModel destinationTarget) throws ApiRegistrationException Retrieves all registered exposed destination from target system- Returns:
- list of destination data
- Throws:
ApiRegistrationException- in case when retrieving destinations fails
-
unregisterExposedDestinationByTargetId
void unregisterExposedDestinationByTargetId(String targetId, String destinationTargetId) throws ApiRegistrationException Unregister exposed destination from target system- Parameters:
targetId- target id of the registered destinationdestinationTargetId- id of the destination target- Throws:
ApiRegistrationException
-