mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-05 03:06:15 +00:00
Add rule to remove x-internal in openapi normalizer (#17734)
* add rule to remove x-internal in normalizer * update * update doc * better code format * update samples
This commit is contained in:
@@ -5,7 +5,6 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
||||
| Method | HTTP request | Description |
|
||||
|------------- | ------------- | -------------|
|
||||
| [**getSomeValues**](ValuesApi.md#getSomeValues) | **GET** /values | Get some primitive variable values |
|
||||
| [**internalOnlyGet**](ValuesApi.md#internalOnlyGet) | **GET** /internal/only | internal only |
|
||||
|
||||
|
||||
<a id="getSomeValues"></a>
|
||||
@@ -67,62 +66,3 @@ No authorization required
|
||||
| **200** | successful operation | - |
|
||||
| **400** | Invalid Value | - |
|
||||
|
||||
<a id="internalOnlyGet"></a>
|
||||
# **internalOnlyGet**
|
||||
> Variable internalOnlyGet()
|
||||
|
||||
internal only
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
import org.openapitools.client.ApiClient;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.Configuration;
|
||||
import org.openapitools.client.models.*;
|
||||
import org.openapitools.client.api.ValuesApi;
|
||||
|
||||
public class Example {
|
||||
public static void main(String[] args) {
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||
|
||||
ValuesApi apiInstance = new ValuesApi(defaultClient);
|
||||
try {
|
||||
Variable result = apiInstance.internalOnlyGet();
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling ValuesApi#internalOnlyGet");
|
||||
System.err.println("Status code: " + e.getCode());
|
||||
System.err.println("Reason: " + e.getResponseBody());
|
||||
System.err.println("Response headers: " + e.getResponseHeaders());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### Return type
|
||||
|
||||
[**Variable**](Variable.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
| **400** | Invalid Value | - |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user