Skip to content

Commit

Permalink
Merge pull request wso2#11006 from tharindu1st/test-fix
Browse files Browse the repository at this point in the history
modify test cases to remove endpointSecurityDTO
  • Loading branch information
tharindu1st authored Apr 15, 2021
2 parents d441b0a + 5e22eaa commit af68407
Show file tree
Hide file tree
Showing 256 changed files with 2,692 additions and 7,568 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
aeac79f59eac2ab16468e051b6367e63ed9c1b0cb9bee08e25d6f22bb2579c91
629d75bf7ecb7ed51ea5e89462cb418c6ed19cc46f40fe4bc207f534bca4bba2
2,281 changes: 700 additions & 1,581 deletions modules/integration/tests-common/clients/publisher/api/openapi.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ Name | Type | Description | Notes
**visibility** | [**VisibilityEnum**](#VisibilityEnum) | The visibility level of the API. Accepts one of the following. PUBLIC, PRIVATE, RESTRICTED. | [optional]
**visibleRoles** | **List<String>** | The user roles that are able to access the API in Developer Portal | [optional]
**visibleTenants** | **List<String>** | | [optional]
**endpointSecurity** | [**APIEndpointSecurityDTO**](APIEndpointSecurityDTO.md) | | [optional]
**gatewayEnvironments** | **List<String>** | List of gateway environments the API is available | [optional]
**deploymentEnvironments** | [**List<DeploymentEnvironmentsDTO>**](DeploymentEnvironmentsDTO.md) | List of selected deployment environments and clusters | [optional]
**labels** | **List<String>** | Labels of micro-gateway environments attached to the API. | [optional]
**mediationPolicies** | [**List<MediationPolicyDTO>**](MediationPolicyDTO.md) | | [optional]
**subscriptionAvailability** | [**SubscriptionAvailabilityEnum**](#SubscriptionAvailabilityEnum) | The subscription availability. Accepts one of the following. CURRENT_TENANT, ALL_TENANTS or SPECIFIC_TENANTS. | [optional]
**subscriptionAvailableTenants** | **List<String>** | | [optional]
Expand All @@ -62,6 +59,7 @@ Name | Type | Description | Notes
**categories** | **List<String>** | API categories | [optional]
**keyManagers** | [**Object**](.md) | API Key Managers | [optional] [readonly]
**serviceInfo** | [**APIServiceInfoDTO**](APIServiceInfoDTO.md) | | [optional]
**advertiseInfo** | [**AdvertiseInfoDTO**](AdvertiseInfoDTO.md) | | [optional]



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ Name | Type | Description | Notes
**workflowStatus** | **String** | | [optional]
**hasThumbnail** | **Boolean** | | [optional]
**securityScheme** | **List<String>** | | [optional]
**websubSubscriptionConfiguration** | [**APIInfoWebsubSubscriptionConfigurationDTO**](APIInfoWebsubSubscriptionConfigurationDTO.md) | | [optional]
**createdTime** | **String** | | [optional]
**updatedTime** | **String** | | [optional]



Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**displayName** | **String** | | [optional]
**id** | **String** | | [optional]
**displayName** | **String** | | [optional] [readonly]
**id** | **String** | | [optional] [readonly]
**description** | **String** | | [optional]
**createdTime** | **String** | | [optional]
**createdTime** | [**Date**](Date.md) | | [optional] [readonly]
**apiInfo** | [**APIRevisionAPIInfoDTO**](APIRevisionAPIInfoDTO.md) | | [optional]
**deploymentInfo** | [**List<APIRevisionDeploymentDTO>**](APIRevisionDeploymentDTO.md) | | [optional]
**deploymentInfo** | [**List<APIRevisionDeploymentDTO>**](APIRevisionDeploymentDTO.md) | | [optional] [readonly]



Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Name | Type | Description | Notes
**name** | **String** | | [optional]
**vhost** | **String** | | [optional]
**displayOnDevportal** | **Boolean** | | [optional]
**deployedTime** | **String** | | [optional]
**deployedTime** | [**Date**](Date.md) | | [optional] [readonly]



Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@


# AdvertiseInfoDTO

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**advertised** | **Boolean** | | [optional]
**originalDevPortalUrl** | **String** | | [optional]
**apiOwner** | **String** | | [optional]



Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Method | HTTP request | Description
[**getWSDLInfoOfAPI**](ApIsApi.md#getWSDLInfoOfAPI) | **GET** /apis/{apiId}/wsdl-info | Get WSDL Meta Information
[**getWSDLOfAPI**](ApIsApi.md#getWSDLOfAPI) | **GET** /apis/{apiId}/wsdl | Get WSDL definition
[**importAsyncAPISpecification**](ApIsApi.md#importAsyncAPISpecification) | **POST** /apis/import-asyncapi | import an AsyncAPI Specification
[**importGraphQLSchema**](ApIsApi.md#importGraphQLSchema) | **POST** /apis/import-graphql-schema | Import API Definition
[**importGraphQLSchema**](ApIsApi.md#importGraphQLSchema) | **POST** /apis/import-graphql-schema | Import a GraphQL SDL
[**importOpenAPIDefinition**](ApIsApi.md#importOpenAPIDefinition) | **POST** /apis/import-openapi | Import an OpenAPI Definition
[**importServiceFromCatalog**](ApIsApi.md#importServiceFromCatalog) | **POST** /apis/import-service | Import a Service from Service Catalog
[**importWSDLDefinition**](ApIsApi.md#importWSDLDefinition) | **POST** /apis/import-wsdl | Import a WSDL Definition
Expand Down Expand Up @@ -941,7 +941,7 @@ public class Example {
Integer limit = 25; // Integer | Maximum size of resource array to return.
Integer offset = 0; // Integer | Starting point within the complete list of items qualified.
String xWSO2Tenant = "xWSO2Tenant_example"; // String | For cross-tenant invocations, this is used to specify the tenant domain, where the resource need to be retirieved from.
String query = "query_example"; // String | **Search condition**. You can search in attributes by using an **\"<attribute>:\"** modifier. Eg. \"provider:wso2\" will match an API if the provider of the API contains \"wso2\". \"provider:\"wso2\"\" will match an API if the provider of the API is exactly \"wso2\". \"status:PUBLISHED\" will match an API if the API is in PUBLISHED state. \"label:external\" will match an API if it contains a Microgateway label called \"external\". Also you can use combined modifiers Eg. name:pizzashack version:v1 will match an API if the name of the API is pizzashack and version is v1. Supported attribute modifiers are [**version, context, name, status, description, subcontext, doc, provider, label**] If no advanced attribute modifier has been specified, the API names containing the search term will be returned as a result. Please note that you need to use encoded URL (URL encoding) if you are using a client which does not support URL encoding (such as curl)
String query = "query_example"; // String | **Search condition**. You can search in attributes by using an **\"<attribute>:\"** modifier. Eg. \"provider:wso2\" will match an API if the provider of the API contains \"wso2\". \"provider:\"wso2\"\" will match an API if the provider of the API is exactly \"wso2\". \"status:PUBLISHED\" will match an API if the API is in PUBLISHED state. Also you can use combined modifiers Eg. name:pizzashack version:v1 will match an API if the name of the API is pizzashack and version is v1. Supported attribute modifiers are [**version, context, name, status, description, doc, provider**] If no advanced attribute modifier has been specified, the API names containing the search term will be returned as a result. Please note that you need to use encoded URL (URL encoding) if you are using a client which does not support URL encoding (such as curl)
String ifNoneMatch = "ifNoneMatch_example"; // String | Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource.
Boolean expand = true; // Boolean | Defines whether the returned response should contain full details of API
String accept = "\"application/json\""; // String | Media types acceptable for the response. Default is application/json.
Expand All @@ -966,7 +966,7 @@ Name | Type | Description | Notes
**limit** | **Integer**| Maximum size of resource array to return. | [optional] [default to 25]
**offset** | **Integer**| Starting point within the complete list of items qualified. | [optional] [default to 0]
**xWSO2Tenant** | **String**| For cross-tenant invocations, this is used to specify the tenant domain, where the resource need to be retirieved from. | [optional]
**query** | **String**| **Search condition**. You can search in attributes by using an **\&quot;&lt;attribute&gt;:\&quot;** modifier. Eg. \&quot;provider:wso2\&quot; will match an API if the provider of the API contains \&quot;wso2\&quot;. \&quot;provider:\&quot;wso2\&quot;\&quot; will match an API if the provider of the API is exactly \&quot;wso2\&quot;. \&quot;status:PUBLISHED\&quot; will match an API if the API is in PUBLISHED state. \&quot;label:external\&quot; will match an API if it contains a Microgateway label called \&quot;external\&quot;. Also you can use combined modifiers Eg. name:pizzashack version:v1 will match an API if the name of the API is pizzashack and version is v1. Supported attribute modifiers are [**version, context, name, status, description, subcontext, doc, provider, label**] If no advanced attribute modifier has been specified, the API names containing the search term will be returned as a result. Please note that you need to use encoded URL (URL encoding) if you are using a client which does not support URL encoding (such as curl) | [optional]
**query** | **String**| **Search condition**. You can search in attributes by using an **\&quot;&lt;attribute&gt;:\&quot;** modifier. Eg. \&quot;provider:wso2\&quot; will match an API if the provider of the API contains \&quot;wso2\&quot;. \&quot;provider:\&quot;wso2\&quot;\&quot; will match an API if the provider of the API is exactly \&quot;wso2\&quot;. \&quot;status:PUBLISHED\&quot; will match an API if the API is in PUBLISHED state. Also you can use combined modifiers Eg. name:pizzashack version:v1 will match an API if the name of the API is pizzashack and version is v1. Supported attribute modifiers are [**version, context, name, status, description, doc, provider**] If no advanced attribute modifier has been specified, the API names containing the search term will be returned as a result. Please note that you need to use encoded URL (URL encoding) if you are using a client which does not support URL encoding (such as curl) | [optional]
**ifNoneMatch** | **String**| Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. | [optional]
**expand** | **Boolean**| Defines whether the returned response should contain full details of API | [optional]
**accept** | **String**| Media types acceptable for the response. Default is application/json. | [optional] [default to &quot;application/json&quot;]
Expand Down Expand Up @@ -1280,7 +1280,7 @@ Name | Type | Description | Notes
# **importGraphQLSchema**
> APIDTO importGraphQLSchema(ifMatch, type, file, additionalProperties)
Import API Definition
Import a GraphQL SDL

This operation can be used to create api from api definition.APIMgtDAOTest API definition is GraphQL Schema

Expand Down Expand Up @@ -1353,7 +1353,7 @@ Name | Type | Description | Notes

<a name="importOpenAPIDefinition"></a>
# **importOpenAPIDefinition**
> APIDTO importOpenAPIDefinition(file, url, additionalProperties)
> APIDTO importOpenAPIDefinition(file, url, additionalProperties, inlineAPIDefinition)
Import an OpenAPI Definition

Expand Down Expand Up @@ -1382,8 +1382,9 @@ public class Example {
File file = new File("/path/to/file"); // File | Definition to upload as a file
String url = "url_example"; // String | Definition url
String additionalProperties = "additionalProperties_example"; // String | Additional attributes specified as a stringified JSON with API's schema
String inlineAPIDefinition = "inlineAPIDefinition_example"; // String | Inline content of the OpenAPI definition
try {
APIDTO result = apiInstance.importOpenAPIDefinition(file, url, additionalProperties);
APIDTO result = apiInstance.importOpenAPIDefinition(file, url, additionalProperties, inlineAPIDefinition);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ApIsApi#importOpenAPIDefinition");
Expand All @@ -1403,6 +1404,7 @@ Name | Type | Description | Notes
**file** | **File**| Definition to upload as a file | [optional]
**url** | **String**| Definition url | [optional]
**additionalProperties** | **String**| Additional attributes specified as a stringified JSON with API&#39;s schema | [optional]
**inlineAPIDefinition** | **String**| Inline content of the OpenAPI definition | [optional]

### Return type

Expand Down Expand Up @@ -1452,7 +1454,7 @@ public class Example {
OAuth2Security.setAccessToken("YOUR ACCESS TOKEN");

ApIsApi apiInstance = new ApIsApi(defaultClient);
String serviceKey = "serviceKey_example"; // String | ID of service that should be imported from Service Catalog
String serviceKey = Pizzashack-1.0.0; // String | ID of service that should be imported from Service Catalog
APIDTO APIDTO = new APIDTO(); // APIDTO |
try {
APIDTO result = apiInstance.importServiceFromCatalog(serviceKey, APIDTO);
Expand Down
Loading

0 comments on commit af68407

Please sign in to comment.