forked from loafle/openapi-generator-original
generate samples and docs
This commit is contained in:
@@ -113,7 +113,7 @@ Class | Method | HTTP request | Description
|
||||
*BodyApi* | [**testEchoBodyTagResponseString**](docs/BodyApi.md#testEchoBodyTagResponseString) | **POST** /echo/body/Tag/response_string | Test empty json (request body)
|
||||
*FormApi* | [**testFormIntegerBooleanString**](docs/FormApi.md#testFormIntegerBooleanString) | **POST** /form/integer/boolean/string | Test form parameter(s)
|
||||
*HeaderApi* | [**testHeaderIntegerBooleanString**](docs/HeaderApi.md#testHeaderIntegerBooleanString) | **GET** /header/integer/boolean/string | Test header parameter(s)
|
||||
*PathApi* | [**testsPathStringPathStringIntegerPathInteger**](docs/PathApi.md#testsPathStringPathStringIntegerPathInteger) | **GET** /path/string/{path_string}/integer/{path_integer} | Test path parameter(s)
|
||||
*PathApi* | [**testsPathStringpathStringIntegerPathInteger**](docs/PathApi.md#testsPathStringpathStringIntegerPathInteger) | **GET** /path/string/{path_string}/integer/{path_integer} | Test path parameter(s)
|
||||
*QueryApi* | [**testEnumRefString**](docs/QueryApi.md#testEnumRefString) | **GET** /query/enum_ref_string | Test query parameter(s)
|
||||
*QueryApi* | [**testQueryDatetimeDateString**](docs/QueryApi.md#testQueryDatetimeDateString) | **GET** /query/datetime/date/string | Test query parameter(s)
|
||||
*QueryApi* | [**testQueryIntegerBooleanString**](docs/QueryApi.md#testQueryIntegerBooleanString) | **GET** /query/integer/boolean/string | Test query parameter(s)
|
||||
|
||||
@@ -4,13 +4,13 @@ All URIs are relative to *http://localhost:3000*
|
||||
|
||||
| Method | HTTP request | Description |
|
||||
|------------- | ------------- | -------------|
|
||||
| [**testsPathStringPathStringIntegerPathInteger**](PathApi.md#testsPathStringPathStringIntegerPathInteger) | **GET** /path/string/{path_string}/integer/{path_integer} | Test path parameter(s) |
|
||||
| [**testsPathStringpathStringIntegerPathInteger**](PathApi.md#testsPathStringpathStringIntegerPathInteger) | **GET** /path/string/{path_string}/integer/{path_integer} | Test path parameter(s) |
|
||||
|
||||
|
||||
|
||||
## testsPathStringPathStringIntegerPathInteger
|
||||
## testsPathStringpathStringIntegerPathInteger
|
||||
|
||||
> String testsPathStringPathStringIntegerPathInteger(pathString, pathInteger)
|
||||
> String testsPathStringpathStringIntegerPathInteger(pathString, pathInteger)
|
||||
|
||||
Test path parameter(s)
|
||||
|
||||
@@ -35,10 +35,10 @@ public class Example {
|
||||
String pathString = "pathString_example"; // String |
|
||||
Integer pathInteger = 56; // Integer |
|
||||
try {
|
||||
String result = apiInstance.testsPathStringPathStringIntegerPathInteger(pathString, pathInteger);
|
||||
String result = apiInstance.testsPathStringpathStringIntegerPathInteger(pathString, pathInteger);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling PathApi#testsPathStringPathStringIntegerPathInteger");
|
||||
System.err.println("Exception when calling PathApi#testsPathStringpathStringIntegerPathInteger");
|
||||
System.err.println("Status code: " + e.getCode());
|
||||
System.err.println("Reason: " + e.getResponseBody());
|
||||
System.err.println("Response headers: " + e.getResponseHeaders());
|
||||
|
||||
@@ -59,8 +59,8 @@ public class PathApi {
|
||||
* @return String
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public String testsPathStringPathStringIntegerPathInteger(String pathString, Integer pathInteger) throws ApiException {
|
||||
return this.testsPathStringPathStringIntegerPathInteger(pathString, pathInteger, Collections.emptyMap());
|
||||
public String testsPathStringpathStringIntegerPathInteger(String pathString, Integer pathInteger) throws ApiException {
|
||||
return this.testsPathStringpathStringIntegerPathInteger(pathString, pathInteger, Collections.emptyMap());
|
||||
}
|
||||
|
||||
|
||||
@@ -73,17 +73,17 @@ public class PathApi {
|
||||
* @return String
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public String testsPathStringPathStringIntegerPathInteger(String pathString, Integer pathInteger, Map<String, String> additionalHeaders) throws ApiException {
|
||||
public String testsPathStringpathStringIntegerPathInteger(String pathString, Integer pathInteger, Map<String, String> additionalHeaders) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
|
||||
// verify the required parameter 'pathString' is set
|
||||
if (pathString == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'pathString' when calling testsPathStringPathStringIntegerPathInteger");
|
||||
throw new ApiException(400, "Missing the required parameter 'pathString' when calling testsPathStringpathStringIntegerPathInteger");
|
||||
}
|
||||
|
||||
// verify the required parameter 'pathInteger' is set
|
||||
if (pathInteger == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'pathInteger' when calling testsPathStringPathStringIntegerPathInteger");
|
||||
throw new ApiException(400, "Missing the required parameter 'pathInteger' when calling testsPathStringpathStringIntegerPathInteger");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
|
||||
Reference in New Issue
Block a user