Interface APIManagerInterface
- All Known Implementing Classes:
APIManagerClient
public interface APIManagerInterface
APIManagerInterface defines the client side interface for the Data Manager OMAS that is
relevant for API assets that provide call-based services. It provides the ability to
define and maintain the metadata about an API and the
APIOperations that define the operations and parameters of the API.
-
Method Summary
Modifier and TypeMethodDescriptioncreateAPI
(String userId, String apiManagerGUID, String apiManagerName, boolean apiManagerIsHome, String endpointGUID, APIProperties apiProperties) Create a new metadata element to represent an API.createAPIFromTemplate
(String userId, String apiManagerGUID, String apiManagerName, boolean apiManagerIsHome, String endpointGUID, String templateGUID, TemplateProperties templateProperties) Create a new metadata element to represent an API using an existing metadata element as a template.createAPIOperation
(String userId, String apiManagerGUID, String apiManagerName, String apiGUID, APIOperationProperties properties) Create a new metadata element to represent an API Operation.createAPIOperationFromTemplate
(String userId, String apiManagerGUID, String apiManagerName, String templateGUID, String apiGUID, TemplateProperties templateProperties) Create a new metadata element to represent a an API Operation using an existing API Operation as a template.createAPIParameterList
(String userId, String apiManagerGUID, String apiManagerName, String apiOperationGUID, APIParameterListType parameterListType, APIParameterListProperties properties) Create a new metadata element to represent an API Operation's Parameter list.createAPIParameterListFromTemplate
(String userId, String apiManagerGUID, String apiManagerName, String templateGUID, String apiOperationGUID, APIParameterListType parameterListType, TemplateProperties templateProperties) Create a new metadata element to represent a an API Parameter List using an existing API Parameter List as a template.findAPIOperations
(String userId, String searchString, int startFrom, int pageSize) Retrieve the list of API Operations metadata elements that contain the search string.findAPIParameterLists
(String userId, String searchString, int startFrom, int pageSize) Retrieve the list of API Parameter List metadata elements that contain the search string.Retrieve the list of API metadata elements that contain the search string.getAPIByGUID
(String userId, String guid) Retrieve the API metadata element with the supplied unique identifier.getAPIOperationByGUID
(String userId, String guid) Retrieve the API Operation metadata element with the supplied unique identifier.getAPIOperationsByName
(String userId, String name, int startFrom, int pageSize) Retrieve the list of API Operations metadata elements with a matching qualified or display name.getAPIParameterListByGUID
(String userId, String guid) Retrieve the API Parameter List metadata element with the supplied unique identifier.getAPIParameterListsByName
(String userId, String name, int startFrom, int pageSize) Retrieve the list of API Parameter List metadata elements with a matching qualified or display name.getAPIsByName
(String userId, String name, int startFrom, int pageSize) Retrieve the list of API metadata elements with a matching qualified or display name.getAPIsForAPIManager
(String userId, String apiManagerGUID, String apiManagerName, int startFrom, int pageSize) Retrieve the list of APIs created by this caller.getAPIsForEndpoint
(String userId, String endpointGUID, int startFrom, int pageSize) Retrieve the list of APIs connected to the requested endpoint.getOperationsForAPI
(String userId, String apiGUID, int startFrom, int pageSize) Return the list of API Parameter Lists associated with an API Operation.getParameterListsForAPIOperation
(String userId, String apiOperationGUID, int startFrom, int pageSize) Return the list of API Parameter Lists associated with an API Operation.void
publishAPI
(String userId, String apiGUID) Update the zones for the API asset so that it becomes visible to consumers.void
removeAPI
(String userId, String apiManagerGUID, String apiManagerName, String apiGUID, String qualifiedName) Remove the metadata element representing an API.void
removeAPIOperation
(String userId, String apiManagerGUID, String apiManagerName, String apiOperationGUID, String qualifiedName) Remove an API Operation.void
removeAPIParameterList
(String userId, String apiManagerGUID, String apiManagerName, String apiParameterListGUID, String qualifiedName) Remove an API Parameter List and all of its parameters.void
updateAPI
(String userId, String apiManagerGUID, String apiManagerName, String apiGUID, boolean isMergeUpdate, APIProperties apiProperties) Update the metadata element representing an API.void
updateAPIOperation
(String userId, String apiManagerGUID, String apiManagerName, String apiOperationGUID, boolean isMergeUpdate, APIOperationProperties properties) Update the metadata element representing an API Operation.void
updateAPIParameterList
(String userId, String apiManagerGUID, String apiManagerName, String apiParameterListGUID, boolean isMergeUpdate, APIParameterListProperties properties) Update the metadata element representing an API ParameterList.void
withdrawAPI
(String userId, String apiGUID) Update the zones for the API asset so that it is no longer visible to consumers.
-
Method Details
-
createAPI
String createAPI(String userId, String apiManagerGUID, String apiManagerName, boolean apiManagerIsHome, String endpointGUID, APIProperties apiProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent an API.- Parameters:
userId
- calling userapiManagerGUID
- unique identifier of software server capability representing the callerapiManagerName
- unique name of software server capability representing the callerapiManagerIsHome
- should the API be marked as owned by the API manager so others can not update?endpointGUID
- unique identifier of the endpoint where this API is locatedapiProperties
- properties to store- Returns:
- unique identifier of the new metadata element
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
createAPIFromTemplate
String createAPIFromTemplate(String userId, String apiManagerGUID, String apiManagerName, boolean apiManagerIsHome, String endpointGUID, String templateGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent an API using an existing metadata element as a template.- Parameters:
userId
- calling userapiManagerGUID
- unique identifier of software server capability representing the callerapiManagerName
- unique name of software server capability representing the callerapiManagerIsHome
- should the API be marked as owned by the API manager so others can not update?endpointGUID
- unique identifier of the endpoint where this API is locatedtemplateGUID
- unique identifier of the metadata element to copytemplateProperties
- properties that override the template- Returns:
- unique identifier of the new metadata element
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
updateAPI
void updateAPI(String userId, String apiManagerGUID, String apiManagerName, String apiGUID, boolean isMergeUpdate, APIProperties apiProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the metadata element representing an API.- Parameters:
userId
- calling userapiManagerGUID
- unique identifier of software server capability representing the callerapiManagerName
- unique name of software server capability representing the callerapiGUID
- unique identifier of the metadata element to updateisMergeUpdate
- are unspecified properties unchanged (true) or removed?apiProperties
- new properties for this element- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
publishAPI
void publishAPI(String userId, String apiGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the zones for the API asset so that it becomes visible to consumers. (The zones are set to the list of zones in the publishedZones option configured for each instance of the Data Manager OMAS).- Parameters:
userId
- calling userapiGUID
- unique identifier of the metadata element to publish- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
withdrawAPI
void withdrawAPI(String userId, String apiGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the zones for the API asset so that it is no longer visible to consumers. (The zones are set to the list of zones in the defaultZones option configured for each instance of the Data Manager OMAS. This is the setting when the API is first created).- Parameters:
userId
- calling userapiGUID
- unique identifier of the metadata element to withdraw- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
removeAPI
void removeAPI(String userId, String apiManagerGUID, String apiManagerName, String apiGUID, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the metadata element representing an API.- Parameters:
userId
- calling userapiManagerGUID
- unique identifier of software server capability representing the callerapiManagerName
- unique name of software server capability representing the callerapiGUID
- unique identifier of the metadata element to removequalifiedName
- unique name of the metadata element to remove- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
findAPIs
List<APIElement> findAPIs(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of API metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
userId
- calling usersearchString
- string to find in the propertiesstartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
getAPIsByName
List<APIElement> getAPIsByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of API metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
userId
- calling username
- name to search forstartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
getAPIsForAPIManager
List<APIElement> getAPIsForAPIManager(String userId, String apiManagerGUID, String apiManagerName, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of APIs created by this caller.- Parameters:
userId
- calling userapiManagerGUID
- unique identifier of software server capability representing the API manager (API manager)apiManagerName
- unique name of software server capability representing the API manager (API manager)startFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
getAPIsForEndpoint
List<APIElement> getAPIsForEndpoint(String userId, String endpointGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of APIs connected to the requested endpoint.- Parameters:
userId
- calling userendpointGUID
- unique identifier of the endpointstartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
getAPIByGUID
APIElement getAPIByGUID(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the API metadata element with the supplied unique identifier.- Parameters:
userId
- calling userguid
- unique identifier of the requested metadata element- Returns:
- matching metadata element
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
createAPIOperation
String createAPIOperation(String userId, String apiManagerGUID, String apiManagerName, String apiGUID, APIOperationProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent an API Operation. This describes the structure of an operation supported by the API. The structure of this API Operation is added using API Parameter Lists. These parameter lists can have a simple type or a nested structure.- Parameters:
userId
- calling userapiManagerGUID
- unique identifier of software server capability representing the callerapiManagerName
- unique name of software server capability representing the callerapiGUID
- unique identifier of an APIproperties
- properties about the API Operation- Returns:
- unique identifier of the new API Operation
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
createAPIOperationFromTemplate
String createAPIOperationFromTemplate(String userId, String apiManagerGUID, String apiManagerName, String templateGUID, String apiGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a an API Operation using an existing API Operation as a template.- Parameters:
userId
- calling userapiManagerGUID
- unique identifier of software server capability representing the callerapiManagerName
- unique name of software server capability representing the callertemplateGUID
- unique identifier of the metadata element to copyapiGUID
- unique identifier of the API where the API Operation is locatedtemplateProperties
- properties that override the template- Returns:
- unique identifier of the new API Operation
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
updateAPIOperation
void updateAPIOperation(String userId, String apiManagerGUID, String apiManagerName, String apiOperationGUID, boolean isMergeUpdate, APIOperationProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the metadata element representing an API Operation.- Parameters:
userId
- calling userapiManagerGUID
- unique identifier of software server capability representing the callerapiManagerName
- unique name of software server capability representing the callerapiOperationGUID
- unique identifier of the metadata element to updateisMergeUpdate
- are unspecified properties unchanged (true) or removed?properties
- new properties for the metadata element- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
removeAPIOperation
void removeAPIOperation(String userId, String apiManagerGUID, String apiManagerName, String apiOperationGUID, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove an API Operation.- Parameters:
userId
- calling userapiManagerGUID
- unique identifier of software server capability representing the callerapiManagerName
- unique name of software server capability representing the callerapiOperationGUID
- unique identifier of the metadata element to removequalifiedName
- unique name of the metadata element to remove- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
findAPIOperations
List<APIOperationElement> findAPIOperations(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of API Operations metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
userId
- calling usersearchString
- string to find in the propertiesstartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
getOperationsForAPI
List<APIOperationElement> getOperationsForAPI(String userId, String apiGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return the list of API Parameter Lists associated with an API Operation.- Parameters:
userId
- calling userapiGUID
- unique identifier of the API to querystartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of metadata elements describing the API Parameter Lists associated with the requested API Operation
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
getAPIOperationsByName
List<APIOperationElement> getAPIOperationsByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of API Operations metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
userId
- calling username
- name to search forstartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
getAPIOperationByGUID
APIOperationElement getAPIOperationByGUID(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the API Operation metadata element with the supplied unique identifier.- Parameters:
userId
- calling userguid
- unique identifier of the requested metadata element- Returns:
- requested metadata element
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
createAPIParameterList
String createAPIParameterList(String userId, String apiManagerGUID, String apiManagerName, String apiOperationGUID, APIParameterListType parameterListType, APIParameterListProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent an API Operation's Parameter list. This describes the structure of the payload supported by the API's operation. The structure of this API Operation is added using API Parameter schema attributes. These parameters can have a simple type or a nested structure.- Parameters:
userId
- calling userapiManagerGUID
- unique identifier of software server capability representing the callerapiManagerName
- unique name of software server capability representing the callerapiOperationGUID
- unique identifier of an APIOperationparameterListType
- is this a header, request or responseproperties
- properties about the API parameter list- Returns:
- unique identifier of the new API parameter list
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
createAPIParameterListFromTemplate
String createAPIParameterListFromTemplate(String userId, String apiManagerGUID, String apiManagerName, String templateGUID, String apiOperationGUID, APIParameterListType parameterListType, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a an API Parameter List using an existing API Parameter List as a template.- Parameters:
userId
- calling userapiManagerGUID
- unique identifier of software server capability representing the callerapiManagerName
- unique name of software server capability representing the callertemplateGUID
- unique identifier of the metadata element to copyapiOperationGUID
- unique identifier of the API where the API Operation is locatedparameterListType
- is this a header, request or responsetemplateProperties
- properties that override the template- Returns:
- unique identifier of the new API Parameter List
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
updateAPIParameterList
void updateAPIParameterList(String userId, String apiManagerGUID, String apiManagerName, String apiParameterListGUID, boolean isMergeUpdate, APIParameterListProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the metadata element representing an API ParameterList.- Parameters:
userId
- calling userapiManagerGUID
- unique identifier of software server capability representing the callerapiManagerName
- unique name of software server capability representing the callerapiParameterListGUID
- unique identifier of the metadata element to updateisMergeUpdate
- are unspecified properties unchanged (true) or removed?properties
- new properties for the metadata element- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
removeAPIParameterList
void removeAPIParameterList(String userId, String apiManagerGUID, String apiManagerName, String apiParameterListGUID, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove an API Parameter List and all of its parameters.- Parameters:
userId
- calling userapiManagerGUID
- unique identifier of software server capability representing the callerapiManagerName
- unique name of software server capability representing the callerapiParameterListGUID
- unique identifier of the metadata element to removequalifiedName
- unique name of the metadata element to remove- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
findAPIParameterLists
List<APIParameterListElement> findAPIParameterLists(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of API Parameter List metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
userId
- calling usersearchString
- string to find in the propertiesstartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
getParameterListsForAPIOperation
List<APIParameterListElement> getParameterListsForAPIOperation(String userId, String apiOperationGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return the list of API Parameter Lists associated with an API Operation.- Parameters:
userId
- calling userapiOperationGUID
- unique identifier of the API Operation to querystartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of metadata elements describing the API Parameter Lists associated with the requested API Operation
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
getAPIParameterListsByName
List<APIParameterListElement> getAPIParameterListsByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of API Parameter List metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
userId
- calling username
- name to search forstartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
getAPIParameterListByGUID
APIParameterListElement getAPIParameterListByGUID(String userId, String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the API Parameter List metadata element with the supplied unique identifier.- Parameters:
userId
- calling userguid
- unique identifier of the requested metadata element- Returns:
- requested metadata element
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-