forked from loafle/openapi-generator-original
New generator: WSDL (#9545)
* init port * add outputDir * fill out current .md * update samples Co-authored-by: William Cheng <wing328hk@gmail.com>
This commit is contained in:
parent
73b34ade6a
commit
12c34d4658
6
bin/configs/wsdl-spec.yaml
Normal file
6
bin/configs/wsdl-spec.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
generatorName: wsdl
|
||||
outputDir: samples/documentation/wsdl
|
||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/wsdl/petstore.yaml
|
||||
templateDir: modules/openapi-generator/src/main/resources/wsdl
|
||||
additionalProperties:
|
||||
hideGenerationTimestamp: "true"
|
@ -22,7 +22,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|
||||
|prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.| |false|
|
||||
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true|
|
||||
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true|
|
||||
|sourceFolder|source folder for generated code| |OpenAPI/src|
|
||||
|sourceFolder|source folder for generated code| |OpenAPI\src|
|
||||
|
||||
## IMPORT MAPPING
|
||||
|
||||
|
@ -19,7 +19,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|
||||
|packageVersion|F# package version.| |1.0.0|
|
||||
|returnICollection|Return ICollection<T> instead of the concrete type.| |false|
|
||||
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true|
|
||||
|sourceFolder|source folder for generated code| |OpenAPI/src|
|
||||
|sourceFolder|source folder for generated code| |OpenAPI\src|
|
||||
|useCollection|Deserialize array types to Collection<T> instead of List<T>.| |false|
|
||||
|useDateTimeOffset|Use DateTimeOffset to model date-time properties| |false|
|
||||
|useSwashbuckle|Uses the Swashbuckle.AspNetCore NuGet package for documentation.| |false|
|
||||
|
@ -48,7 +48,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|
||||
|snapshotVersion|Uses a SNAPSHOT version.|<dl><dt>**true**</dt><dd>Use a SnapShot Version</dd><dt>**false**</dt><dd>Use a Release Version</dd></dl>|null|
|
||||
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true|
|
||||
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true|
|
||||
|sourceFolder|source folder for generated code| |src/gen/java|
|
||||
|sourceFolder|source folder for generated code| |src\gen\java|
|
||||
|withXml|whether to include support for application/xml content type and include XML annotations in the model (works with libraries that provide support for JSON and XML)| |false|
|
||||
|
||||
## IMPORT MAPPING
|
||||
|
@ -48,7 +48,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|
||||
|snapshotVersion|Uses a SNAPSHOT version.|<dl><dt>**true**</dt><dd>Use a SnapShot Version</dd><dt>**false**</dt><dd>Use a Release Version</dd></dl>|null|
|
||||
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true|
|
||||
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true|
|
||||
|sourceFolder|source folder for generated code| |src/gen/java|
|
||||
|sourceFolder|source folder for generated code| |src\gen\java|
|
||||
|useBeanValidation|Use BeanValidation API annotations| |false|
|
||||
|useGenericResponse|Use generic response| |false|
|
||||
|useGzipFeatureForTests|Use Gzip Feature for tests| |false|
|
||||
|
@ -36,10 +36,10 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|
||||
|responseAs|Optionally use libraries to manage response. Currently PromiseKit, RxSwift, Result, Combine are available.| |null|
|
||||
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true|
|
||||
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true|
|
||||
|swiftPackagePath|Set a custom source path instead of OpenAPIClient/Classes/OpenAPIs.| |null|
|
||||
|swiftPackagePath|Set a custom source path instead of OpenAPIClient\Classes\OpenAPIs.| |null|
|
||||
|swiftUseApiNamespace|Flag to make all the API classes inner-class of {{projectName}}API| |null|
|
||||
|useBacktickEscapes|Escape reserved words using backticks (default: false)| |false|
|
||||
|useSPMFileStructure|Use SPM file structure and set the source path to Sources/{{projectName}} (default: false).| |null|
|
||||
|useSPMFileStructure|Use SPM file structure and set the source path to Sources\{{projectName}} (default: false).| |null|
|
||||
|
||||
## IMPORT MAPPING
|
||||
|
||||
|
150
docs/generators/wsdl.md
Normal file
150
docs/generators/wsdl.md
Normal file
@ -0,0 +1,150 @@
|
||||
---
|
||||
title: Config Options for wsdl
|
||||
sidebar_label: wsdl
|
||||
---
|
||||
|
||||
These options may be applied as additional-properties (cli) or configOptions (plugins). Refer to [configuration docs](https://openapi-generator.tech/docs/configuration) for more details.
|
||||
|
||||
| Option | Description | Values | Default |
|
||||
| ------ | ----------- | ------ | ------- |
|
||||
|allowUnicodeIdentifiers|boolean, toggles whether unicode identifiers are allowed in names or not, default is false| |false|
|
||||
|disallowAdditionalPropertiesIfNotPresent|If false, the 'additionalProperties' implementation (set to true by default) is compliant with the OAS and JSON schema specifications. If true (default), keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.|<dl><dt>**false**</dt><dd>The 'additionalProperties' implementation is compliant with the OAS and JSON schema specifications.</dd><dt>**true**</dt><dd>Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.</dd></dl>|true|
|
||||
|ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true|
|
||||
|hostname|the hostname of the service| |null|
|
||||
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|
|
||||
|prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.| |false|
|
||||
|serviceName|service name for the wsdl| |null|
|
||||
|soapPath|basepath of the soap services| |null|
|
||||
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true|
|
||||
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true|
|
||||
|
||||
## IMPORT MAPPING
|
||||
|
||||
| Type/Alias | Imports |
|
||||
| ---------- | ------- |
|
||||
|
||||
|
||||
## INSTANTIATION TYPES
|
||||
|
||||
| Type/Alias | Instantiated By |
|
||||
| ---------- | --------------- |
|
||||
|
||||
|
||||
## LANGUAGE PRIMITIVES
|
||||
|
||||
<ul class="column-ul">
|
||||
</ul>
|
||||
|
||||
## RESERVED WORDS
|
||||
|
||||
<ul class="column-ul">
|
||||
</ul>
|
||||
|
||||
## FEATURE SET
|
||||
|
||||
|
||||
### Client Modification Feature
|
||||
| Name | Supported | Defined By |
|
||||
| ---- | --------- | ---------- |
|
||||
|BasePath|✗|ToolingExtension
|
||||
|Authorizations|✗|ToolingExtension
|
||||
|UserAgent|✗|ToolingExtension
|
||||
|MockServer|✗|ToolingExtension
|
||||
|
||||
### Data Type Feature
|
||||
| Name | Supported | Defined By |
|
||||
| ---- | --------- | ---------- |
|
||||
|Custom|✗|OAS2,OAS3
|
||||
|Int32|✓|OAS2,OAS3
|
||||
|Int64|✓|OAS2,OAS3
|
||||
|Float|✓|OAS2,OAS3
|
||||
|Double|✓|OAS2,OAS3
|
||||
|Decimal|✓|ToolingExtension
|
||||
|String|✓|OAS2,OAS3
|
||||
|Byte|✓|OAS2,OAS3
|
||||
|Binary|✓|OAS2,OAS3
|
||||
|Boolean|✓|OAS2,OAS3
|
||||
|Date|✓|OAS2,OAS3
|
||||
|DateTime|✓|OAS2,OAS3
|
||||
|Password|✓|OAS2,OAS3
|
||||
|File|✓|OAS2
|
||||
|Array|✓|OAS2,OAS3
|
||||
|Maps|✓|ToolingExtension
|
||||
|CollectionFormat|✓|OAS2
|
||||
|CollectionFormatMulti|✓|OAS2
|
||||
|Enum|✓|OAS2,OAS3
|
||||
|ArrayOfEnum|✓|ToolingExtension
|
||||
|ArrayOfModel|✓|ToolingExtension
|
||||
|ArrayOfCollectionOfPrimitives|✓|ToolingExtension
|
||||
|ArrayOfCollectionOfModel|✓|ToolingExtension
|
||||
|ArrayOfCollectionOfEnum|✓|ToolingExtension
|
||||
|MapOfEnum|✓|ToolingExtension
|
||||
|MapOfModel|✓|ToolingExtension
|
||||
|MapOfCollectionOfPrimitives|✓|ToolingExtension
|
||||
|MapOfCollectionOfModel|✓|ToolingExtension
|
||||
|MapOfCollectionOfEnum|✓|ToolingExtension
|
||||
|
||||
### Documentation Feature
|
||||
| Name | Supported | Defined By |
|
||||
| ---- | --------- | ---------- |
|
||||
|Readme|✗|ToolingExtension
|
||||
|Model|✓|ToolingExtension
|
||||
|Api|✓|ToolingExtension
|
||||
|
||||
### Global Feature
|
||||
| Name | Supported | Defined By |
|
||||
| ---- | --------- | ---------- |
|
||||
|Host|✓|OAS2,OAS3
|
||||
|BasePath|✓|OAS2,OAS3
|
||||
|Info|✓|OAS2,OAS3
|
||||
|Schemes|✗|OAS2,OAS3
|
||||
|PartialSchemes|✓|OAS2,OAS3
|
||||
|Consumes|✓|OAS2
|
||||
|Produces|✓|OAS2
|
||||
|ExternalDocumentation|✓|OAS2,OAS3
|
||||
|Examples|✓|OAS2,OAS3
|
||||
|XMLStructureDefinitions|✗|OAS2,OAS3
|
||||
|MultiServer|✗|OAS3
|
||||
|ParameterizedServer|✗|OAS3
|
||||
|ParameterStyling|✗|OAS3
|
||||
|Callbacks|✓|OAS3
|
||||
|LinkObjects|✗|OAS3
|
||||
|
||||
### Parameter Feature
|
||||
| Name | Supported | Defined By |
|
||||
| ---- | --------- | ---------- |
|
||||
|Path|✓|OAS2,OAS3
|
||||
|Query|✓|OAS2,OAS3
|
||||
|Header|✓|OAS2,OAS3
|
||||
|Body|✓|OAS2
|
||||
|FormUnencoded|✓|OAS2
|
||||
|FormMultipart|✓|OAS2
|
||||
|Cookie|✓|OAS3
|
||||
|
||||
### Schema Support Feature
|
||||
| Name | Supported | Defined By |
|
||||
| ---- | --------- | ---------- |
|
||||
|Simple|✓|OAS2,OAS3
|
||||
|Composite|✓|OAS2,OAS3
|
||||
|Polymorphism|✓|OAS2,OAS3
|
||||
|Union|✗|OAS3
|
||||
|
||||
### Security Feature
|
||||
| Name | Supported | Defined By |
|
||||
| ---- | --------- | ---------- |
|
||||
|BasicAuth|✓|OAS2,OAS3
|
||||
|ApiKey|✓|OAS2,OAS3
|
||||
|OpenIDConnect|✗|OAS3
|
||||
|BearerToken|✓|OAS3
|
||||
|OAuth2_Implicit|✓|OAS2,OAS3
|
||||
|OAuth2_Password|✓|OAS2,OAS3
|
||||
|OAuth2_ClientCredentials|✓|OAS2,OAS3
|
||||
|OAuth2_AuthorizationCode|✓|OAS2,OAS3
|
||||
|
||||
### Wire Format Feature
|
||||
| Name | Supported | Defined By |
|
||||
| ---- | --------- | ---------- |
|
||||
|JSON|✓|OAS2,OAS3
|
||||
|XML|✓|OAS2,OAS3
|
||||
|PROTOBUF|✗|ToolingExtension
|
||||
|Custom|✗|OAS2,OAS3
|
@ -0,0 +1,264 @@
|
||||
package org.openapitools.codegen.languages;
|
||||
|
||||
import io.swagger.v3.oas.models.OpenAPI;
|
||||
import io.swagger.v3.oas.models.info.Info;
|
||||
|
||||
import java.io.File;
|
||||
import java.text.Normalizer;
|
||||
import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
|
||||
import org.openapitools.codegen.CliOption;
|
||||
import org.openapitools.codegen.CodegenConfig;
|
||||
import org.openapitools.codegen.CodegenModel;
|
||||
import org.openapitools.codegen.CodegenOperation;
|
||||
import org.openapitools.codegen.CodegenParameter;
|
||||
import org.openapitools.codegen.CodegenProperty;
|
||||
import org.openapitools.codegen.CodegenType;
|
||||
import org.openapitools.codegen.DefaultCodegen;
|
||||
import org.openapitools.codegen.SupportingFile;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class WsdlGeneratorCodegen extends DefaultCodegen implements CodegenConfig {
|
||||
public static final String PROJECT_NAME = "projectName";
|
||||
|
||||
static final Logger LOGGER = LoggerFactory.getLogger(WsdlGeneratorCodegen.class);
|
||||
|
||||
public CodegenType getTag() {
|
||||
return CodegenType.DOCUMENTATION;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return "wsdl";
|
||||
}
|
||||
|
||||
public String getHelp() {
|
||||
return "Generates a wsdl-spec documentation.";
|
||||
}
|
||||
|
||||
public WsdlGeneratorCodegen() {
|
||||
super();
|
||||
|
||||
outputFolder = "generated-code" + File.separator + "wsdl-spec";
|
||||
embeddedTemplateDir = templateDir = "wsdl";
|
||||
apiPackage = "Apis";
|
||||
modelPackage = "Models";
|
||||
|
||||
cliOptions.add(new CliOption("hostname", "the hostname of the service"));
|
||||
cliOptions.add(new CliOption("soapPath", "basepath of the soap services"));
|
||||
cliOptions.add(new CliOption("serviceName", "service name for the wsdl"));
|
||||
|
||||
additionalProperties.put("hostname", "localhost");
|
||||
additionalProperties.put("soapPath", "soap");
|
||||
additionalProperties.put("serviceName", "ServiceV1");
|
||||
|
||||
supportingFiles.add(new SupportingFile("wsdl-converter.mustache", "", "service.wsdl"));
|
||||
supportingFiles.add(new SupportingFile("jaxb-customization.mustache", "",
|
||||
"jaxb-customization.xml"));
|
||||
}
|
||||
|
||||
public void preprocessOpenAPI(OpenAPI openAPI) {
|
||||
Info info = openAPI.getInfo();
|
||||
|
||||
String title = info.getTitle();
|
||||
String description = info.getDescription();
|
||||
|
||||
info.setDescription(this.processOpenapiSpecDescription(description));
|
||||
info.setTitle(this.escapeTitle(title));
|
||||
}
|
||||
|
||||
private String escapeTitle(String title) {
|
||||
// strip umlauts etc.
|
||||
final String normalizedTitle = Normalizer.normalize(title, Normalizer.Form.NFD)
|
||||
.replaceAll("[^\\p{ASCII}]", "");
|
||||
return super.escapeUnsafeCharacters(normalizedTitle);
|
||||
}
|
||||
|
||||
public String processOpenapiSpecDescription(String description) {
|
||||
if (description != null) {
|
||||
return description.replaceAll("\\s+", " ");
|
||||
} else {
|
||||
return "No description provided";
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, Object> postProcessOperationsWithModels(Map<String, Object> objs,
|
||||
List<Object> allModels) {
|
||||
|
||||
Map<String, Object> operations = (Map<String, Object>) objs.get("operations");
|
||||
List<CodegenOperation> operationList = (List<CodegenOperation>) operations.get("operation");
|
||||
for (CodegenOperation op : operationList) {
|
||||
op.operationId = this.generateOperationId(op);
|
||||
|
||||
// for xml compliant primitives, lowercase dataType of openapi
|
||||
for (CodegenParameter param : op.allParams) {
|
||||
Map<String, Object> paramVendorExtensions = param.vendorExtensions;
|
||||
|
||||
normalizeDataType(param);
|
||||
|
||||
// prevent default="null" in wsdl-tag if no default was specified for a param
|
||||
if ("null".equals(param.defaultValue) || param.defaultValue == null) {
|
||||
paramVendorExtensions.put("x-param-has-defaultvalue", false);
|
||||
} else {
|
||||
paramVendorExtensions.put("x-param-has-defaultvalue", true);
|
||||
}
|
||||
|
||||
// check if param has a minimum or maximum number or lenght
|
||||
if (param.minimum != null
|
||||
|| param.maximum != null
|
||||
|| param.minLength != null
|
||||
|| param.maxLength != null) {
|
||||
paramVendorExtensions.put("x-param-has-minormax", true);
|
||||
} else {
|
||||
paramVendorExtensions.put("x-param-has-minormax", false);
|
||||
}
|
||||
|
||||
// if param is enum, uppercase 'baseName' to have a reference to wsdl simpletype
|
||||
if (param.isEnum) {
|
||||
char[] c = param.baseName.toCharArray();
|
||||
c[0] = Character.toUpperCase(c[0]);
|
||||
param.baseName = new String(c);
|
||||
}
|
||||
}
|
||||
|
||||
for (CodegenParameter param : op.bodyParams) {
|
||||
normalizeDataType(param);
|
||||
}
|
||||
for (CodegenParameter param : op.pathParams) {
|
||||
normalizeDataType(param);
|
||||
}
|
||||
for (CodegenParameter param : op.queryParams) {
|
||||
normalizeDataType(param);
|
||||
}
|
||||
for (CodegenParameter param : op.formParams) {
|
||||
normalizeDataType(param);
|
||||
}
|
||||
}
|
||||
|
||||
return objs;
|
||||
}
|
||||
|
||||
private void normalizeDataType(CodegenParameter param) {
|
||||
if (param.isPrimitiveType) {
|
||||
param.dataType = param.dataType.toLowerCase(Locale.getDefault());
|
||||
}
|
||||
if (param.dataFormat != null && param.dataFormat.equalsIgnoreCase("date")) {
|
||||
param.dataType = "date";
|
||||
}
|
||||
if (param.dataFormat != null && param.dataFormat.equalsIgnoreCase("date-time")) {
|
||||
param.dataType = "dateTime";
|
||||
}
|
||||
if (param.dataFormat != null && param.dataFormat.equalsIgnoreCase("uuid")) {
|
||||
param.dataType = "string";
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, Object> postProcessModels(Map<String, Object> objs) {
|
||||
List<Object> models = (List<Object>) objs.get("models");
|
||||
|
||||
for (Object mo : models) {
|
||||
Map<String, Object> mod = (Map<String, Object>) mo;
|
||||
CodegenModel model = (CodegenModel) mod.get("model");
|
||||
Map<String, Object> modelVendorExtensions = model.getVendorExtensions();
|
||||
|
||||
/* check if model is a model with no properties
|
||||
* Used in the mustache template to ensure that no complextype is created
|
||||
* if model is just a schema with an enum defined in the openapi specification
|
||||
*/
|
||||
if (model.allowableValues != null) {
|
||||
modelVendorExtensions.put("x-is-openapimodel-enum", true);
|
||||
} else {
|
||||
modelVendorExtensions.put("x-is-openapimodel-enum", false);
|
||||
}
|
||||
|
||||
for (CodegenProperty var : model.vars) {
|
||||
Map<String, Object> propertyVendorExtensions = var.getVendorExtensions();
|
||||
|
||||
// lowercase basetypes if openapitype is string
|
||||
if (var.openApiType == "string") {
|
||||
char[] c = var.baseType.toCharArray();
|
||||
c[0] = Character.toLowerCase(c[0]);
|
||||
var.baseType = new String(c);
|
||||
}
|
||||
// if string enum, uppercase 'name' to have a reference to wsdl simpletype
|
||||
if (var.isEnum) {
|
||||
char[] c = var.name.toCharArray();
|
||||
c[0] = Character.toUpperCase(c[0]);
|
||||
var.name = new String(c);
|
||||
}
|
||||
|
||||
// prevent default="null" in wsdl-tag if no default was specified for a property
|
||||
if ("null".equals(var.defaultValue) || var.defaultValue == null) {
|
||||
propertyVendorExtensions.put("x-prop-has-defaultvalue", false);
|
||||
} else {
|
||||
propertyVendorExtensions.put("x-prop-has-defaultvalue", true);
|
||||
}
|
||||
|
||||
// check if model property has a minimum or maximum number or lenght
|
||||
if (var.minimum != null
|
||||
|| var.maximum != null
|
||||
|| var.minLength != null
|
||||
|| var.maxLength != null) {
|
||||
propertyVendorExtensions.put("x-prop-has-minormax", true);
|
||||
} else {
|
||||
propertyVendorExtensions.put("x-prop-has-minormax", false);
|
||||
}
|
||||
}
|
||||
}
|
||||
return super.postProcessModelsEnum(objs);
|
||||
}
|
||||
|
||||
public String generateOperationId(CodegenOperation op) {
|
||||
String newOperationid = this.lowerCaseStringExceptFirstLetter(op.httpMethod);
|
||||
String[] pathElements = op.path.split("/");
|
||||
List<String> pathParameters = new ArrayList();
|
||||
|
||||
for (int i = 0; i < pathElements.length; i++) {
|
||||
if (pathElements[i].contains("{")) {
|
||||
pathParameters.add(pathElements[i]);
|
||||
pathElements[i] = "";
|
||||
}
|
||||
if (pathElements[i].length() > 0) {
|
||||
newOperationid = newOperationid + this.lowerCaseStringExceptFirstLetter(pathElements[i]);
|
||||
}
|
||||
}
|
||||
|
||||
if (pathParameters.size() > 0) {
|
||||
for (int i = 0; i < pathParameters.size(); i++) {
|
||||
String pathParameter = pathParameters.get(i);
|
||||
pathParameter = this.lowerCaseStringExceptFirstLetter(pathParameter
|
||||
.substring(1, pathParameter.length() - 1));
|
||||
if (i == 0) {
|
||||
newOperationid = newOperationid + "By" + pathParameter;
|
||||
} else {
|
||||
newOperationid = newOperationid + "And" + pathParameter;
|
||||
}
|
||||
}
|
||||
}
|
||||
return newOperationid;
|
||||
}
|
||||
|
||||
public String lowerCaseStringExceptFirstLetter(String value) {
|
||||
String newOperationid = value.toLowerCase(Locale.getDefault());
|
||||
return newOperationid.substring(0, 1).toUpperCase(Locale.getDefault())
|
||||
+ newOperationid.substring(1);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String escapeQuotationMark(String input) {
|
||||
// just return the original string
|
||||
return input;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String escapeUnsafeCharacters(String input) {
|
||||
// just return the original string
|
||||
return input;
|
||||
}
|
||||
}
|
@ -134,3 +134,4 @@ org.openapitools.codegen.languages.TypeScriptNodeClientCodegen
|
||||
org.openapitools.codegen.languages.TypeScriptReduxQueryClientCodegen
|
||||
org.openapitools.codegen.languages.TypeScriptRxjsClientCodegen
|
||||
org.openapitools.codegen.languages.GoEchoServerCodegen
|
||||
org.openapitools.codegen.languages.WsdlGeneratorCodegen
|
||||
|
50
modules/openapi-generator/src/main/resources/wsdl/jaxb-customization.mustache
vendored
Normal file
50
modules/openapi-generator/src/main/resources/wsdl/jaxb-customization.mustache
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<jaxws:bindings
|
||||
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
|
||||
xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
|
||||
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.1"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
wsdlLocation="service.wsdl">
|
||||
|
||||
<enableWrapperStyle>true</enableWrapperStyle>
|
||||
<enableAsyncMapping>false</enableAsyncMapping>
|
||||
|
||||
{{#models}}
|
||||
{{#model}}
|
||||
{{^allOf}}
|
||||
{{#vars}}
|
||||
{{#isEnum}}
|
||||
{{#baseType}}
|
||||
<jaxws:bindings node="xsd:simpleType[@name='{{name}}']">
|
||||
<jaxb:typesafeEnumClass>
|
||||
{{#allowableValues}}
|
||||
{{#enumVars}}
|
||||
<jaxb:typesafeEnumMember value={{{value}}} name="{{name}}" />
|
||||
{{/enumVars}}
|
||||
{{/allowableValues}}
|
||||
</jaxb:typesafeEnumClass>
|
||||
</jaxws:bindings>
|
||||
{{/baseType}}
|
||||
{{/isEnum}}
|
||||
{{/vars}}
|
||||
{{/allOf}}
|
||||
{{/model}}
|
||||
{{/models}}
|
||||
|
||||
{{#models}}
|
||||
{{#model}}
|
||||
{{^vars}}
|
||||
<jaxws:bindings node="xsd:simpleType[@name='{{name}}']">
|
||||
<jaxb:typesafeEnumClass>
|
||||
{{#allowableValues}}
|
||||
{{#enumVars}}
|
||||
<jaxb:typesafeEnumMember value={{{value}}} name="{{name}}" />
|
||||
{{/enumVars}}
|
||||
{{/allowableValues}}
|
||||
</jaxb:typesafeEnumClass>
|
||||
</jaxws:bindings>
|
||||
{{/vars}}
|
||||
{{/model}}
|
||||
{{/models}}
|
||||
|
||||
</jaxws:bindings>
|
348
modules/openapi-generator/src/main/resources/wsdl/wsdl-converter.mustache
vendored
Normal file
348
modules/openapi-generator/src/main/resources/wsdl/wsdl-converter.mustache
vendored
Normal file
@ -0,0 +1,348 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:schemas="http://{{hostname}}/{{soapPath}}/{{serviceName}}/model" xmlns:wsdl="http://{{hostname}}/{{soapPath}}/{{serviceName}}/service" targetNamespace="http://{{hostname}}/{{soapPath}}/{{serviceName}}/service" xmlns="http://schemas.xmlsoap.org/wsdl/">
|
||||
<types>
|
||||
<xs:schema xmlns:tns="http://{{hostname}}/{{soapPath}}/{{serviceName}}/model" targetNamespace="http://{{hostname}}/{{soapPath}}/{{serviceName}}/model" xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
||||
{{#apiInfo}}
|
||||
{{#apis}}
|
||||
{{#operations}}
|
||||
{{#operation}}
|
||||
<xs:element name="{{operationId}}_RequestMessage" type="schemas:{{operationId}}_RequestMessage" />
|
||||
<xs:element name="{{operationId}}_ResponseMessage" type="schemas:{{operationId}}_ResponseMessage" />
|
||||
{{#responses}}
|
||||
{{#is4xx}}
|
||||
<xs:element name="{{operationId}}_{{code}}"{{#isModel}} type="{{#isString}}xs:string{{/isString}}{{^isString}}schemas:{{dataType}}{{/isString}}"{{/isModel}}>
|
||||
<xs:annotation>
|
||||
<xs:documentation>{{message}}</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
{{/is4xx}}
|
||||
{{#is5xx}}
|
||||
<xs:element name="{{operationId}}_{{code}}"{{#isModel}} type="{{#isString}}xs:string{{/isString}}{{^isString}}schemas:{{dataType}}{{/isString}}"{{/isModel}}>
|
||||
<xs:annotation>
|
||||
<xs:documentation>{{message}}</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
{{/is5xx}}
|
||||
{{/responses}}
|
||||
{{/operation}}
|
||||
{{/operations}}
|
||||
{{/apis}}
|
||||
{{/apiInfo}}
|
||||
{{#models}}
|
||||
{{#model}}
|
||||
{{^vendorExtensions.x-is-openapimodel-enum}}
|
||||
<xs:complexType name="{{classname}}">
|
||||
{{#description}}
|
||||
<xs:annotation>
|
||||
<xs:documentation>{{description}}</xs:documentation>
|
||||
</xs:annotation>
|
||||
{{/description}}
|
||||
<xs:sequence>
|
||||
{{#vars}}
|
||||
{{#vendorExtensions.x-prop-has-minormax}}
|
||||
<xs:element minOccurs="{{#required}}1{{/required}}{{^required}}0{{/required}}"{{#vendorExtensions.x-prop-has-defaultvalue}} default="{{defaultValue}}"{{/vendorExtensions.x-prop-has-defaultvalue}} name="{{baseName}}">
|
||||
<xs:simpleType>
|
||||
{{#description}}
|
||||
<xs:annotation>
|
||||
<xs:documentation>{{description}}</xs:documentation>
|
||||
</xs:annotation>
|
||||
{{/description}}
|
||||
<xs:restriction base="xs:{{#isString}}string{{/isString}}{{^isString}}{{#isInteger}}integer{{/isInteger}}{{^isInteger}}{{#isDouble}}double{{/isDouble}}{{^isDouble}}long{{/isDouble}}{{/isInteger}}{{/isString}}">
|
||||
{{#maximum}}
|
||||
<xs:maxInclusive value="{{maximum}}" />
|
||||
{{/maximum}}
|
||||
{{#minimum}}
|
||||
<xs:minInclusive value="{{minimum}}" />
|
||||
{{/minimum}}
|
||||
{{#maxLength}}
|
||||
<xs:maxLength value="{{maxLength}}" />
|
||||
{{/maxLength}}
|
||||
{{#minLength}}
|
||||
<xs:minLength value="{{minLength}}" />
|
||||
{{/minLength}}
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
{{/vendorExtensions.x-prop-has-minormax}}
|
||||
{{^vendorExtensions.x-prop-has-minormax}}
|
||||
{{#isContainer}}
|
||||
<xs:element minOccurs="{{#minItems}}{{minItems}}{{/minItems}}{{^minItems}}{{#required}}1{{/required}}{{^required}}0{{/required}}{{/minItems}}" maxOccurs="{{#maxItems}}{{maxItems}}{{/maxItems}}{{^maxItems}}unbounded{{/maxItems}}" name="{{baseName}}" type="{{#items}}{{#isModel}}schemas:{{complexType}}{{/isModel}}{{^isModel}}{{#isFreeFormObject}}xs:string{{/isFreeFormObject}}{{^isFreeFormObject}}{{#isString}}xs:{{complexType}}{{/isString}}{{^isString}}{{#isNumeric}}xs:{{complexType}}{{/isNumeric}}{{^isNumeric}}schemas:{{complexType}}{{/isNumeric}}{{/isString}}{{/isFreeFormObject}}{{/isModel}}{{/items}}"{{^description}} /{{/description}}>
|
||||
{{/isContainer}}
|
||||
{{^isContainer}}
|
||||
<xs:element minOccurs="{{#required}}1{{/required}}{{^required}}0{{/required}}"{{#vendorExtensions.x-prop-has-defaultvalue}} default="{{defaultValue}}"{{/vendorExtensions.x-prop-has-defaultvalue}} name="{{baseName}}" type="{{#isModel}}schemas:{{complexType}}{{/isModel}}{{^isModel}}{{#isEnum}}schemas:{{name}}{{/isEnum}}{{^isEnum}}{{#isNumber}}xs:double{{/isNumber}}{{^isNumber}}{{#isFreeFormObject}}xs:anyType{{/isFreeFormObject}}{{^isFreeFormObject}}{{#isUuid}}xs:string{{/isUuid}}{{^isUuid}}{{#isByteArray}}xs:string{{/isByteArray}}{{^isByteArray}}{{#allowableValues}}schemas:{{baseType}}{{/allowableValues}}{{^allowableValues}}{{#isFile}}{{#isBinary}}xs:hexBinary{{/isBinary}}{{/isFile}}{{^isFile}}xs:{{baseType}}{{/isFile}}{{/allowableValues}}{{/isByteArray}}{{/isUuid}}{{/isFreeFormObject}}{{/isNumber}}{{/isEnum}}{{/isModel}}"{{^description}} /{{/description}}>
|
||||
{{/isContainer}}
|
||||
{{#description}}
|
||||
<xs:annotation>
|
||||
<xs:documentation>{{description}}</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
{{/description}}
|
||||
{{/vendorExtensions.x-prop-has-minormax}}
|
||||
{{/vars}}
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
{{/vendorExtensions.x-is-openapimodel-enum}}
|
||||
{{/model}}
|
||||
{{/models}}
|
||||
{{#models}}
|
||||
{{#model}}
|
||||
{{^allOf}}
|
||||
{{#vars}}
|
||||
{{#isEnum}}
|
||||
{{#baseType}}
|
||||
<xs:simpleType name="{{name}}">
|
||||
{{#description}}
|
||||
<xs:annotation>
|
||||
<xs:documentation>{{description}}</xs:documentation>
|
||||
</xs:annotation>
|
||||
{{/description}}
|
||||
<xs:restriction base="xs:{{baseType}}">
|
||||
{{#allowableValues}}
|
||||
{{#enumVars}}
|
||||
<xs:enumeration value={{{value}}} />
|
||||
{{/enumVars}}
|
||||
{{/allowableValues}}
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
{{/baseType}}
|
||||
{{/isEnum}}
|
||||
{{/vars}}
|
||||
{{/allOf}}
|
||||
{{/model}}
|
||||
{{/models}}
|
||||
{{#models}}
|
||||
{{#model}}
|
||||
{{^vars}}
|
||||
<xs:simpleType name="{{name}}">
|
||||
{{#description}}
|
||||
<xs:annotation>
|
||||
<xs:documentation>{{description}}</xs:documentation>
|
||||
</xs:annotation>
|
||||
{{/description}}
|
||||
<xs:restriction base="xs:{{dataType}}">
|
||||
{{#allowableValues}}
|
||||
{{#enumVars}}
|
||||
<xs:enumeration value={{{value}}} />
|
||||
{{/enumVars}}
|
||||
{{/allowableValues}}
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
{{/vars}}
|
||||
{{/model}}
|
||||
{{/models}}
|
||||
{{#apiInfo}}
|
||||
{{#apis}}
|
||||
{{#operations}}
|
||||
{{#operation}}
|
||||
{{#allParams}}
|
||||
{{#isEnum}}
|
||||
<xs:simpleType name="{{baseName}}">
|
||||
<xs:restriction base="xs:{{#items}}{{complexType}}{{/items}}{{^items}}{{dataType}}{{/items}}">
|
||||
{{#allowableValues}}
|
||||
{{#enumVars}}
|
||||
<xs:enumeration value="{{name}}" />
|
||||
{{/enumVars}}
|
||||
{{/allowableValues}}
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
{{/isEnum}}
|
||||
{{/allParams}}
|
||||
{{/operation}}
|
||||
{{/operations}}
|
||||
{{/apis}}
|
||||
{{/apiInfo}}
|
||||
{{#apiInfo}}
|
||||
{{#apis}}
|
||||
{{#operations}}
|
||||
{{#operation}}
|
||||
{{#hasParams}}
|
||||
<xs:complexType name="{{operationId}}_RequestMessage">
|
||||
<xs:sequence>
|
||||
{{#allParams}}
|
||||
{{#vendorExtensions.x-param-has-minormax}}
|
||||
<xs:element minOccurs="{{#required}}1{{/required}}{{^required}}0{{/required}}"{{#vendorExtensions.x-param-has-defaultvalue}} default="{{defaultValue}}"{{/vendorExtensions.x-param-has-defaultvalue}} name="{{#isBodyParam}}body{{/isBodyParam}}{{^isBodyParam}}{{paramName}}{{/isBodyParam}}">
|
||||
<xs:simpleType>
|
||||
{{#description}}
|
||||
<xs:annotation>
|
||||
<xs:documentation>{{description}}</xs:documentation>
|
||||
</xs:annotation>
|
||||
{{/description}}
|
||||
<xs:restriction base="xs:{{#isString}}string{{/isString}}{{^isString}}{{#isInteger}}integer{{/isInteger}}{{^isInteger}}{{#isDouble}}double{{/isDouble}}{{^isDouble}}long{{/isDouble}}{{/isInteger}}{{/isString}}">
|
||||
{{#maximum}}
|
||||
<xs:maxInclusive value="{{maximum}}" />
|
||||
{{/maximum}}
|
||||
{{#minimum}}
|
||||
<xs:minInclusive value="{{minimum}}" />
|
||||
{{/minimum}}
|
||||
{{#maxLength}}
|
||||
<xs:maxLength value="{{maxLength}}" />
|
||||
{{/maxLength}}
|
||||
{{#minLength}}
|
||||
<xs:minLength value="{{minLength}}" />
|
||||
{{/minLength}}
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
{{/vendorExtensions.x-param-has-minormax}}
|
||||
{{^vendorExtensions.x-param-has-minormax}}
|
||||
<xs:element minOccurs="{{#isArray}}{{#minItems}}{{minItems}}{{/minItems}}{{^minItems}}{{#required}}1{{/required}}{{^required}}0{{/required}}{{/minItems}}{{/isArray}}{{^isArray}}{{#required}}1{{/required}}{{^required}}0{{/required}}{{/isArray}}"{{#isArray}} maxOccurs="{{#maxItems}}{{maxItems}}{{/maxItems}}{{^maxItems}}unbounded{{/maxItems}}"{{/isArray}}{{#vendorExtensions.x-param-has-defaultvalue}} default="{{defaultValue}}"{{/vendorExtensions.x-param-has-defaultvalue}} name="{{#isBodyParam}}body{{/isBodyParam}}{{^isBodyParam}}{{paramName}}{{/isBodyParam}}" type="{{#isBodyParam}}schemas:{{#isArray}}{{baseType}}{{/isArray}}{{^isArray}}{{dataType}}{{/isArray}}{{/isBodyParam}}{{^isBodyParam}}{{#isModel}}schemas:{{dataType}}{{/isModel}}{{^isModel}}{{#isEnum}}schemas:{{baseName}}{{/isEnum}}{{^isEnum}}{{#isFile}}{{#isBinary}}xs:hexBinary{{/isBinary}}{{/isFile}}{{^isFile}}{{#isByteArray}}xs:string{{/isByteArray}}{{^isByteArray}}{{#isArray}}{{#isQueryParam}}{{#items}}xs:{{baseType}}{{/items}}{{/isQueryParam}}{{/isArray}}{{^isArray}}xs:{{dataType}}{{/isArray}}{{/isByteArray}}{{/isFile}}{{/isEnum}}{{/isModel}}{{/isBodyParam}}"{{^description}} /{{/description}}>
|
||||
{{#description}}
|
||||
<xs:annotation>
|
||||
<xs:documentation>{{description}}</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
{{/description}}
|
||||
{{/vendorExtensions.x-param-has-minormax}}
|
||||
{{/allParams}}
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
{{/hasParams}}
|
||||
{{^hasParams}}
|
||||
<xs:complexType name="{{operationId}}_RequestMessage" />
|
||||
{{/hasParams}}
|
||||
{{#responses}}
|
||||
{{^is4xx}}
|
||||
{{^is5xx}}
|
||||
<xs:complexType name="{{operationId}}_ResponseMessage">
|
||||
<xs:sequence>
|
||||
{{#message}}
|
||||
<xs:element minOccurs="1"{{#isArray}} maxOccurs="unbounded"{{/isArray}} name="{{#isModel}}{{#isMap}}response{{/isMap}}{{^isMap}}{{#isFile}}response{{/isFile}}{{^isFile}}{{dataType}}{{/isFile}}{{/isMap}}{{/isModel}}{{^isModel}}{{#isArray}}{{baseType}}{{/isArray}}{{^isArray}}response{{/isArray}}{{/isModel}}"{{#dataType}} type="{{#isModel}}{{#isMap}}xs:{{baseType}}{{/isMap}}{{^isMap}}{{#isFile}}xs:anyType{{/isFile}}{{^isFile}}schemas:{{dataType}}{{/isFile}}{{/isMap}}{{/isModel}}{{^isModel}}{{#isArray}}schemas:{{baseType}}{{/isArray}}{{^isArray}}xs:{{dataType}}{{/isArray}}{{/isModel}}"{{/dataType}}>
|
||||
<xs:annotation>
|
||||
<xs:documentation>{{message}}</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
{{/message}}
|
||||
{{^message}}
|
||||
<xs:element minOccurs="1" name="response" />
|
||||
{{/message}}
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
{{/is5xx}}
|
||||
{{/is4xx}}
|
||||
{{/responses}}
|
||||
{{/operation}}
|
||||
{{/operations}}
|
||||
{{/apis}}
|
||||
{{/apiInfo}}
|
||||
</xs:schema>
|
||||
</types>
|
||||
{{#apiInfo}}
|
||||
{{#apis}}
|
||||
{{#operations}}
|
||||
{{#operation}}
|
||||
<message name="{{operationId}}_RequestMessage">
|
||||
<part name="{{operationId}}_RequestMessage" element="schemas:{{operationId}}_RequestMessage" />
|
||||
</message>
|
||||
{{#responses}}
|
||||
{{#is2xx}}
|
||||
<message name="{{operationId}}_ResponseMessage">
|
||||
<part name="{{operationId}}_ResponseMessage" element="schemas:{{operationId}}_ResponseMessage" />
|
||||
</message>
|
||||
{{/is2xx}}
|
||||
{{#isDefault}}
|
||||
<message name="{{operationId}}_ResponseMessage">
|
||||
<part name="{{operationId}}_ResponseMessage" element="schemas:{{operationId}}_ResponseMessage" />
|
||||
</message>
|
||||
{{/isDefault}}
|
||||
{{#is4xx}}
|
||||
<message name="{{operationId}}_{{code}}">
|
||||
<part name="{{operationId}}_{{code}}" element="schemas:{{operationId}}_{{code}}" />
|
||||
</message>
|
||||
{{/is4xx}}
|
||||
{{#is5xx}}
|
||||
<message name="{{operationId}}_{{code}}">
|
||||
<part name="{{operationId}}_{{code}}" element="schemas:{{operationId}}_{{code}}" />
|
||||
</message>
|
||||
{{/is5xx}}
|
||||
{{/responses}}
|
||||
{{/operation}}
|
||||
{{/operations}}
|
||||
{{/apis}}
|
||||
{{/apiInfo}}
|
||||
<portType name="{{serviceName}}_PortType">
|
||||
{{#apiInfo}}
|
||||
{{#apis}}
|
||||
{{#operations}}
|
||||
{{#operation}}
|
||||
<operation name="{{operationId}}">
|
||||
{{#notes}}
|
||||
<documentation>{{notes}}</documentation>
|
||||
{{/notes}}
|
||||
{{^notes}}
|
||||
{{#summary}}
|
||||
<documentation>{{summary}}</documentation>
|
||||
{{/summary}}
|
||||
{{/notes}}
|
||||
<input message="wsdl:{{operationId}}_RequestMessage" />
|
||||
{{#responses}}
|
||||
{{^is4xx}}
|
||||
{{^is5xx}}
|
||||
<output message="wsdl:{{operationId}}_ResponseMessage"{{^message}} /{{/message}}>
|
||||
{{#message}}
|
||||
<documentation>{{message}}</documentation>
|
||||
</output>
|
||||
{{/message}}
|
||||
{{/is5xx}}
|
||||
{{/is4xx}}
|
||||
{{#is4xx}}
|
||||
<fault name="{{operationId}}_{{code}}" message="wsdl:{{operationId}}_{{code}}"{{^message}} /{{/message}}>
|
||||
{{#message}}
|
||||
<documentation>{{message}}</documentation>
|
||||
</fault>
|
||||
{{/message}}
|
||||
{{/is4xx}}
|
||||
{{#is5xx}}
|
||||
<fault name="{{operationId}}_{{code}}" message="wsdl:{{operationId}}_{{code}}"{{^message}} /{{/message}}>
|
||||
{{#message}}
|
||||
<documentation>{{message}}</documentation>
|
||||
</fault>
|
||||
{{/message}}
|
||||
{{/is5xx}}
|
||||
{{/responses}}
|
||||
</operation>
|
||||
{{/operation}}
|
||||
{{/operations}}
|
||||
{{/apis}}
|
||||
{{/apiInfo}}
|
||||
</portType>
|
||||
<binding name="{{serviceName}}_Binding" type="wsdl:{{serviceName}}_PortType">
|
||||
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />
|
||||
{{#apiInfo}}
|
||||
{{#apis}}
|
||||
{{#operations}}
|
||||
{{#operation}}
|
||||
<operation name="{{operationId}}">
|
||||
<soap:operation soapAction="{{operationId}}" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />
|
||||
<input>
|
||||
<soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />
|
||||
</input>
|
||||
{{#responses}}
|
||||
{{#is2xx}}
|
||||
<output>
|
||||
<soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />
|
||||
</output>
|
||||
{{/is2xx}}
|
||||
{{#is4xx}}
|
||||
<fault name="{{operationId}}_{{code}}">
|
||||
<soap:fault use="literal" name="{{operationId}}_{{code}}" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />
|
||||
</fault>
|
||||
{{/is4xx}}
|
||||
{{#is5xx}}
|
||||
<fault name="{{operationId}}_{{code}}">
|
||||
<soap:fault use="literal" name="{{operationId}}_{{code}}" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />
|
||||
</fault>
|
||||
{{/is5xx}}
|
||||
{{/responses}}
|
||||
</operation>
|
||||
{{/operation}}
|
||||
{{/operations}}
|
||||
{{/apis}}
|
||||
{{/apiInfo}}
|
||||
</binding>
|
||||
<service name="{{serviceName}}">
|
||||
<documentation>{{appDescription}}</documentation>
|
||||
<port name="default_Port" binding="wsdl:{{serviceName}}_Binding">
|
||||
<soap:address location="http://{{hostname}}/{{soapPath}}/{{serviceName}}" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />
|
||||
</port>
|
||||
</service>
|
||||
</definitions>
|
@ -0,0 +1,269 @@
|
||||
package org.openapitools.codegen.wsdl;
|
||||
|
||||
import io.swagger.v3.oas.models.OpenAPI;
|
||||
import io.swagger.v3.oas.models.Operation;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.io.FileUtils;
|
||||
|
||||
import org.openapitools.codegen.ClientOptInput;
|
||||
import org.openapitools.codegen.CodegenOperation;
|
||||
import org.openapitools.codegen.DefaultGenerator;
|
||||
import org.openapitools.codegen.TestUtils;
|
||||
import org.openapitools.codegen.languages.WsdlGeneratorCodegen;
|
||||
|
||||
import org.testng.Assert;
|
||||
import org.testng.annotations.AfterClass;
|
||||
import org.testng.annotations.BeforeClass;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
import static org.openapitools.codegen.TestUtils.assertFileContains;
|
||||
import static org.openapitools.codegen.TestUtils.ensureContainsFile;
|
||||
|
||||
public class WsdlGeneratorTest {
|
||||
private OpenAPI openAPI;
|
||||
private File outputDirectory;
|
||||
private String outputPath;
|
||||
private List<File> listOfFiles;
|
||||
|
||||
@BeforeClass
|
||||
public void setUp() throws IOException {
|
||||
this.openAPI = TestUtils.parseFlattenSpec("src/test/resources/3_0/wsdl/petstore.yaml");
|
||||
this.outputDirectory = Files.createTempDirectory("test").toFile().getCanonicalFile();
|
||||
this.outputPath = this.outputDirectory.getAbsolutePath().replace('\\', '/');
|
||||
|
||||
WsdlGeneratorCodegen codegen = new WsdlGeneratorCodegen();
|
||||
codegen.setOutputDir(this.outputDirectory.getAbsolutePath());
|
||||
|
||||
ClientOptInput input = new ClientOptInput()
|
||||
.openAPI(this.openAPI)
|
||||
.config(codegen);
|
||||
|
||||
DefaultGenerator generator = new DefaultGenerator();
|
||||
this.listOfFiles = generator.opts(input).generate();
|
||||
}
|
||||
|
||||
@Test(description = "ensure that the operationid has been generated correctly")
|
||||
public void testOperationIdGeneration() {
|
||||
final OpenAPI openAPI = this.openAPI;
|
||||
WsdlGeneratorCodegen codegen = new WsdlGeneratorCodegen();
|
||||
codegen.setOpenAPI(openAPI);
|
||||
|
||||
String requestPathWithId = "/store/order/{orderId}";
|
||||
Operation textOperationGet = openAPI.getPaths().get(requestPathWithId).getGet();
|
||||
CodegenOperation opGet = codegen.fromOperation(requestPathWithId, "get", textOperationGet, null);
|
||||
String newOperationIdWithId = codegen.generateOperationId(opGet);
|
||||
|
||||
String requestPathWithoutId = "/store/order";
|
||||
Operation textOperationPost = openAPI.getPaths().get(requestPathWithoutId).getPost();
|
||||
CodegenOperation opPost = codegen.fromOperation(requestPathWithoutId, "post", textOperationPost, null);
|
||||
String newOperationIdWithoutId = codegen.generateOperationId(opPost);
|
||||
|
||||
Assert.assertEquals(newOperationIdWithId, "GetStoreOrderByOrderid");
|
||||
Assert.assertEquals(newOperationIdWithoutId, "PostStoreOrder");
|
||||
}
|
||||
|
||||
@Test(description = "Ensure that passed strings are processed correcly by this method")
|
||||
public void testLowerCaseStringExceptFirstLetter() {
|
||||
WsdlGeneratorCodegen codegen = new WsdlGeneratorCodegen();
|
||||
String value = codegen.lowerCaseStringExceptFirstLetter("uploadPetByPathId");
|
||||
|
||||
Assert.assertEquals(value, "Uploadpetbypathid");
|
||||
}
|
||||
|
||||
@Test(description = "Check if element tags has been created for an operation ")
|
||||
public void testIfElementTagsExist() {
|
||||
String xsElementRequestMessage =
|
||||
"<xs:element name=\"PostPetByPetid_RequestMessage\" type=\"schemas:PostPetByPetid_RequestMessage\" />";
|
||||
String xsElementResponseMessage =
|
||||
"<xs:element name=\"PostPetByPetid_ResponseMessage\" type=\"schemas:PostPetByPetid_ResponseMessage\" />";
|
||||
String xsElementErrorResponse =
|
||||
" <xs:element name=\"PostPetByPetid_405\">\n"
|
||||
+ " <xs:annotation>\n"
|
||||
+ " <xs:documentation>Invalid input</xs:documentation>\n"
|
||||
+ " </xs:annotation>\n"
|
||||
+ " </xs:element>\n";
|
||||
|
||||
assertFileContains(Paths.get(this.outputPath + "/service.wsdl"), xsElementRequestMessage);
|
||||
assertFileContains(Paths.get(this.outputPath + "/service.wsdl"), xsElementResponseMessage);
|
||||
assertFileContains(Paths.get(this.outputPath + "/service.wsdl"), xsElementErrorResponse);
|
||||
}
|
||||
|
||||
@Test(description = "Check if complexType input- and output-message has been created for an operation ")
|
||||
public void testIfInputAndResponseMessageExist() {
|
||||
String complexTypeRequestMessage =
|
||||
" <xs:complexType name=\"GetPetByPetid_RequestMessage\">\n"
|
||||
+ " <xs:sequence>\n"
|
||||
+ " <xs:element minOccurs=\"1\" name=\"petId\" type=\"xs:long\">\n"
|
||||
+ " <xs:annotation>\n"
|
||||
+ " <xs:documentation>ID of pet to return</xs:documentation>\n"
|
||||
+ " </xs:annotation>\n"
|
||||
+ " </xs:element>\n"
|
||||
+ " </xs:sequence>\n"
|
||||
+ " </xs:complexType>\n";
|
||||
|
||||
String complexTypeResponseMessage =
|
||||
" <xs:complexType name=\"GetPetByPetid_ResponseMessage\">\n"
|
||||
+ " <xs:sequence>\n"
|
||||
+ " <xs:element minOccurs=\"1\" name=\"Pet\" type=\"schemas:Pet\">\n"
|
||||
+ " <xs:annotation>\n"
|
||||
+ " <xs:documentation>successful operation</xs:documentation>\n"
|
||||
+ " </xs:annotation>\n"
|
||||
+ " </xs:element>\n"
|
||||
+ " </xs:sequence>\n"
|
||||
+ " </xs:complexType>\n";
|
||||
|
||||
assertFileContains(Paths.get(this.outputPath + "/service.wsdl"), complexTypeRequestMessage);
|
||||
assertFileContains(Paths.get(this.outputPath + "/service.wsdl"), complexTypeResponseMessage);
|
||||
}
|
||||
|
||||
@Test(description =
|
||||
"Check if complexType RequestMessage with minimum and maximum restriction has been created for an operation ")
|
||||
public void testIfRequestMessageMinimumExists() {
|
||||
String complexTypeRequestMessageMinimum =
|
||||
" <xs:complexType name=\"GetStoreOrderByOrderid_RequestMessage\">\n"
|
||||
+ " <xs:sequence>\n"
|
||||
+ " <xs:element minOccurs=\"1\" name=\"orderId\">\n"
|
||||
+ " <xs:simpleType>\n"
|
||||
+ " <xs:annotation>\n"
|
||||
+ " <xs:documentation>ID of pet that needs to be fetched</xs:documentation>\n"
|
||||
+ " </xs:annotation>\n"
|
||||
+ " <xs:restriction base=\"xs:long\">\n"
|
||||
+ " <xs:maxInclusive value=\"10\" />\n"
|
||||
+ " <xs:minInclusive value=\"1\" />\n"
|
||||
+ " </xs:restriction>\n"
|
||||
+ " </xs:simpleType>\n"
|
||||
+ " </xs:element>\n"
|
||||
+ " </xs:sequence>\n"
|
||||
+ " </xs:complexType>\n";
|
||||
|
||||
assertFileContains(Paths.get(this.outputPath + "/service.wsdl"), complexTypeRequestMessageMinimum);
|
||||
}
|
||||
|
||||
@Test(description = "Check if complexType model has been created for an openapi model schema")
|
||||
public void testIfComplexTypeModelExists() {
|
||||
String complexTypeModel =
|
||||
" <xs:complexType name=\"Pet\">\n"
|
||||
+ " <xs:sequence>\n"
|
||||
+ " <xs:element minOccurs=\"0\" name=\"id\" type=\"xs:long\" />\n"
|
||||
+ " <xs:element minOccurs=\"0\" name=\"category\" type=\"schemas:Category\" />\n"
|
||||
+ " <xs:element minOccurs=\"1\" name=\"name\" type=\"xs:string\" />\n"
|
||||
+ " <xs:element minOccurs=\"1\" maxOccurs=\"unbounded\" name=\"photoUrls\" type=\"xs:string\" />\n"
|
||||
+ " <xs:element minOccurs=\"0\" maxOccurs=\"unbounded\" name=\"tags\" type=\"schemas:Tag\" />\n"
|
||||
+ " <xs:element minOccurs=\"0\" name=\"status\" type=\"schemas:Status\">\n"
|
||||
+ " <xs:annotation>\n"
|
||||
+ " <xs:documentation>pet status in the store</xs:documentation>\n"
|
||||
+ " </xs:annotation>\n"
|
||||
+ " </xs:element>\n"
|
||||
+ " </xs:sequence>\n"
|
||||
+ " </xs:complexType>\n";
|
||||
|
||||
assertFileContains(Paths.get(this.outputPath + "/service.wsdl"), complexTypeModel);
|
||||
}
|
||||
|
||||
@Test(description = "Check if message and part tags has been created for an operation ")
|
||||
public void testIfMessageTagsAndContentExist() {
|
||||
String messageRequestMessage =
|
||||
" <message name=\"PostPetByPetid_RequestMessage\">\n"
|
||||
+ " <part name=\"PostPetByPetid_RequestMessage\" element=\"schemas:PostPetByPetid_RequestMessage\" />\n"
|
||||
+ " </message>";
|
||||
|
||||
String messageError =
|
||||
" <message name=\"PostPetByPetid_405\">\n"
|
||||
+ " <part name=\"PostPetByPetid_405\" element=\"schemas:PostPetByPetid_405\" />\n"
|
||||
+ " </message>\n";
|
||||
|
||||
assertFileContains(Paths.get(this.outputPath + "/service.wsdl"), messageRequestMessage);
|
||||
assertFileContains(Paths.get(this.outputPath + "/service.wsdl"), messageError);
|
||||
}
|
||||
|
||||
@Test(description = "Check if portType tag and portType operation has been generated")
|
||||
public void testIfPorttypeOperationExists() {
|
||||
String portType = "<portType name=\"ServiceV1_PortType\">";
|
||||
|
||||
String portTypeOperation =
|
||||
" <operation name=\"GetPetByPetid\">\n"
|
||||
+ " <documentation>Returns a single pet</documentation>\n"
|
||||
+ " <input message=\"wsdl:GetPetByPetid_RequestMessage\" />\n"
|
||||
+ " <output message=\"wsdl:GetPetByPetid_ResponseMessage\">\n"
|
||||
+ " <documentation>successful operation</documentation>\n"
|
||||
+ " </output>\n"
|
||||
+ " <fault name=\"GetPetByPetid_400\" message=\"wsdl:GetPetByPetid_400\">\n"
|
||||
+ " <documentation>Invalid ID supplied</documentation>\n"
|
||||
+ " </fault>\n"
|
||||
+ " <fault name=\"GetPetByPetid_404\" message=\"wsdl:GetPetByPetid_404\">\n"
|
||||
+ " <documentation>Pet not found</documentation>\n"
|
||||
+ " </fault>\n"
|
||||
+ " </operation>\n";
|
||||
|
||||
assertFileContains(Paths.get(this.outputPath + "/service.wsdl"), portType);
|
||||
assertFileContains(Paths.get(this.outputPath + "/service.wsdl"), portTypeOperation);
|
||||
}
|
||||
|
||||
@Test(description = "Check if portType tag and portType operation has been generated")
|
||||
public void testIfBindingOperationExists() {
|
||||
String binding = "<binding name=\"ServiceV1_Binding\" type=\"wsdl:ServiceV1_PortType\">";
|
||||
|
||||
String bindingOperation =
|
||||
" <operation name=\"GetPetByPetid\">\n"
|
||||
+ " <soap:operation soapAction=\"GetPetByPetid\" xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\" />\n"
|
||||
+ " <input>\n"
|
||||
+ " <soap:body use=\"literal\" xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\" />\n"
|
||||
+ " </input>\n"
|
||||
+ " <output>\n"
|
||||
+ " <soap:body use=\"literal\" xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\" />\n"
|
||||
+ " </output>\n"
|
||||
+ " <fault name=\"GetPetByPetid_400\">\n"
|
||||
+ " <soap:fault use=\"literal\" name=\"GetPetByPetid_400\" xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\" />\n"
|
||||
+ " </fault>\n"
|
||||
+ " <fault name=\"GetPetByPetid_404\">\n"
|
||||
+ " <soap:fault use=\"literal\" name=\"GetPetByPetid_404\" xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\" />\n"
|
||||
+ " </fault>\n"
|
||||
+ " </operation>\n";
|
||||
|
||||
assertFileContains(Paths.get(this.outputPath + "/service.wsdl"), binding);
|
||||
assertFileContains(Paths.get(this.outputPath + "/service.wsdl"), bindingOperation);
|
||||
}
|
||||
|
||||
@Test(description = "Ensure that all files have been correctly generated")
|
||||
public void testFileGeneration() throws Exception {
|
||||
Assert.assertEquals(this.listOfFiles.size(), 5);
|
||||
ensureContainsFile(this.listOfFiles, this.outputDirectory, ".openapi-generator-ignore");
|
||||
ensureContainsFile(this.listOfFiles, this.outputDirectory, ".openapi-generator/FILES");
|
||||
ensureContainsFile(this.listOfFiles, this.outputDirectory, ".openapi-generator/VERSION");
|
||||
ensureContainsFile(this.listOfFiles, this.outputDirectory, "service.wsdl");
|
||||
ensureContainsFile(this.listOfFiles, this.outputDirectory, "jaxb-customization.xml");
|
||||
}
|
||||
|
||||
@Test(description = "Ensure that default description is set if it doesn't exist")
|
||||
public void testOpenapiDescriptionWasNotProvided() throws IOException {
|
||||
final OpenAPI openAPI = TestUtils.parseFlattenSpec("src/test/resources/3_0/ping.yaml");
|
||||
File outputDirectory = Files.createTempDirectory("test").toFile().getCanonicalFile();
|
||||
String outputPath = this.outputDirectory.getAbsolutePath().replace('\\', '/');
|
||||
|
||||
WsdlGeneratorCodegen codegen = new WsdlGeneratorCodegen();
|
||||
codegen.setOutputDir(this.outputDirectory.getAbsolutePath());
|
||||
|
||||
ClientOptInput input = new ClientOptInput().openAPI(openAPI).config(codegen);
|
||||
|
||||
DefaultGenerator generator = new DefaultGenerator();
|
||||
generator.opts(input).generate();
|
||||
|
||||
String value = "<documentation>No description provided</documentation>";
|
||||
assertFileContains(Paths.get(outputPath + "/service.wsdl"), value);
|
||||
|
||||
FileUtils.deleteDirectory(outputDirectory);
|
||||
}
|
||||
|
||||
|
||||
@AfterClass
|
||||
public void cleanUp() throws Exception {
|
||||
// Delete temp folder
|
||||
FileUtils.deleteDirectory(this.outputDirectory);
|
||||
}
|
||||
}
|
@ -0,0 +1,728 @@
|
||||
openapi: 3.0.1
|
||||
info:
|
||||
title: Swagger Petstore
|
||||
description: 'This is a sample server Petstore server. You can find out more about Swagger
|
||||
at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For
|
||||
this sample, you can use the api key `special-key` to test the authorization filters.'
|
||||
termsOfService: http://swagger.io/terms/
|
||||
contact:
|
||||
email: apiteam@swagger.io
|
||||
license:
|
||||
name: Apache 2.0
|
||||
url: http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
version: 1.0.0
|
||||
externalDocs:
|
||||
description: Find out more about Swagger
|
||||
url: http://swagger.io
|
||||
servers:
|
||||
- url: https://petstore.swagger.io/v2
|
||||
- url: http://petstore.swagger.io/v2
|
||||
tags:
|
||||
- name: pet
|
||||
description: Everything about your Pets
|
||||
externalDocs:
|
||||
description: Find out more
|
||||
url: http://swagger.io
|
||||
- name: store
|
||||
description: Access to Petstore orders
|
||||
- name: user
|
||||
description: Operations about user
|
||||
externalDocs:
|
||||
description: Find out more about our store
|
||||
url: http://swagger.io
|
||||
paths:
|
||||
/pet:
|
||||
put:
|
||||
tags:
|
||||
- pet
|
||||
summary: Update an existing pet
|
||||
operationId: updatePet
|
||||
requestBody:
|
||||
description: Pet object that needs to be added to the store
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
application/xml:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
required: true
|
||||
responses:
|
||||
400:
|
||||
description: Invalid ID supplied
|
||||
content: {}
|
||||
404:
|
||||
description: Pet not found
|
||||
content: {}
|
||||
405:
|
||||
description: Validation exception
|
||||
content: {}
|
||||
security:
|
||||
- petstore_auth:
|
||||
- write:pets
|
||||
- read:pets
|
||||
x-codegen-request-body-name: body
|
||||
post:
|
||||
tags:
|
||||
- pet
|
||||
summary: Add a new pet to the store
|
||||
operationId: addPet
|
||||
requestBody:
|
||||
description: Pet object that needs to be added to the store
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
application/xml:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
required: true
|
||||
responses:
|
||||
405:
|
||||
description: Invalid input
|
||||
content: {}
|
||||
security:
|
||||
- petstore_auth:
|
||||
- write:pets
|
||||
- read:pets
|
||||
x-codegen-request-body-name: body
|
||||
/pet/findByStatus:
|
||||
get:
|
||||
tags:
|
||||
- pet
|
||||
summary: Finds Pets by status
|
||||
description: Multiple status values can be provided with comma separated strings
|
||||
operationId: findPetsByStatus
|
||||
parameters:
|
||||
- name: status
|
||||
in: query
|
||||
description: Status values that need to be considered for filter
|
||||
required: true
|
||||
style: form
|
||||
explode: true
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
default: available
|
||||
enum:
|
||||
- available
|
||||
- pending
|
||||
- sold
|
||||
responses:
|
||||
200:
|
||||
description: successful operation
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
application/json:
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
400:
|
||||
description: Invalid status value
|
||||
content: {}
|
||||
security:
|
||||
- petstore_auth:
|
||||
- write:pets
|
||||
- read:pets
|
||||
/pet/findByTags:
|
||||
get:
|
||||
tags:
|
||||
- pet
|
||||
summary: Finds Pets by tags
|
||||
description: Muliple tags can be provided with comma separated strings. Use tag1,
|
||||
tag2, tag3 for testing.
|
||||
operationId: findPetsByTags
|
||||
parameters:
|
||||
- name: tags
|
||||
in: query
|
||||
description: Tags to filter by
|
||||
required: true
|
||||
style: form
|
||||
explode: true
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
responses:
|
||||
200:
|
||||
description: successful operation
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
application/json:
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
400:
|
||||
description: Invalid tag value
|
||||
content: {}
|
||||
deprecated: true
|
||||
security:
|
||||
- petstore_auth:
|
||||
- write:pets
|
||||
- read:pets
|
||||
/pet/{petId}:
|
||||
get:
|
||||
tags:
|
||||
- pet
|
||||
summary: Find pet by ID
|
||||
description: Returns a single pet
|
||||
operationId: getPetById
|
||||
parameters:
|
||||
- name: petId
|
||||
in: path
|
||||
description: ID of pet to return
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
format: int64
|
||||
responses:
|
||||
200:
|
||||
description: successful operation
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Pet'
|
||||
400:
|
||||
description: Invalid ID supplied
|
||||
content: {}
|
||||
404:
|
||||
description: Pet not found
|
||||
content: {}
|
||||
security:
|
||||
- api_key: []
|
||||
post:
|
||||
tags:
|
||||
- pet
|
||||
summary: Updates a pet in the store with form data
|
||||
operationId: updatePetWithForm
|
||||
parameters:
|
||||
- name: petId
|
||||
in: path
|
||||
description: ID of pet that needs to be updated
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
format: int64
|
||||
requestBody:
|
||||
content:
|
||||
application/x-www-form-urlencoded:
|
||||
schema:
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
description: Updated name of the pet
|
||||
status:
|
||||
type: string
|
||||
description: Updated status of the pet
|
||||
responses:
|
||||
405:
|
||||
description: Invalid input
|
||||
content: {}
|
||||
security:
|
||||
- petstore_auth:
|
||||
- write:pets
|
||||
- read:pets
|
||||
delete:
|
||||
tags:
|
||||
- pet
|
||||
summary: Deletes a pet
|
||||
operationId: deletePet
|
||||
parameters:
|
||||
- name: api_key
|
||||
in: header
|
||||
schema:
|
||||
type: string
|
||||
- name: petId
|
||||
in: path
|
||||
description: Pet id to delete
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
format: int64
|
||||
responses:
|
||||
400:
|
||||
description: Invalid ID supplied
|
||||
content: {}
|
||||
404:
|
||||
description: Pet not found
|
||||
content: {}
|
||||
security:
|
||||
- petstore_auth:
|
||||
- write:pets
|
||||
- read:pets
|
||||
/pet/{petId}/uploadImage:
|
||||
post:
|
||||
tags:
|
||||
- pet
|
||||
summary: uploads an image
|
||||
operationId: uploadFile
|
||||
parameters:
|
||||
- name: petId
|
||||
in: path
|
||||
description: ID of pet to update
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
format: int64
|
||||
requestBody:
|
||||
content:
|
||||
multipart/form-data:
|
||||
schema:
|
||||
properties:
|
||||
additionalMetadata:
|
||||
type: string
|
||||
description: Additional data to pass to server
|
||||
file:
|
||||
type: string
|
||||
description: file to upload
|
||||
format: binary
|
||||
responses:
|
||||
200:
|
||||
description: successful operation
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/ApiResponse'
|
||||
security:
|
||||
- petstore_auth:
|
||||
- write:pets
|
||||
- read:pets
|
||||
/store/inventory:
|
||||
get:
|
||||
tags:
|
||||
- store
|
||||
summary: Returns pet inventories by status
|
||||
description: Returns a map of status codes to quantities
|
||||
operationId: getInventory
|
||||
responses:
|
||||
200:
|
||||
description: successful operation
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
additionalProperties:
|
||||
type: integer
|
||||
format: int32
|
||||
security:
|
||||
- api_key: []
|
||||
/store/order:
|
||||
post:
|
||||
tags:
|
||||
- store
|
||||
summary: Place an order for a pet
|
||||
operationId: placeOrder
|
||||
requestBody:
|
||||
description: order placed for purchasing the pet
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
$ref: '#/components/schemas/Order'
|
||||
required: true
|
||||
responses:
|
||||
200:
|
||||
description: successful operation
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Order'
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Order'
|
||||
400:
|
||||
description: Invalid Order
|
||||
content: {}
|
||||
x-codegen-request-body-name: body
|
||||
/store/order/{orderId}:
|
||||
get:
|
||||
tags:
|
||||
- store
|
||||
summary: Find purchase order by ID
|
||||
description: For valid response try integer IDs with value >= 1 and <= 10. Other
|
||||
values will generated exceptions
|
||||
operationId: getOrderById
|
||||
parameters:
|
||||
- name: orderId
|
||||
in: path
|
||||
description: ID of pet that needs to be fetched
|
||||
required: true
|
||||
schema:
|
||||
maximum: 10.0
|
||||
minimum: 1.0
|
||||
type: integer
|
||||
format: int64
|
||||
responses:
|
||||
200:
|
||||
description: successful operation
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Order'
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Order'
|
||||
400:
|
||||
description: Invalid ID supplied
|
||||
content: {}
|
||||
404:
|
||||
description: Order not found
|
||||
content: {}
|
||||
delete:
|
||||
tags:
|
||||
- store
|
||||
summary: Delete purchase order by ID
|
||||
description: For valid response try integer IDs with positive integer value. Negative
|
||||
or non-integer values will generate API errors
|
||||
operationId: deleteOrder
|
||||
parameters:
|
||||
- name: orderId
|
||||
in: path
|
||||
description: ID of the order that needs to be deleted
|
||||
required: true
|
||||
schema:
|
||||
minimum: 1.0
|
||||
type: integer
|
||||
format: int64
|
||||
responses:
|
||||
400:
|
||||
description: Invalid ID supplied
|
||||
content: {}
|
||||
404:
|
||||
description: Order not found
|
||||
content: {}
|
||||
/user:
|
||||
post:
|
||||
tags:
|
||||
- user
|
||||
summary: Create user
|
||||
description: This can only be done by the logged in user.
|
||||
operationId: createUser
|
||||
requestBody:
|
||||
description: Created user object
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
$ref: '#/components/schemas/User'
|
||||
required: true
|
||||
responses:
|
||||
default:
|
||||
description: successful operation
|
||||
content: {}
|
||||
x-codegen-request-body-name: body
|
||||
/user/createWithArray:
|
||||
post:
|
||||
tags:
|
||||
- user
|
||||
summary: Creates list of users with given input array
|
||||
operationId: createUsersWithArrayInput
|
||||
requestBody:
|
||||
description: List of user object
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/User'
|
||||
required: true
|
||||
responses:
|
||||
default:
|
||||
description: successful operation
|
||||
content: {}
|
||||
x-codegen-request-body-name: body
|
||||
/user/createWithList:
|
||||
post:
|
||||
tags:
|
||||
- user
|
||||
summary: Creates list of users with given input array
|
||||
operationId: createUsersWithListInput
|
||||
requestBody:
|
||||
description: List of user object
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/User'
|
||||
required: true
|
||||
responses:
|
||||
default:
|
||||
description: successful operation
|
||||
content: {}
|
||||
x-codegen-request-body-name: body
|
||||
/user/login:
|
||||
get:
|
||||
tags:
|
||||
- user
|
||||
summary: Logs user into the system
|
||||
operationId: loginUser
|
||||
parameters:
|
||||
- name: username
|
||||
in: query
|
||||
description: The user name for login
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
- name: password
|
||||
in: query
|
||||
description: The password for login in clear text
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
200:
|
||||
description: successful operation
|
||||
headers:
|
||||
X-Rate-Limit:
|
||||
description: calls per hour allowed by the user
|
||||
schema:
|
||||
type: integer
|
||||
format: int32
|
||||
X-Expires-After:
|
||||
description: date in UTC when token expires
|
||||
schema:
|
||||
type: string
|
||||
format: date-time
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
type: string
|
||||
application/json:
|
||||
schema:
|
||||
type: string
|
||||
400:
|
||||
description: Invalid username/password supplied
|
||||
content: {}
|
||||
/user/logout:
|
||||
get:
|
||||
tags:
|
||||
- user
|
||||
summary: Logs out current logged in user session
|
||||
operationId: logoutUser
|
||||
responses:
|
||||
default:
|
||||
description: successful operation
|
||||
content: {}
|
||||
/user/{username}:
|
||||
get:
|
||||
tags:
|
||||
- user
|
||||
summary: Get user by user name
|
||||
operationId: getUserByName
|
||||
parameters:
|
||||
- name: username
|
||||
in: path
|
||||
description: 'The name that needs to be fetched. Use user1 for testing. '
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
200:
|
||||
description: successful operation
|
||||
content:
|
||||
application/xml:
|
||||
schema:
|
||||
$ref: '#/components/schemas/User'
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/User'
|
||||
400:
|
||||
description: Invalid username supplied
|
||||
content: {}
|
||||
404:
|
||||
description: User not found
|
||||
content: {}
|
||||
put:
|
||||
tags:
|
||||
- user
|
||||
summary: Updated user
|
||||
description: This can only be done by the logged in user.
|
||||
operationId: updateUser
|
||||
parameters:
|
||||
- name: username
|
||||
in: path
|
||||
description: name that need to be updated
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
requestBody:
|
||||
description: Updated user object
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
$ref: '#/components/schemas/User'
|
||||
required: true
|
||||
responses:
|
||||
400:
|
||||
description: Invalid user supplied
|
||||
content: {}
|
||||
404:
|
||||
description: User not found
|
||||
content: {}
|
||||
x-codegen-request-body-name: body
|
||||
delete:
|
||||
tags:
|
||||
- user
|
||||
summary: Delete user
|
||||
description: This can only be done by the logged in user.
|
||||
operationId: deleteUser
|
||||
parameters:
|
||||
- name: username
|
||||
in: path
|
||||
description: The name that needs to be deleted
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
400:
|
||||
description: Invalid username supplied
|
||||
content: {}
|
||||
404:
|
||||
description: User not found
|
||||
content: {}
|
||||
components:
|
||||
schemas:
|
||||
Order:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
format: int64
|
||||
petId:
|
||||
type: integer
|
||||
format: int64
|
||||
quantity:
|
||||
type: integer
|
||||
format: int32
|
||||
shipDate:
|
||||
type: string
|
||||
format: date-time
|
||||
status:
|
||||
type: string
|
||||
description: Order Status
|
||||
enum:
|
||||
- placed
|
||||
- approved
|
||||
- delivered
|
||||
complete:
|
||||
type: boolean
|
||||
default: false
|
||||
xml:
|
||||
name: Order
|
||||
Category:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
format: int64
|
||||
name:
|
||||
type: string
|
||||
xml:
|
||||
name: Category
|
||||
User:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
format: int64
|
||||
username:
|
||||
type: string
|
||||
firstName:
|
||||
type: string
|
||||
lastName:
|
||||
type: string
|
||||
email:
|
||||
type: string
|
||||
password:
|
||||
type: string
|
||||
phone:
|
||||
type: string
|
||||
userStatus:
|
||||
type: integer
|
||||
description: User Status
|
||||
format: int32
|
||||
xml:
|
||||
name: User
|
||||
Tag:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
format: int64
|
||||
name:
|
||||
type: string
|
||||
xml:
|
||||
name: Tag
|
||||
Pet:
|
||||
required:
|
||||
- name
|
||||
- photoUrls
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
format: int64
|
||||
category:
|
||||
$ref: '#/components/schemas/Category'
|
||||
name:
|
||||
type: string
|
||||
example: doggie
|
||||
photoUrls:
|
||||
type: array
|
||||
xml:
|
||||
name: photoUrl
|
||||
wrapped: true
|
||||
items:
|
||||
type: string
|
||||
tags:
|
||||
type: array
|
||||
xml:
|
||||
name: tag
|
||||
wrapped: true
|
||||
items:
|
||||
$ref: '#/components/schemas/Tag'
|
||||
status:
|
||||
type: string
|
||||
description: pet status in the store
|
||||
enum:
|
||||
- available
|
||||
- pending
|
||||
- sold
|
||||
xml:
|
||||
name: Pet
|
||||
ApiResponse:
|
||||
type: object
|
||||
properties:
|
||||
code:
|
||||
type: integer
|
||||
format: int32
|
||||
type:
|
||||
type: string
|
||||
message:
|
||||
type: string
|
||||
securitySchemes:
|
||||
petstore_auth:
|
||||
type: oauth2
|
||||
flows:
|
||||
implicit:
|
||||
authorizationUrl: http://petstore.swagger.io/oauth/dialog
|
||||
scopes:
|
||||
write:pets: modify pets in your account
|
||||
read:pets: read your pets
|
||||
api_key:
|
||||
type: apiKey
|
||||
name: api_key
|
||||
in: header
|
@ -3,6 +3,7 @@
|
||||
.travis.yml
|
||||
DESCRIPTION
|
||||
NAMESPACE
|
||||
README.md
|
||||
R/api_client.R
|
||||
R/api_response.R
|
||||
R/category.R
|
||||
@ -14,7 +15,6 @@ R/store_api.R
|
||||
R/tag.R
|
||||
R/user.R
|
||||
R/user_api.R
|
||||
README.md
|
||||
docs/Category.md
|
||||
docs/ModelApiResponse.md
|
||||
docs/Order.md
|
||||
|
@ -55,6 +55,7 @@ docs/Model/SpecialModelName.md
|
||||
docs/Model/Tag.md
|
||||
docs/Model/User.md
|
||||
git_push.sh
|
||||
lib/ApiException.php
|
||||
lib/Api/AnotherFakeApi.php
|
||||
lib/Api/DefaultApi.php
|
||||
lib/Api/FakeApi.php
|
||||
@ -62,7 +63,6 @@ lib/Api/FakeClassnameTags123Api.php
|
||||
lib/Api/PetApi.php
|
||||
lib/Api/StoreApi.php
|
||||
lib/Api/UserApi.php
|
||||
lib/ApiException.php
|
||||
lib/Configuration.php
|
||||
lib/HeaderSelector.php
|
||||
lib/Model/AdditionalPropertiesClass.php
|
||||
|
@ -13,8 +13,8 @@
|
||||
</testsuites>
|
||||
<filter>
|
||||
<whitelist processUncoveredFilesFromWhitelist="true">
|
||||
<directory suffix=".php">./lib/Api</directory>
|
||||
<directory suffix=".php">./lib/Model</directory>
|
||||
<directory suffix=".php">./lib\/Api</directory>
|
||||
<directory suffix=".php">./lib\/Model</directory>
|
||||
</whitelist>
|
||||
</filter>
|
||||
<php>
|
||||
|
@ -79,12 +79,12 @@ Class | Method | HTTP request | Description
|
||||
|
||||
## Documentation for Models
|
||||
|
||||
- [PSPetstore/Model.ApiResponse](docs/ApiResponse.md)
|
||||
- [PSPetstore/Model.Category](docs/Category.md)
|
||||
- [PSPetstore/Model.Order](docs/Order.md)
|
||||
- [PSPetstore/Model.Pet](docs/Pet.md)
|
||||
- [PSPetstore/Model.Tag](docs/Tag.md)
|
||||
- [PSPetstore/Model.User](docs/User.md)
|
||||
- [PSPetstore\Model.ApiResponse](docs/ApiResponse.md)
|
||||
- [PSPetstore\Model.Category](docs/Category.md)
|
||||
- [PSPetstore\Model.Order](docs/Order.md)
|
||||
- [PSPetstore\Model.Pet](docs/Pet.md)
|
||||
- [PSPetstore\Model.Tag](docs/Tag.md)
|
||||
- [PSPetstore\Model.User](docs/User.md)
|
||||
|
||||
|
||||
## Documentation for Authorization
|
||||
|
@ -1,4 +1,4 @@
|
||||
# PSPetstore.PSPetstore/Api.PSPetApi
|
||||
# PSPetstore.PSPetstore\Api.PSPetApi
|
||||
|
||||
All URIs are relative to *http://petstore.swagger.io:80/v2*
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# PSPetstore.PSPetstore/Api.PSStoreApi
|
||||
# PSPetstore.PSPetstore\Api.PSStoreApi
|
||||
|
||||
All URIs are relative to *http://petstore.swagger.io:80/v2*
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# PSPetstore.PSPetstore/Api.PSUserApi
|
||||
# PSPetstore.PSPetstore\Api.PSUserApi
|
||||
|
||||
All URIs are relative to *http://petstore.swagger.io:80/v2*
|
||||
|
||||
|
@ -51,6 +51,7 @@ export interface Capitalization {
|
||||
sCAETHFlowPoints?: string;
|
||||
/**
|
||||
* Name of the pet
|
||||
|
||||
* @type {string}
|
||||
* @memberof Capitalization
|
||||
*/
|
||||
|
23
samples/documentation/wsdl/.openapi-generator-ignore
Normal file
23
samples/documentation/wsdl/.openapi-generator-ignore
Normal file
@ -0,0 +1,23 @@
|
||||
# OpenAPI Generator Ignore
|
||||
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
|
||||
|
||||
# Use this file to prevent files from being overwritten by the generator.
|
||||
# The patterns follow closely to .gitignore or .dockerignore.
|
||||
|
||||
# As an example, the C# client generator defines ApiClient.cs.
|
||||
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
|
||||
#ApiClient.cs
|
||||
|
||||
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
||||
#foo/*/qux
|
||||
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
||||
|
||||
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
||||
#foo/**/qux
|
||||
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
||||
|
||||
# You can also negate patterns with an exclamation (!).
|
||||
# For example, you can ignore all files in a docs folder with the file extension .md:
|
||||
#docs/*.md
|
||||
# Then explicitly reverse the ignore rule for a single file:
|
||||
#!docs/README.md
|
2
samples/documentation/wsdl/.openapi-generator/FILES
Normal file
2
samples/documentation/wsdl/.openapi-generator/FILES
Normal file
@ -0,0 +1,2 @@
|
||||
jaxb-customization.xml
|
||||
service.wsdl
|
1
samples/documentation/wsdl/.openapi-generator/VERSION
Normal file
1
samples/documentation/wsdl/.openapi-generator/VERSION
Normal file
@ -0,0 +1 @@
|
||||
5.2.0-SNAPSHOT
|
28
samples/documentation/wsdl/jaxb-customization.xml
Normal file
28
samples/documentation/wsdl/jaxb-customization.xml
Normal file
@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<jaxws:bindings
|
||||
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
|
||||
xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
|
||||
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.1"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
wsdlLocation="service.wsdl">
|
||||
|
||||
<enableWrapperStyle>true</enableWrapperStyle>
|
||||
<enableAsyncMapping>false</enableAsyncMapping>
|
||||
|
||||
<jaxws:bindings node="xsd:simpleType[@name='Status']">
|
||||
<jaxb:typesafeEnumClass>
|
||||
<jaxb:typesafeEnumMember value="placed" name="PLACED" />
|
||||
<jaxb:typesafeEnumMember value="approved" name="APPROVED" />
|
||||
<jaxb:typesafeEnumMember value="delivered" name="DELIVERED" />
|
||||
</jaxb:typesafeEnumClass>
|
||||
</jaxws:bindings>
|
||||
<jaxws:bindings node="xsd:simpleType[@name='Status']">
|
||||
<jaxb:typesafeEnumClass>
|
||||
<jaxb:typesafeEnumMember value="available" name="AVAILABLE" />
|
||||
<jaxb:typesafeEnumMember value="pending" name="PENDING" />
|
||||
<jaxb:typesafeEnumMember value="sold" name="SOLD" />
|
||||
</jaxb:typesafeEnumClass>
|
||||
</jaxws:bindings>
|
||||
|
||||
|
||||
</jaxws:bindings>
|
1158
samples/documentation/wsdl/service.wsdl
Normal file
1158
samples/documentation/wsdl/service.wsdl
Normal file
File diff suppressed because it is too large
Load Diff
@ -105,53 +105,52 @@ Class | Method | HTTP request | Description
|
||||
[*UserApi*](doc/UserApi.md) | [**logoutUser**](doc/UserApi.md#logoutuser) | **GET** /user/logout | Logs out current logged in user session
|
||||
[*UserApi*](doc/UserApi.md) | [**updateUser**](doc/UserApi.md#updateuser) | **PUT** /user/{username} | Updated user
|
||||
|
||||
|
||||
## Documentation For Models
|
||||
|
||||
- [AdditionalPropertiesClass](doc/AdditionalPropertiesClass.md)
|
||||
- [Animal](doc/Animal.md)
|
||||
- [ApiResponse](doc/ApiResponse.md)
|
||||
- [ArrayOfArrayOfNumberOnly](doc/ArrayOfArrayOfNumberOnly.md)
|
||||
- [ArrayOfNumberOnly](doc/ArrayOfNumberOnly.md)
|
||||
- [ArrayTest](doc/ArrayTest.md)
|
||||
- [Capitalization](doc/Capitalization.md)
|
||||
- [Cat](doc/Cat.md)
|
||||
- [CatAllOf](doc/CatAllOf.md)
|
||||
- [Category](doc/Category.md)
|
||||
- [ClassModel](doc/ClassModel.md)
|
||||
- [Dog](doc/Dog.md)
|
||||
- [DogAllOf](doc/DogAllOf.md)
|
||||
- [EnumArrays](doc/EnumArrays.md)
|
||||
- [EnumTest](doc/EnumTest.md)
|
||||
- [FileSchemaTestClass](doc/FileSchemaTestClass.md)
|
||||
- [Foo](doc/Foo.md)
|
||||
- [FormatTest](doc/FormatTest.md)
|
||||
- [HasOnlyReadOnly](doc/HasOnlyReadOnly.md)
|
||||
- [HealthCheckResult](doc/HealthCheckResult.md)
|
||||
- [InlineResponseDefault](doc/InlineResponseDefault.md)
|
||||
- [MapTest](doc/MapTest.md)
|
||||
- [MixedPropertiesAndAdditionalPropertiesClass](doc/MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||
- [Model200Response](doc/Model200Response.md)
|
||||
- [ModelClient](doc/ModelClient.md)
|
||||
- [ModelEnumClass](doc/ModelEnumClass.md)
|
||||
- [ModelFile](doc/ModelFile.md)
|
||||
- [ModelList](doc/ModelList.md)
|
||||
- [ModelReturn](doc/ModelReturn.md)
|
||||
- [Name](doc/Name.md)
|
||||
- [NullableClass](doc/NullableClass.md)
|
||||
- [NumberOnly](doc/NumberOnly.md)
|
||||
- [Order](doc/Order.md)
|
||||
- [OuterComposite](doc/OuterComposite.md)
|
||||
- [OuterEnum](doc/OuterEnum.md)
|
||||
- [OuterEnumDefaultValue](doc/OuterEnumDefaultValue.md)
|
||||
- [OuterEnumInteger](doc/OuterEnumInteger.md)
|
||||
- [OuterEnumIntegerDefaultValue](doc/OuterEnumIntegerDefaultValue.md)
|
||||
- [OuterObjectWithEnumProperty](doc/OuterObjectWithEnumProperty.md)
|
||||
- [Pet](doc/Pet.md)
|
||||
- [ReadOnlyFirst](doc/ReadOnlyFirst.md)
|
||||
- [SpecialModelName](doc/SpecialModelName.md)
|
||||
- [Tag](doc/Tag.md)
|
||||
- [User](doc/User.md)
|
||||
- [AdditionalPropertiesClass](doc\AdditionalPropertiesClass.md)
|
||||
- [Animal](doc\Animal.md)
|
||||
- [ApiResponse](doc\ApiResponse.md)
|
||||
- [ArrayOfArrayOfNumberOnly](doc\ArrayOfArrayOfNumberOnly.md)
|
||||
- [ArrayOfNumberOnly](doc\ArrayOfNumberOnly.md)
|
||||
- [ArrayTest](doc\ArrayTest.md)
|
||||
- [Capitalization](doc\Capitalization.md)
|
||||
- [Cat](doc\Cat.md)
|
||||
- [CatAllOf](doc\CatAllOf.md)
|
||||
- [Category](doc\Category.md)
|
||||
- [ClassModel](doc\ClassModel.md)
|
||||
- [Dog](doc\Dog.md)
|
||||
- [DogAllOf](doc\DogAllOf.md)
|
||||
- [EnumArrays](doc\EnumArrays.md)
|
||||
- [EnumTest](doc\EnumTest.md)
|
||||
- [FileSchemaTestClass](doc\FileSchemaTestClass.md)
|
||||
- [Foo](doc\Foo.md)
|
||||
- [FormatTest](doc\FormatTest.md)
|
||||
- [HasOnlyReadOnly](doc\HasOnlyReadOnly.md)
|
||||
- [HealthCheckResult](doc\HealthCheckResult.md)
|
||||
- [InlineResponseDefault](doc\InlineResponseDefault.md)
|
||||
- [MapTest](doc\MapTest.md)
|
||||
- [MixedPropertiesAndAdditionalPropertiesClass](doc\MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||
- [Model200Response](doc\Model200Response.md)
|
||||
- [ModelClient](doc\ModelClient.md)
|
||||
- [ModelEnumClass](doc\ModelEnumClass.md)
|
||||
- [ModelFile](doc\ModelFile.md)
|
||||
- [ModelList](doc\ModelList.md)
|
||||
- [ModelReturn](doc\ModelReturn.md)
|
||||
- [Name](doc\Name.md)
|
||||
- [NullableClass](doc\NullableClass.md)
|
||||
- [NumberOnly](doc\NumberOnly.md)
|
||||
- [Order](doc\Order.md)
|
||||
- [OuterComposite](doc\OuterComposite.md)
|
||||
- [OuterEnum](doc\OuterEnum.md)
|
||||
- [OuterEnumDefaultValue](doc\OuterEnumDefaultValue.md)
|
||||
- [OuterEnumInteger](doc\OuterEnumInteger.md)
|
||||
- [OuterEnumIntegerDefaultValue](doc\OuterEnumIntegerDefaultValue.md)
|
||||
- [OuterObjectWithEnumProperty](doc\OuterObjectWithEnumProperty.md)
|
||||
- [Pet](doc\Pet.md)
|
||||
- [ReadOnlyFirst](doc\ReadOnlyFirst.md)
|
||||
- [SpecialModelName](doc\SpecialModelName.md)
|
||||
- [Tag](doc\Tag.md)
|
||||
- [User](doc\User.md)
|
||||
|
||||
|
||||
## Documentation For Authorization
|
||||
|
@ -82,12 +82,12 @@ Class | Method | HTTP request | Description
|
||||
|
||||
## Documentation For Models
|
||||
|
||||
- [ApiResponse](doc/ApiResponse.md)
|
||||
- [Category](doc/Category.md)
|
||||
- [Order](doc/Order.md)
|
||||
- [Pet](doc/Pet.md)
|
||||
- [Tag](doc/Tag.md)
|
||||
- [User](doc/User.md)
|
||||
- [ApiResponse](doc\ApiResponse.md)
|
||||
- [Category](doc\Category.md)
|
||||
- [Order](doc\Order.md)
|
||||
- [Pet](doc\Pet.md)
|
||||
- [Tag](doc\Tag.md)
|
||||
- [User](doc\User.md)
|
||||
|
||||
|
||||
## Documentation For Authorization
|
||||
|
@ -102,50 +102,50 @@ Class | Method | HTTP request | Description
|
||||
|
||||
## Documentation For Models
|
||||
|
||||
- [AdditionalPropertiesClass](doc/AdditionalPropertiesClass.md)
|
||||
- [Animal](doc/Animal.md)
|
||||
- [ApiResponse](doc/ApiResponse.md)
|
||||
- [ArrayOfArrayOfNumberOnly](doc/ArrayOfArrayOfNumberOnly.md)
|
||||
- [ArrayOfNumberOnly](doc/ArrayOfNumberOnly.md)
|
||||
- [ArrayTest](doc/ArrayTest.md)
|
||||
- [Capitalization](doc/Capitalization.md)
|
||||
- [Cat](doc/Cat.md)
|
||||
- [CatAllOf](doc/CatAllOf.md)
|
||||
- [Category](doc/Category.md)
|
||||
- [ClassModel](doc/ClassModel.md)
|
||||
- [Dog](doc/Dog.md)
|
||||
- [DogAllOf](doc/DogAllOf.md)
|
||||
- [EnumArrays](doc/EnumArrays.md)
|
||||
- [EnumTest](doc/EnumTest.md)
|
||||
- [FileSchemaTestClass](doc/FileSchemaTestClass.md)
|
||||
- [Foo](doc/Foo.md)
|
||||
- [FormatTest](doc/FormatTest.md)
|
||||
- [HasOnlyReadOnly](doc/HasOnlyReadOnly.md)
|
||||
- [HealthCheckResult](doc/HealthCheckResult.md)
|
||||
- [InlineResponseDefault](doc/InlineResponseDefault.md)
|
||||
- [MapTest](doc/MapTest.md)
|
||||
- [MixedPropertiesAndAdditionalPropertiesClass](doc/MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||
- [Model200Response](doc/Model200Response.md)
|
||||
- [ModelClient](doc/ModelClient.md)
|
||||
- [ModelEnumClass](doc/ModelEnumClass.md)
|
||||
- [ModelFile](doc/ModelFile.md)
|
||||
- [ModelList](doc/ModelList.md)
|
||||
- [ModelReturn](doc/ModelReturn.md)
|
||||
- [Name](doc/Name.md)
|
||||
- [NullableClass](doc/NullableClass.md)
|
||||
- [NumberOnly](doc/NumberOnly.md)
|
||||
- [Order](doc/Order.md)
|
||||
- [OuterComposite](doc/OuterComposite.md)
|
||||
- [OuterEnum](doc/OuterEnum.md)
|
||||
- [OuterEnumDefaultValue](doc/OuterEnumDefaultValue.md)
|
||||
- [OuterEnumInteger](doc/OuterEnumInteger.md)
|
||||
- [OuterEnumIntegerDefaultValue](doc/OuterEnumIntegerDefaultValue.md)
|
||||
- [OuterObjectWithEnumProperty](doc/OuterObjectWithEnumProperty.md)
|
||||
- [Pet](doc/Pet.md)
|
||||
- [ReadOnlyFirst](doc/ReadOnlyFirst.md)
|
||||
- [SpecialModelName](doc/SpecialModelName.md)
|
||||
- [Tag](doc/Tag.md)
|
||||
- [User](doc/User.md)
|
||||
- [AdditionalPropertiesClass](doc\AdditionalPropertiesClass.md)
|
||||
- [Animal](doc\Animal.md)
|
||||
- [ApiResponse](doc\ApiResponse.md)
|
||||
- [ArrayOfArrayOfNumberOnly](doc\ArrayOfArrayOfNumberOnly.md)
|
||||
- [ArrayOfNumberOnly](doc\ArrayOfNumberOnly.md)
|
||||
- [ArrayTest](doc\ArrayTest.md)
|
||||
- [Capitalization](doc\Capitalization.md)
|
||||
- [Cat](doc\Cat.md)
|
||||
- [CatAllOf](doc\CatAllOf.md)
|
||||
- [Category](doc\Category.md)
|
||||
- [ClassModel](doc\ClassModel.md)
|
||||
- [Dog](doc\Dog.md)
|
||||
- [DogAllOf](doc\DogAllOf.md)
|
||||
- [EnumArrays](doc\EnumArrays.md)
|
||||
- [EnumTest](doc\EnumTest.md)
|
||||
- [FileSchemaTestClass](doc\FileSchemaTestClass.md)
|
||||
- [Foo](doc\Foo.md)
|
||||
- [FormatTest](doc\FormatTest.md)
|
||||
- [HasOnlyReadOnly](doc\HasOnlyReadOnly.md)
|
||||
- [HealthCheckResult](doc\HealthCheckResult.md)
|
||||
- [InlineResponseDefault](doc\InlineResponseDefault.md)
|
||||
- [MapTest](doc\MapTest.md)
|
||||
- [MixedPropertiesAndAdditionalPropertiesClass](doc\MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||
- [Model200Response](doc\Model200Response.md)
|
||||
- [ModelClient](doc\ModelClient.md)
|
||||
- [ModelEnumClass](doc\ModelEnumClass.md)
|
||||
- [ModelFile](doc\ModelFile.md)
|
||||
- [ModelList](doc\ModelList.md)
|
||||
- [ModelReturn](doc\ModelReturn.md)
|
||||
- [Name](doc\Name.md)
|
||||
- [NullableClass](doc\NullableClass.md)
|
||||
- [NumberOnly](doc\NumberOnly.md)
|
||||
- [Order](doc\Order.md)
|
||||
- [OuterComposite](doc\OuterComposite.md)
|
||||
- [OuterEnum](doc\OuterEnum.md)
|
||||
- [OuterEnumDefaultValue](doc\OuterEnumDefaultValue.md)
|
||||
- [OuterEnumInteger](doc\OuterEnumInteger.md)
|
||||
- [OuterEnumIntegerDefaultValue](doc\OuterEnumIntegerDefaultValue.md)
|
||||
- [OuterObjectWithEnumProperty](doc\OuterObjectWithEnumProperty.md)
|
||||
- [Pet](doc\Pet.md)
|
||||
- [ReadOnlyFirst](doc\ReadOnlyFirst.md)
|
||||
- [SpecialModelName](doc\SpecialModelName.md)
|
||||
- [Tag](doc\Tag.md)
|
||||
- [User](doc\User.md)
|
||||
|
||||
|
||||
## Documentation For Authorization
|
||||
|
@ -60,36 +60,36 @@ All URIs are relative to *http://petstore.swagger.io/v2*
|
||||
|
||||
Class | Method | HTTP request | Description
|
||||
------------ | ------------- | ------------- | -------------
|
||||
*PetApi* | [**addPet**](doc//PetApi.md#addpet) | **POST** /pet | Add a new pet to the store
|
||||
*PetApi* | [**deletePet**](doc//PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet
|
||||
*PetApi* | [**findPetsByStatus**](doc//PetApi.md#findpetsbystatus) | **GET** /pet/findByStatus | Finds Pets by status
|
||||
*PetApi* | [**findPetsByTags**](doc//PetApi.md#findpetsbytags) | **GET** /pet/findByTags | Finds Pets by tags
|
||||
*PetApi* | [**getPetById**](doc//PetApi.md#getpetbyid) | **GET** /pet/{petId} | Find pet by ID
|
||||
*PetApi* | [**updatePet**](doc//PetApi.md#updatepet) | **PUT** /pet | Update an existing pet
|
||||
*PetApi* | [**updatePetWithForm**](doc//PetApi.md#updatepetwithform) | **POST** /pet/{petId} | Updates a pet in the store with form data
|
||||
*PetApi* | [**uploadFile**](doc//PetApi.md#uploadfile) | **POST** /pet/{petId}/uploadImage | uploads an image
|
||||
*StoreApi* | [**deleteOrder**](doc//StoreApi.md#deleteorder) | **DELETE** /store/order/{orderId} | Delete purchase order by ID
|
||||
*StoreApi* | [**getInventory**](doc//StoreApi.md#getinventory) | **GET** /store/inventory | Returns pet inventories by status
|
||||
*StoreApi* | [**getOrderById**](doc//StoreApi.md#getorderbyid) | **GET** /store/order/{orderId} | Find purchase order by ID
|
||||
*StoreApi* | [**placeOrder**](doc//StoreApi.md#placeorder) | **POST** /store/order | Place an order for a pet
|
||||
*UserApi* | [**createUser**](doc//UserApi.md#createuser) | **POST** /user | Create user
|
||||
*UserApi* | [**createUsersWithArrayInput**](doc//UserApi.md#createuserswitharrayinput) | **POST** /user/createWithArray | Creates list of users with given input array
|
||||
*UserApi* | [**createUsersWithListInput**](doc//UserApi.md#createuserswithlistinput) | **POST** /user/createWithList | Creates list of users with given input array
|
||||
*UserApi* | [**deleteUser**](doc//UserApi.md#deleteuser) | **DELETE** /user/{username} | Delete user
|
||||
*UserApi* | [**getUserByName**](doc//UserApi.md#getuserbyname) | **GET** /user/{username} | Get user by user name
|
||||
*UserApi* | [**loginUser**](doc//UserApi.md#loginuser) | **GET** /user/login | Logs user into the system
|
||||
*UserApi* | [**logoutUser**](doc//UserApi.md#logoutuser) | **GET** /user/logout | Logs out current logged in user session
|
||||
*UserApi* | [**updateUser**](doc//UserApi.md#updateuser) | **PUT** /user/{username} | Updated user
|
||||
*PetApi* | [**addPet**](doc\/PetApi.md#addpet) | **POST** /pet | Add a new pet to the store
|
||||
*PetApi* | [**deletePet**](doc\/PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet
|
||||
*PetApi* | [**findPetsByStatus**](doc\/PetApi.md#findpetsbystatus) | **GET** /pet/findByStatus | Finds Pets by status
|
||||
*PetApi* | [**findPetsByTags**](doc\/PetApi.md#findpetsbytags) | **GET** /pet/findByTags | Finds Pets by tags
|
||||
*PetApi* | [**getPetById**](doc\/PetApi.md#getpetbyid) | **GET** /pet/{petId} | Find pet by ID
|
||||
*PetApi* | [**updatePet**](doc\/PetApi.md#updatepet) | **PUT** /pet | Update an existing pet
|
||||
*PetApi* | [**updatePetWithForm**](doc\/PetApi.md#updatepetwithform) | **POST** /pet/{petId} | Updates a pet in the store with form data
|
||||
*PetApi* | [**uploadFile**](doc\/PetApi.md#uploadfile) | **POST** /pet/{petId}/uploadImage | uploads an image
|
||||
*StoreApi* | [**deleteOrder**](doc\/StoreApi.md#deleteorder) | **DELETE** /store/order/{orderId} | Delete purchase order by ID
|
||||
*StoreApi* | [**getInventory**](doc\/StoreApi.md#getinventory) | **GET** /store/inventory | Returns pet inventories by status
|
||||
*StoreApi* | [**getOrderById**](doc\/StoreApi.md#getorderbyid) | **GET** /store/order/{orderId} | Find purchase order by ID
|
||||
*StoreApi* | [**placeOrder**](doc\/StoreApi.md#placeorder) | **POST** /store/order | Place an order for a pet
|
||||
*UserApi* | [**createUser**](doc\/UserApi.md#createuser) | **POST** /user | Create user
|
||||
*UserApi* | [**createUsersWithArrayInput**](doc\/UserApi.md#createuserswitharrayinput) | **POST** /user/createWithArray | Creates list of users with given input array
|
||||
*UserApi* | [**createUsersWithListInput**](doc\/UserApi.md#createuserswithlistinput) | **POST** /user/createWithList | Creates list of users with given input array
|
||||
*UserApi* | [**deleteUser**](doc\/UserApi.md#deleteuser) | **DELETE** /user/{username} | Delete user
|
||||
*UserApi* | [**getUserByName**](doc\/UserApi.md#getuserbyname) | **GET** /user/{username} | Get user by user name
|
||||
*UserApi* | [**loginUser**](doc\/UserApi.md#loginuser) | **GET** /user/login | Logs user into the system
|
||||
*UserApi* | [**logoutUser**](doc\/UserApi.md#logoutuser) | **GET** /user/logout | Logs out current logged in user session
|
||||
*UserApi* | [**updateUser**](doc\/UserApi.md#updateuser) | **PUT** /user/{username} | Updated user
|
||||
|
||||
|
||||
## Documentation For Models
|
||||
|
||||
- [ApiResponse](doc//ApiResponse.md)
|
||||
- [Category](doc//Category.md)
|
||||
- [Order](doc//Order.md)
|
||||
- [Pet](doc//Pet.md)
|
||||
- [Tag](doc//Tag.md)
|
||||
- [User](doc//User.md)
|
||||
- [ApiResponse](doc\/ApiResponse.md)
|
||||
- [Category](doc\/Category.md)
|
||||
- [Order](doc\/Order.md)
|
||||
- [Pet](doc\/Pet.md)
|
||||
- [Tag](doc\/Tag.md)
|
||||
- [User](doc\/User.md)
|
||||
|
||||
|
||||
## Documentation For Authorization
|
||||
|
@ -58,94 +58,94 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
||||
|
||||
Class | Method | HTTP request | Description
|
||||
------------ | ------------- | ------------- | -------------
|
||||
*AnotherFakeApi* | [**call123testSpecialTags**](doc//AnotherFakeApi.md#call123testspecialtags) | **PATCH** /another-fake/dummy | To test special tags
|
||||
*DefaultApi* | [**fooGet**](doc//DefaultApi.md#fooget) | **GET** /foo |
|
||||
*FakeApi* | [**fakeHealthGet**](doc//FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
|
||||
*FakeApi* | [**fakeHttpSignatureTest**](doc//FakeApi.md#fakehttpsignaturetest) | **GET** /fake/http-signature-test | test http signature authentication
|
||||
*FakeApi* | [**fakeOuterBooleanSerialize**](doc//FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
|
||||
*FakeApi* | [**fakeOuterCompositeSerialize**](doc//FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
|
||||
*FakeApi* | [**fakeOuterNumberSerialize**](doc//FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
|
||||
*FakeApi* | [**fakeOuterStringSerialize**](doc//FakeApi.md#fakeouterstringserialize) | **POST** /fake/outer/string |
|
||||
*FakeApi* | [**fakePropertyEnumIntegerSerialize**](doc//FakeApi.md#fakepropertyenumintegerserialize) | **POST** /fake/property/enum-int |
|
||||
*FakeApi* | [**testBodyWithFileSchema**](doc//FakeApi.md#testbodywithfileschema) | **PUT** /fake/body-with-file-schema |
|
||||
*FakeApi* | [**testBodyWithQueryParams**](doc//FakeApi.md#testbodywithqueryparams) | **PUT** /fake/body-with-query-params |
|
||||
*FakeApi* | [**testClientModel**](doc//FakeApi.md#testclientmodel) | **PATCH** /fake | To test \"client\" model
|
||||
*FakeApi* | [**testEndpointParameters**](doc//FakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
*FakeApi* | [**testEnumParameters**](doc//FakeApi.md#testenumparameters) | **GET** /fake | To test enum parameters
|
||||
*FakeApi* | [**testGroupParameters**](doc//FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
|
||||
*FakeApi* | [**testInlineAdditionalProperties**](doc//FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
|
||||
*FakeApi* | [**testJsonFormData**](doc//FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data
|
||||
*FakeApi* | [**testQueryParameterCollectionFormat**](doc//FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters |
|
||||
*FakeClassnameTags123Api* | [**testClassname**](doc//FakeClassnameTags123Api.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case
|
||||
*PetApi* | [**addPet**](doc//PetApi.md#addpet) | **POST** /pet | Add a new pet to the store
|
||||
*PetApi* | [**deletePet**](doc//PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet
|
||||
*PetApi* | [**findPetsByStatus**](doc//PetApi.md#findpetsbystatus) | **GET** /pet/findByStatus | Finds Pets by status
|
||||
*PetApi* | [**findPetsByTags**](doc//PetApi.md#findpetsbytags) | **GET** /pet/findByTags | Finds Pets by tags
|
||||
*PetApi* | [**getPetById**](doc//PetApi.md#getpetbyid) | **GET** /pet/{petId} | Find pet by ID
|
||||
*PetApi* | [**updatePet**](doc//PetApi.md#updatepet) | **PUT** /pet | Update an existing pet
|
||||
*PetApi* | [**updatePetWithForm**](doc//PetApi.md#updatepetwithform) | **POST** /pet/{petId} | Updates a pet in the store with form data
|
||||
*PetApi* | [**uploadFile**](doc//PetApi.md#uploadfile) | **POST** /pet/{petId}/uploadImage | uploads an image
|
||||
*PetApi* | [**uploadFileWithRequiredFile**](doc//PetApi.md#uploadfilewithrequiredfile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required)
|
||||
*StoreApi* | [**deleteOrder**](doc//StoreApi.md#deleteorder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
|
||||
*StoreApi* | [**getInventory**](doc//StoreApi.md#getinventory) | **GET** /store/inventory | Returns pet inventories by status
|
||||
*StoreApi* | [**getOrderById**](doc//StoreApi.md#getorderbyid) | **GET** /store/order/{order_id} | Find purchase order by ID
|
||||
*StoreApi* | [**placeOrder**](doc//StoreApi.md#placeorder) | **POST** /store/order | Place an order for a pet
|
||||
*UserApi* | [**createUser**](doc//UserApi.md#createuser) | **POST** /user | Create user
|
||||
*UserApi* | [**createUsersWithArrayInput**](doc//UserApi.md#createuserswitharrayinput) | **POST** /user/createWithArray | Creates list of users with given input array
|
||||
*UserApi* | [**createUsersWithListInput**](doc//UserApi.md#createuserswithlistinput) | **POST** /user/createWithList | Creates list of users with given input array
|
||||
*UserApi* | [**deleteUser**](doc//UserApi.md#deleteuser) | **DELETE** /user/{username} | Delete user
|
||||
*UserApi* | [**getUserByName**](doc//UserApi.md#getuserbyname) | **GET** /user/{username} | Get user by user name
|
||||
*UserApi* | [**loginUser**](doc//UserApi.md#loginuser) | **GET** /user/login | Logs user into the system
|
||||
*UserApi* | [**logoutUser**](doc//UserApi.md#logoutuser) | **GET** /user/logout | Logs out current logged in user session
|
||||
*UserApi* | [**updateUser**](doc//UserApi.md#updateuser) | **PUT** /user/{username} | Updated user
|
||||
*AnotherFakeApi* | [**call123testSpecialTags**](doc\/AnotherFakeApi.md#call123testspecialtags) | **PATCH** /another-fake/dummy | To test special tags
|
||||
*DefaultApi* | [**fooGet**](doc\/DefaultApi.md#fooget) | **GET** /foo |
|
||||
*FakeApi* | [**fakeHealthGet**](doc\/FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
|
||||
*FakeApi* | [**fakeHttpSignatureTest**](doc\/FakeApi.md#fakehttpsignaturetest) | **GET** /fake/http-signature-test | test http signature authentication
|
||||
*FakeApi* | [**fakeOuterBooleanSerialize**](doc\/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
|
||||
*FakeApi* | [**fakeOuterCompositeSerialize**](doc\/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
|
||||
*FakeApi* | [**fakeOuterNumberSerialize**](doc\/FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
|
||||
*FakeApi* | [**fakeOuterStringSerialize**](doc\/FakeApi.md#fakeouterstringserialize) | **POST** /fake/outer/string |
|
||||
*FakeApi* | [**fakePropertyEnumIntegerSerialize**](doc\/FakeApi.md#fakepropertyenumintegerserialize) | **POST** /fake/property/enum-int |
|
||||
*FakeApi* | [**testBodyWithFileSchema**](doc\/FakeApi.md#testbodywithfileschema) | **PUT** /fake/body-with-file-schema |
|
||||
*FakeApi* | [**testBodyWithQueryParams**](doc\/FakeApi.md#testbodywithqueryparams) | **PUT** /fake/body-with-query-params |
|
||||
*FakeApi* | [**testClientModel**](doc\/FakeApi.md#testclientmodel) | **PATCH** /fake | To test \"client\" model
|
||||
*FakeApi* | [**testEndpointParameters**](doc\/FakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
*FakeApi* | [**testEnumParameters**](doc\/FakeApi.md#testenumparameters) | **GET** /fake | To test enum parameters
|
||||
*FakeApi* | [**testGroupParameters**](doc\/FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
|
||||
*FakeApi* | [**testInlineAdditionalProperties**](doc\/FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
|
||||
*FakeApi* | [**testJsonFormData**](doc\/FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data
|
||||
*FakeApi* | [**testQueryParameterCollectionFormat**](doc\/FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters |
|
||||
*FakeClassnameTags123Api* | [**testClassname**](doc\/FakeClassnameTags123Api.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case
|
||||
*PetApi* | [**addPet**](doc\/PetApi.md#addpet) | **POST** /pet | Add a new pet to the store
|
||||
*PetApi* | [**deletePet**](doc\/PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet
|
||||
*PetApi* | [**findPetsByStatus**](doc\/PetApi.md#findpetsbystatus) | **GET** /pet/findByStatus | Finds Pets by status
|
||||
*PetApi* | [**findPetsByTags**](doc\/PetApi.md#findpetsbytags) | **GET** /pet/findByTags | Finds Pets by tags
|
||||
*PetApi* | [**getPetById**](doc\/PetApi.md#getpetbyid) | **GET** /pet/{petId} | Find pet by ID
|
||||
*PetApi* | [**updatePet**](doc\/PetApi.md#updatepet) | **PUT** /pet | Update an existing pet
|
||||
*PetApi* | [**updatePetWithForm**](doc\/PetApi.md#updatepetwithform) | **POST** /pet/{petId} | Updates a pet in the store with form data
|
||||
*PetApi* | [**uploadFile**](doc\/PetApi.md#uploadfile) | **POST** /pet/{petId}/uploadImage | uploads an image
|
||||
*PetApi* | [**uploadFileWithRequiredFile**](doc\/PetApi.md#uploadfilewithrequiredfile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required)
|
||||
*StoreApi* | [**deleteOrder**](doc\/StoreApi.md#deleteorder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
|
||||
*StoreApi* | [**getInventory**](doc\/StoreApi.md#getinventory) | **GET** /store/inventory | Returns pet inventories by status
|
||||
*StoreApi* | [**getOrderById**](doc\/StoreApi.md#getorderbyid) | **GET** /store/order/{order_id} | Find purchase order by ID
|
||||
*StoreApi* | [**placeOrder**](doc\/StoreApi.md#placeorder) | **POST** /store/order | Place an order for a pet
|
||||
*UserApi* | [**createUser**](doc\/UserApi.md#createuser) | **POST** /user | Create user
|
||||
*UserApi* | [**createUsersWithArrayInput**](doc\/UserApi.md#createuserswitharrayinput) | **POST** /user/createWithArray | Creates list of users with given input array
|
||||
*UserApi* | [**createUsersWithListInput**](doc\/UserApi.md#createuserswithlistinput) | **POST** /user/createWithList | Creates list of users with given input array
|
||||
*UserApi* | [**deleteUser**](doc\/UserApi.md#deleteuser) | **DELETE** /user/{username} | Delete user
|
||||
*UserApi* | [**getUserByName**](doc\/UserApi.md#getuserbyname) | **GET** /user/{username} | Get user by user name
|
||||
*UserApi* | [**loginUser**](doc\/UserApi.md#loginuser) | **GET** /user/login | Logs user into the system
|
||||
*UserApi* | [**logoutUser**](doc\/UserApi.md#logoutuser) | **GET** /user/logout | Logs out current logged in user session
|
||||
*UserApi* | [**updateUser**](doc\/UserApi.md#updateuser) | **PUT** /user/{username} | Updated user
|
||||
|
||||
|
||||
## Documentation For Models
|
||||
|
||||
- [AdditionalPropertiesClass](doc//AdditionalPropertiesClass.md)
|
||||
- [Animal](doc//Animal.md)
|
||||
- [ApiResponse](doc//ApiResponse.md)
|
||||
- [ArrayOfArrayOfNumberOnly](doc//ArrayOfArrayOfNumberOnly.md)
|
||||
- [ArrayOfNumberOnly](doc//ArrayOfNumberOnly.md)
|
||||
- [ArrayTest](doc//ArrayTest.md)
|
||||
- [Capitalization](doc//Capitalization.md)
|
||||
- [Cat](doc//Cat.md)
|
||||
- [CatAllOf](doc//CatAllOf.md)
|
||||
- [Category](doc//Category.md)
|
||||
- [ClassModel](doc//ClassModel.md)
|
||||
- [Dog](doc//Dog.md)
|
||||
- [DogAllOf](doc//DogAllOf.md)
|
||||
- [EnumArrays](doc//EnumArrays.md)
|
||||
- [EnumClass](doc//EnumClass.md)
|
||||
- [EnumTest](doc//EnumTest.md)
|
||||
- [FileSchemaTestClass](doc//FileSchemaTestClass.md)
|
||||
- [Foo](doc//Foo.md)
|
||||
- [FormatTest](doc//FormatTest.md)
|
||||
- [HasOnlyReadOnly](doc//HasOnlyReadOnly.md)
|
||||
- [HealthCheckResult](doc//HealthCheckResult.md)
|
||||
- [InlineResponseDefault](doc//InlineResponseDefault.md)
|
||||
- [MapTest](doc//MapTest.md)
|
||||
- [MixedPropertiesAndAdditionalPropertiesClass](doc//MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||
- [Model200Response](doc//Model200Response.md)
|
||||
- [ModelClient](doc//ModelClient.md)
|
||||
- [ModelFile](doc//ModelFile.md)
|
||||
- [ModelList](doc//ModelList.md)
|
||||
- [ModelReturn](doc//ModelReturn.md)
|
||||
- [Name](doc//Name.md)
|
||||
- [NullableClass](doc//NullableClass.md)
|
||||
- [NumberOnly](doc//NumberOnly.md)
|
||||
- [Order](doc//Order.md)
|
||||
- [OuterComposite](doc//OuterComposite.md)
|
||||
- [OuterEnum](doc//OuterEnum.md)
|
||||
- [OuterEnumDefaultValue](doc//OuterEnumDefaultValue.md)
|
||||
- [OuterEnumInteger](doc//OuterEnumInteger.md)
|
||||
- [OuterEnumIntegerDefaultValue](doc//OuterEnumIntegerDefaultValue.md)
|
||||
- [OuterObjectWithEnumProperty](doc//OuterObjectWithEnumProperty.md)
|
||||
- [Pet](doc//Pet.md)
|
||||
- [ReadOnlyFirst](doc//ReadOnlyFirst.md)
|
||||
- [SpecialModelName](doc//SpecialModelName.md)
|
||||
- [Tag](doc//Tag.md)
|
||||
- [User](doc//User.md)
|
||||
- [AdditionalPropertiesClass](doc\/AdditionalPropertiesClass.md)
|
||||
- [Animal](doc\/Animal.md)
|
||||
- [ApiResponse](doc\/ApiResponse.md)
|
||||
- [ArrayOfArrayOfNumberOnly](doc\/ArrayOfArrayOfNumberOnly.md)
|
||||
- [ArrayOfNumberOnly](doc\/ArrayOfNumberOnly.md)
|
||||
- [ArrayTest](doc\/ArrayTest.md)
|
||||
- [Capitalization](doc\/Capitalization.md)
|
||||
- [Cat](doc\/Cat.md)
|
||||
- [CatAllOf](doc\/CatAllOf.md)
|
||||
- [Category](doc\/Category.md)
|
||||
- [ClassModel](doc\/ClassModel.md)
|
||||
- [Dog](doc\/Dog.md)
|
||||
- [DogAllOf](doc\/DogAllOf.md)
|
||||
- [EnumArrays](doc\/EnumArrays.md)
|
||||
- [EnumClass](doc\/EnumClass.md)
|
||||
- [EnumTest](doc\/EnumTest.md)
|
||||
- [FileSchemaTestClass](doc\/FileSchemaTestClass.md)
|
||||
- [Foo](doc\/Foo.md)
|
||||
- [FormatTest](doc\/FormatTest.md)
|
||||
- [HasOnlyReadOnly](doc\/HasOnlyReadOnly.md)
|
||||
- [HealthCheckResult](doc\/HealthCheckResult.md)
|
||||
- [InlineResponseDefault](doc\/InlineResponseDefault.md)
|
||||
- [MapTest](doc\/MapTest.md)
|
||||
- [MixedPropertiesAndAdditionalPropertiesClass](doc\/MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||
- [Model200Response](doc\/Model200Response.md)
|
||||
- [ModelClient](doc\/ModelClient.md)
|
||||
- [ModelFile](doc\/ModelFile.md)
|
||||
- [ModelList](doc\/ModelList.md)
|
||||
- [ModelReturn](doc\/ModelReturn.md)
|
||||
- [Name](doc\/Name.md)
|
||||
- [NullableClass](doc\/NullableClass.md)
|
||||
- [NumberOnly](doc\/NumberOnly.md)
|
||||
- [Order](doc\/Order.md)
|
||||
- [OuterComposite](doc\/OuterComposite.md)
|
||||
- [OuterEnum](doc\/OuterEnum.md)
|
||||
- [OuterEnumDefaultValue](doc\/OuterEnumDefaultValue.md)
|
||||
- [OuterEnumInteger](doc\/OuterEnumInteger.md)
|
||||
- [OuterEnumIntegerDefaultValue](doc\/OuterEnumIntegerDefaultValue.md)
|
||||
- [OuterObjectWithEnumProperty](doc\/OuterObjectWithEnumProperty.md)
|
||||
- [Pet](doc\/Pet.md)
|
||||
- [ReadOnlyFirst](doc\/ReadOnlyFirst.md)
|
||||
- [SpecialModelName](doc\/SpecialModelName.md)
|
||||
- [Tag](doc\/Tag.md)
|
||||
- [User](doc\/User.md)
|
||||
|
||||
|
||||
## Documentation For Authorization
|
||||
|
@ -58,94 +58,94 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
||||
|
||||
Class | Method | HTTP request | Description
|
||||
------------ | ------------- | ------------- | -------------
|
||||
*AnotherFakeApi* | [**call123testSpecialTags**](doc//AnotherFakeApi.md#call123testspecialtags) | **PATCH** /another-fake/dummy | To test special tags
|
||||
*DefaultApi* | [**fooGet**](doc//DefaultApi.md#fooget) | **GET** /foo |
|
||||
*FakeApi* | [**fakeHealthGet**](doc//FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
|
||||
*FakeApi* | [**fakeHttpSignatureTest**](doc//FakeApi.md#fakehttpsignaturetest) | **GET** /fake/http-signature-test | test http signature authentication
|
||||
*FakeApi* | [**fakeOuterBooleanSerialize**](doc//FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
|
||||
*FakeApi* | [**fakeOuterCompositeSerialize**](doc//FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
|
||||
*FakeApi* | [**fakeOuterNumberSerialize**](doc//FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
|
||||
*FakeApi* | [**fakeOuterStringSerialize**](doc//FakeApi.md#fakeouterstringserialize) | **POST** /fake/outer/string |
|
||||
*FakeApi* | [**fakePropertyEnumIntegerSerialize**](doc//FakeApi.md#fakepropertyenumintegerserialize) | **POST** /fake/property/enum-int |
|
||||
*FakeApi* | [**testBodyWithFileSchema**](doc//FakeApi.md#testbodywithfileschema) | **PUT** /fake/body-with-file-schema |
|
||||
*FakeApi* | [**testBodyWithQueryParams**](doc//FakeApi.md#testbodywithqueryparams) | **PUT** /fake/body-with-query-params |
|
||||
*FakeApi* | [**testClientModel**](doc//FakeApi.md#testclientmodel) | **PATCH** /fake | To test \"client\" model
|
||||
*FakeApi* | [**testEndpointParameters**](doc//FakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
*FakeApi* | [**testEnumParameters**](doc//FakeApi.md#testenumparameters) | **GET** /fake | To test enum parameters
|
||||
*FakeApi* | [**testGroupParameters**](doc//FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
|
||||
*FakeApi* | [**testInlineAdditionalProperties**](doc//FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
|
||||
*FakeApi* | [**testJsonFormData**](doc//FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data
|
||||
*FakeApi* | [**testQueryParameterCollectionFormat**](doc//FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters |
|
||||
*FakeClassnameTags123Api* | [**testClassname**](doc//FakeClassnameTags123Api.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case
|
||||
*PetApi* | [**addPet**](doc//PetApi.md#addpet) | **POST** /pet | Add a new pet to the store
|
||||
*PetApi* | [**deletePet**](doc//PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet
|
||||
*PetApi* | [**findPetsByStatus**](doc//PetApi.md#findpetsbystatus) | **GET** /pet/findByStatus | Finds Pets by status
|
||||
*PetApi* | [**findPetsByTags**](doc//PetApi.md#findpetsbytags) | **GET** /pet/findByTags | Finds Pets by tags
|
||||
*PetApi* | [**getPetById**](doc//PetApi.md#getpetbyid) | **GET** /pet/{petId} | Find pet by ID
|
||||
*PetApi* | [**updatePet**](doc//PetApi.md#updatepet) | **PUT** /pet | Update an existing pet
|
||||
*PetApi* | [**updatePetWithForm**](doc//PetApi.md#updatepetwithform) | **POST** /pet/{petId} | Updates a pet in the store with form data
|
||||
*PetApi* | [**uploadFile**](doc//PetApi.md#uploadfile) | **POST** /pet/{petId}/uploadImage | uploads an image
|
||||
*PetApi* | [**uploadFileWithRequiredFile**](doc//PetApi.md#uploadfilewithrequiredfile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required)
|
||||
*StoreApi* | [**deleteOrder**](doc//StoreApi.md#deleteorder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
|
||||
*StoreApi* | [**getInventory**](doc//StoreApi.md#getinventory) | **GET** /store/inventory | Returns pet inventories by status
|
||||
*StoreApi* | [**getOrderById**](doc//StoreApi.md#getorderbyid) | **GET** /store/order/{order_id} | Find purchase order by ID
|
||||
*StoreApi* | [**placeOrder**](doc//StoreApi.md#placeorder) | **POST** /store/order | Place an order for a pet
|
||||
*UserApi* | [**createUser**](doc//UserApi.md#createuser) | **POST** /user | Create user
|
||||
*UserApi* | [**createUsersWithArrayInput**](doc//UserApi.md#createuserswitharrayinput) | **POST** /user/createWithArray | Creates list of users with given input array
|
||||
*UserApi* | [**createUsersWithListInput**](doc//UserApi.md#createuserswithlistinput) | **POST** /user/createWithList | Creates list of users with given input array
|
||||
*UserApi* | [**deleteUser**](doc//UserApi.md#deleteuser) | **DELETE** /user/{username} | Delete user
|
||||
*UserApi* | [**getUserByName**](doc//UserApi.md#getuserbyname) | **GET** /user/{username} | Get user by user name
|
||||
*UserApi* | [**loginUser**](doc//UserApi.md#loginuser) | **GET** /user/login | Logs user into the system
|
||||
*UserApi* | [**logoutUser**](doc//UserApi.md#logoutuser) | **GET** /user/logout | Logs out current logged in user session
|
||||
*UserApi* | [**updateUser**](doc//UserApi.md#updateuser) | **PUT** /user/{username} | Updated user
|
||||
*AnotherFakeApi* | [**call123testSpecialTags**](doc\/AnotherFakeApi.md#call123testspecialtags) | **PATCH** /another-fake/dummy | To test special tags
|
||||
*DefaultApi* | [**fooGet**](doc\/DefaultApi.md#fooget) | **GET** /foo |
|
||||
*FakeApi* | [**fakeHealthGet**](doc\/FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
|
||||
*FakeApi* | [**fakeHttpSignatureTest**](doc\/FakeApi.md#fakehttpsignaturetest) | **GET** /fake/http-signature-test | test http signature authentication
|
||||
*FakeApi* | [**fakeOuterBooleanSerialize**](doc\/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
|
||||
*FakeApi* | [**fakeOuterCompositeSerialize**](doc\/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
|
||||
*FakeApi* | [**fakeOuterNumberSerialize**](doc\/FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
|
||||
*FakeApi* | [**fakeOuterStringSerialize**](doc\/FakeApi.md#fakeouterstringserialize) | **POST** /fake/outer/string |
|
||||
*FakeApi* | [**fakePropertyEnumIntegerSerialize**](doc\/FakeApi.md#fakepropertyenumintegerserialize) | **POST** /fake/property/enum-int |
|
||||
*FakeApi* | [**testBodyWithFileSchema**](doc\/FakeApi.md#testbodywithfileschema) | **PUT** /fake/body-with-file-schema |
|
||||
*FakeApi* | [**testBodyWithQueryParams**](doc\/FakeApi.md#testbodywithqueryparams) | **PUT** /fake/body-with-query-params |
|
||||
*FakeApi* | [**testClientModel**](doc\/FakeApi.md#testclientmodel) | **PATCH** /fake | To test \"client\" model
|
||||
*FakeApi* | [**testEndpointParameters**](doc\/FakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
*FakeApi* | [**testEnumParameters**](doc\/FakeApi.md#testenumparameters) | **GET** /fake | To test enum parameters
|
||||
*FakeApi* | [**testGroupParameters**](doc\/FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
|
||||
*FakeApi* | [**testInlineAdditionalProperties**](doc\/FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
|
||||
*FakeApi* | [**testJsonFormData**](doc\/FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data
|
||||
*FakeApi* | [**testQueryParameterCollectionFormat**](doc\/FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters |
|
||||
*FakeClassnameTags123Api* | [**testClassname**](doc\/FakeClassnameTags123Api.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case
|
||||
*PetApi* | [**addPet**](doc\/PetApi.md#addpet) | **POST** /pet | Add a new pet to the store
|
||||
*PetApi* | [**deletePet**](doc\/PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet
|
||||
*PetApi* | [**findPetsByStatus**](doc\/PetApi.md#findpetsbystatus) | **GET** /pet/findByStatus | Finds Pets by status
|
||||
*PetApi* | [**findPetsByTags**](doc\/PetApi.md#findpetsbytags) | **GET** /pet/findByTags | Finds Pets by tags
|
||||
*PetApi* | [**getPetById**](doc\/PetApi.md#getpetbyid) | **GET** /pet/{petId} | Find pet by ID
|
||||
*PetApi* | [**updatePet**](doc\/PetApi.md#updatepet) | **PUT** /pet | Update an existing pet
|
||||
*PetApi* | [**updatePetWithForm**](doc\/PetApi.md#updatepetwithform) | **POST** /pet/{petId} | Updates a pet in the store with form data
|
||||
*PetApi* | [**uploadFile**](doc\/PetApi.md#uploadfile) | **POST** /pet/{petId}/uploadImage | uploads an image
|
||||
*PetApi* | [**uploadFileWithRequiredFile**](doc\/PetApi.md#uploadfilewithrequiredfile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required)
|
||||
*StoreApi* | [**deleteOrder**](doc\/StoreApi.md#deleteorder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
|
||||
*StoreApi* | [**getInventory**](doc\/StoreApi.md#getinventory) | **GET** /store/inventory | Returns pet inventories by status
|
||||
*StoreApi* | [**getOrderById**](doc\/StoreApi.md#getorderbyid) | **GET** /store/order/{order_id} | Find purchase order by ID
|
||||
*StoreApi* | [**placeOrder**](doc\/StoreApi.md#placeorder) | **POST** /store/order | Place an order for a pet
|
||||
*UserApi* | [**createUser**](doc\/UserApi.md#createuser) | **POST** /user | Create user
|
||||
*UserApi* | [**createUsersWithArrayInput**](doc\/UserApi.md#createuserswitharrayinput) | **POST** /user/createWithArray | Creates list of users with given input array
|
||||
*UserApi* | [**createUsersWithListInput**](doc\/UserApi.md#createuserswithlistinput) | **POST** /user/createWithList | Creates list of users with given input array
|
||||
*UserApi* | [**deleteUser**](doc\/UserApi.md#deleteuser) | **DELETE** /user/{username} | Delete user
|
||||
*UserApi* | [**getUserByName**](doc\/UserApi.md#getuserbyname) | **GET** /user/{username} | Get user by user name
|
||||
*UserApi* | [**loginUser**](doc\/UserApi.md#loginuser) | **GET** /user/login | Logs user into the system
|
||||
*UserApi* | [**logoutUser**](doc\/UserApi.md#logoutuser) | **GET** /user/logout | Logs out current logged in user session
|
||||
*UserApi* | [**updateUser**](doc\/UserApi.md#updateuser) | **PUT** /user/{username} | Updated user
|
||||
|
||||
|
||||
## Documentation For Models
|
||||
|
||||
- [AdditionalPropertiesClass](doc//AdditionalPropertiesClass.md)
|
||||
- [Animal](doc//Animal.md)
|
||||
- [ApiResponse](doc//ApiResponse.md)
|
||||
- [ArrayOfArrayOfNumberOnly](doc//ArrayOfArrayOfNumberOnly.md)
|
||||
- [ArrayOfNumberOnly](doc//ArrayOfNumberOnly.md)
|
||||
- [ArrayTest](doc//ArrayTest.md)
|
||||
- [Capitalization](doc//Capitalization.md)
|
||||
- [Cat](doc//Cat.md)
|
||||
- [CatAllOf](doc//CatAllOf.md)
|
||||
- [Category](doc//Category.md)
|
||||
- [ClassModel](doc//ClassModel.md)
|
||||
- [Dog](doc//Dog.md)
|
||||
- [DogAllOf](doc//DogAllOf.md)
|
||||
- [EnumArrays](doc//EnumArrays.md)
|
||||
- [EnumClass](doc//EnumClass.md)
|
||||
- [EnumTest](doc//EnumTest.md)
|
||||
- [FileSchemaTestClass](doc//FileSchemaTestClass.md)
|
||||
- [Foo](doc//Foo.md)
|
||||
- [FormatTest](doc//FormatTest.md)
|
||||
- [HasOnlyReadOnly](doc//HasOnlyReadOnly.md)
|
||||
- [HealthCheckResult](doc//HealthCheckResult.md)
|
||||
- [InlineResponseDefault](doc//InlineResponseDefault.md)
|
||||
- [MapTest](doc//MapTest.md)
|
||||
- [MixedPropertiesAndAdditionalPropertiesClass](doc//MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||
- [Model200Response](doc//Model200Response.md)
|
||||
- [ModelClient](doc//ModelClient.md)
|
||||
- [ModelFile](doc//ModelFile.md)
|
||||
- [ModelList](doc//ModelList.md)
|
||||
- [ModelReturn](doc//ModelReturn.md)
|
||||
- [Name](doc//Name.md)
|
||||
- [NullableClass](doc//NullableClass.md)
|
||||
- [NumberOnly](doc//NumberOnly.md)
|
||||
- [Order](doc//Order.md)
|
||||
- [OuterComposite](doc//OuterComposite.md)
|
||||
- [OuterEnum](doc//OuterEnum.md)
|
||||
- [OuterEnumDefaultValue](doc//OuterEnumDefaultValue.md)
|
||||
- [OuterEnumInteger](doc//OuterEnumInteger.md)
|
||||
- [OuterEnumIntegerDefaultValue](doc//OuterEnumIntegerDefaultValue.md)
|
||||
- [OuterObjectWithEnumProperty](doc//OuterObjectWithEnumProperty.md)
|
||||
- [Pet](doc//Pet.md)
|
||||
- [ReadOnlyFirst](doc//ReadOnlyFirst.md)
|
||||
- [SpecialModelName](doc//SpecialModelName.md)
|
||||
- [Tag](doc//Tag.md)
|
||||
- [User](doc//User.md)
|
||||
- [AdditionalPropertiesClass](doc\/AdditionalPropertiesClass.md)
|
||||
- [Animal](doc\/Animal.md)
|
||||
- [ApiResponse](doc\/ApiResponse.md)
|
||||
- [ArrayOfArrayOfNumberOnly](doc\/ArrayOfArrayOfNumberOnly.md)
|
||||
- [ArrayOfNumberOnly](doc\/ArrayOfNumberOnly.md)
|
||||
- [ArrayTest](doc\/ArrayTest.md)
|
||||
- [Capitalization](doc\/Capitalization.md)
|
||||
- [Cat](doc\/Cat.md)
|
||||
- [CatAllOf](doc\/CatAllOf.md)
|
||||
- [Category](doc\/Category.md)
|
||||
- [ClassModel](doc\/ClassModel.md)
|
||||
- [Dog](doc\/Dog.md)
|
||||
- [DogAllOf](doc\/DogAllOf.md)
|
||||
- [EnumArrays](doc\/EnumArrays.md)
|
||||
- [EnumClass](doc\/EnumClass.md)
|
||||
- [EnumTest](doc\/EnumTest.md)
|
||||
- [FileSchemaTestClass](doc\/FileSchemaTestClass.md)
|
||||
- [Foo](doc\/Foo.md)
|
||||
- [FormatTest](doc\/FormatTest.md)
|
||||
- [HasOnlyReadOnly](doc\/HasOnlyReadOnly.md)
|
||||
- [HealthCheckResult](doc\/HealthCheckResult.md)
|
||||
- [InlineResponseDefault](doc\/InlineResponseDefault.md)
|
||||
- [MapTest](doc\/MapTest.md)
|
||||
- [MixedPropertiesAndAdditionalPropertiesClass](doc\/MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||
- [Model200Response](doc\/Model200Response.md)
|
||||
- [ModelClient](doc\/ModelClient.md)
|
||||
- [ModelFile](doc\/ModelFile.md)
|
||||
- [ModelList](doc\/ModelList.md)
|
||||
- [ModelReturn](doc\/ModelReturn.md)
|
||||
- [Name](doc\/Name.md)
|
||||
- [NullableClass](doc\/NullableClass.md)
|
||||
- [NumberOnly](doc\/NumberOnly.md)
|
||||
- [Order](doc\/Order.md)
|
||||
- [OuterComposite](doc\/OuterComposite.md)
|
||||
- [OuterEnum](doc\/OuterEnum.md)
|
||||
- [OuterEnumDefaultValue](doc\/OuterEnumDefaultValue.md)
|
||||
- [OuterEnumInteger](doc\/OuterEnumInteger.md)
|
||||
- [OuterEnumIntegerDefaultValue](doc\/OuterEnumIntegerDefaultValue.md)
|
||||
- [OuterObjectWithEnumProperty](doc\/OuterObjectWithEnumProperty.md)
|
||||
- [Pet](doc\/Pet.md)
|
||||
- [ReadOnlyFirst](doc\/ReadOnlyFirst.md)
|
||||
- [SpecialModelName](doc\/SpecialModelName.md)
|
||||
- [Tag](doc\/Tag.md)
|
||||
- [User](doc\/User.md)
|
||||
|
||||
|
||||
## Documentation For Authorization
|
||||
|
@ -86,7 +86,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(400);
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}";
|
||||
exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}";
|
||||
exampleJson = "<Pet>\n <id>123456789</id>\n <name>doggie</name>\n <photoUrls>\n <photoUrls>aeiou</photoUrls>\n </photoUrls>\n <tags>\n </tags>\n <status>aeiou</status>\n</Pet>";
|
||||
|
||||
var example = exampleJson != null
|
||||
@ -116,7 +116,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(400);
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}";
|
||||
exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}";
|
||||
exampleJson = "<Pet>\n <id>123456789</id>\n <name>doggie</name>\n <photoUrls>\n <photoUrls>aeiou</photoUrls>\n </photoUrls>\n <tags>\n </tags>\n <status>aeiou</status>\n</Pet>";
|
||||
|
||||
var example = exampleJson != null
|
||||
@ -150,7 +150,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(404);
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}";
|
||||
exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}";
|
||||
exampleJson = "<Pet>\n <id>123456789</id>\n <name>doggie</name>\n <photoUrls>\n <photoUrls>aeiou</photoUrls>\n </photoUrls>\n <tags>\n </tags>\n <status>aeiou</status>\n</Pet>";
|
||||
|
||||
var example = exampleJson != null
|
||||
@ -225,7 +225,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(200, default(ApiResponse));
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}";
|
||||
exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}";
|
||||
|
||||
var example = exampleJson != null
|
||||
? JsonConvert.DeserializeObject<ApiResponse>(exampleJson)
|
||||
|
@ -98,7 +98,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(404);
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}";
|
||||
exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}";
|
||||
exampleJson = "<Order>\n <id>123456789</id>\n <petId>123456789</petId>\n <quantity>123</quantity>\n <shipDate>2000-01-23T04:56:07.000Z</shipDate>\n <status>aeiou</status>\n <complete>true</complete>\n</Order>";
|
||||
|
||||
var example = exampleJson != null
|
||||
@ -127,7 +127,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(400);
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}";
|
||||
exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}";
|
||||
exampleJson = "<Order>\n <id>123456789</id>\n <petId>123456789</petId>\n <quantity>123</quantity>\n <shipDate>2000-01-23T04:56:07.000Z</shipDate>\n <status>aeiou</status>\n <complete>true</complete>\n</Order>";
|
||||
|
||||
var example = exampleJson != null
|
||||
|
@ -127,7 +127,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(404);
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}";
|
||||
exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}";
|
||||
exampleJson = "<User>\n <id>123456789</id>\n <username>aeiou</username>\n <firstName>aeiou</firstName>\n <lastName>aeiou</lastName>\n <email>aeiou</email>\n <password>aeiou</password>\n <phone>aeiou</phone>\n <userStatus>123</userStatus>\n</User>";
|
||||
|
||||
var example = exampleJson != null
|
||||
|
@ -86,7 +86,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(400);
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}";
|
||||
exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}";
|
||||
exampleJson = "<Pet>\n <id>123456789</id>\n <name>doggie</name>\n <photoUrls>\n <photoUrls>aeiou</photoUrls>\n </photoUrls>\n <tags>\n </tags>\n <status>aeiou</status>\n</Pet>";
|
||||
|
||||
var example = exampleJson != null
|
||||
@ -116,7 +116,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(400);
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}";
|
||||
exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}";
|
||||
exampleJson = "<Pet>\n <id>123456789</id>\n <name>doggie</name>\n <photoUrls>\n <photoUrls>aeiou</photoUrls>\n </photoUrls>\n <tags>\n </tags>\n <status>aeiou</status>\n</Pet>";
|
||||
|
||||
var example = exampleJson != null
|
||||
@ -150,7 +150,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(404);
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}";
|
||||
exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}";
|
||||
exampleJson = "<Pet>\n <id>123456789</id>\n <name>doggie</name>\n <photoUrls>\n <photoUrls>aeiou</photoUrls>\n </photoUrls>\n <tags>\n </tags>\n <status>aeiou</status>\n</Pet>";
|
||||
|
||||
var example = exampleJson != null
|
||||
@ -225,7 +225,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(200, default(ApiResponse));
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}";
|
||||
exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}";
|
||||
|
||||
var example = exampleJson != null
|
||||
? JsonConvert.DeserializeObject<ApiResponse>(exampleJson)
|
||||
|
@ -98,7 +98,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(404);
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}";
|
||||
exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}";
|
||||
exampleJson = "<Order>\n <id>123456789</id>\n <petId>123456789</petId>\n <quantity>123</quantity>\n <shipDate>2000-01-23T04:56:07.000Z</shipDate>\n <status>aeiou</status>\n <complete>true</complete>\n</Order>";
|
||||
|
||||
var example = exampleJson != null
|
||||
@ -127,7 +127,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(400);
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}";
|
||||
exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}";
|
||||
exampleJson = "<Order>\n <id>123456789</id>\n <petId>123456789</petId>\n <quantity>123</quantity>\n <shipDate>2000-01-23T04:56:07.000Z</shipDate>\n <status>aeiou</status>\n <complete>true</complete>\n</Order>";
|
||||
|
||||
var example = exampleJson != null
|
||||
|
@ -127,7 +127,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(404);
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}";
|
||||
exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}";
|
||||
exampleJson = "<User>\n <id>123456789</id>\n <username>aeiou</username>\n <firstName>aeiou</firstName>\n <lastName>aeiou</lastName>\n <email>aeiou</email>\n <password>aeiou</password>\n <phone>aeiou</phone>\n <userStatus>123</userStatus>\n</User>";
|
||||
|
||||
var example = exampleJson != null
|
||||
|
@ -48,7 +48,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(405);
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}";
|
||||
exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}";
|
||||
exampleJson = "<Pet>\n <id>123456789</id>\n <name>doggie</name>\n <photoUrls>\n <photoUrls>aeiou</photoUrls>\n </photoUrls>\n <tags>\n </tags>\n <status>aeiou</status>\n</Pet>";
|
||||
|
||||
var example = exampleJson != null
|
||||
@ -97,7 +97,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(400);
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}";
|
||||
exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}";
|
||||
exampleJson = "<Pet>\n <id>123456789</id>\n <name>doggie</name>\n <photoUrls>\n <photoUrls>aeiou</photoUrls>\n </photoUrls>\n <tags>\n </tags>\n <status>aeiou</status>\n</Pet>";
|
||||
|
||||
var example = exampleJson != null
|
||||
@ -127,7 +127,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(400);
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}";
|
||||
exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}";
|
||||
exampleJson = "<Pet>\n <id>123456789</id>\n <name>doggie</name>\n <photoUrls>\n <photoUrls>aeiou</photoUrls>\n </photoUrls>\n <tags>\n </tags>\n <status>aeiou</status>\n</Pet>";
|
||||
|
||||
var example = exampleJson != null
|
||||
@ -161,7 +161,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(404);
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}";
|
||||
exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}";
|
||||
exampleJson = "<Pet>\n <id>123456789</id>\n <name>doggie</name>\n <photoUrls>\n <photoUrls>aeiou</photoUrls>\n </photoUrls>\n <tags>\n </tags>\n <status>aeiou</status>\n</Pet>";
|
||||
|
||||
var example = exampleJson != null
|
||||
@ -197,7 +197,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(405);
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}";
|
||||
exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}";
|
||||
exampleJson = "<Pet>\n <id>123456789</id>\n <name>doggie</name>\n <photoUrls>\n <photoUrls>aeiou</photoUrls>\n </photoUrls>\n <tags>\n </tags>\n <status>aeiou</status>\n</Pet>";
|
||||
|
||||
var example = exampleJson != null
|
||||
@ -247,7 +247,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(200, default(ApiResponse));
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}";
|
||||
exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}";
|
||||
|
||||
var example = exampleJson != null
|
||||
? JsonConvert.DeserializeObject<ApiResponse>(exampleJson)
|
||||
|
@ -98,7 +98,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(404);
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}";
|
||||
exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}";
|
||||
exampleJson = "<Order>\n <id>123456789</id>\n <petId>123456789</petId>\n <quantity>123</quantity>\n <shipDate>2000-01-23T04:56:07.000Z</shipDate>\n <status>aeiou</status>\n <complete>true</complete>\n</Order>";
|
||||
|
||||
var example = exampleJson != null
|
||||
@ -128,7 +128,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(400);
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}";
|
||||
exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}";
|
||||
exampleJson = "<Order>\n <id>123456789</id>\n <petId>123456789</petId>\n <quantity>123</quantity>\n <shipDate>2000-01-23T04:56:07.000Z</shipDate>\n <status>aeiou</status>\n <complete>true</complete>\n</Order>";
|
||||
|
||||
var example = exampleJson != null
|
||||
|
@ -134,7 +134,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(404);
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}";
|
||||
exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}";
|
||||
exampleJson = "<User>\n <id>123456789</id>\n <username>aeiou</username>\n <firstName>aeiou</firstName>\n <lastName>aeiou</lastName>\n <email>aeiou</email>\n <password>aeiou</password>\n <phone>aeiou</phone>\n <userStatus>123</userStatus>\n</User>";
|
||||
|
||||
var example = exampleJson != null
|
||||
|
@ -86,7 +86,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(400);
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}";
|
||||
exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}";
|
||||
exampleJson = "<Pet>\n <id>123456789</id>\n <name>doggie</name>\n <photoUrls>\n <photoUrls>aeiou</photoUrls>\n </photoUrls>\n <tags>\n </tags>\n <status>aeiou</status>\n</Pet>";
|
||||
|
||||
var example = exampleJson != null
|
||||
@ -116,7 +116,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(400);
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}";
|
||||
exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}";
|
||||
exampleJson = "<Pet>\n <id>123456789</id>\n <name>doggie</name>\n <photoUrls>\n <photoUrls>aeiou</photoUrls>\n </photoUrls>\n <tags>\n </tags>\n <status>aeiou</status>\n</Pet>";
|
||||
|
||||
var example = exampleJson != null
|
||||
@ -150,7 +150,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(404);
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}";
|
||||
exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}";
|
||||
exampleJson = "<Pet>\n <id>123456789</id>\n <name>doggie</name>\n <photoUrls>\n <photoUrls>aeiou</photoUrls>\n </photoUrls>\n <tags>\n </tags>\n <status>aeiou</status>\n</Pet>";
|
||||
|
||||
var example = exampleJson != null
|
||||
@ -225,7 +225,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(200, default(ApiResponse));
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}";
|
||||
exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}";
|
||||
|
||||
var example = exampleJson != null
|
||||
? JsonConvert.DeserializeObject<ApiResponse>(exampleJson)
|
||||
|
@ -98,7 +98,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(404);
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}";
|
||||
exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}";
|
||||
exampleJson = "<Order>\n <id>123456789</id>\n <petId>123456789</petId>\n <quantity>123</quantity>\n <shipDate>2000-01-23T04:56:07.000Z</shipDate>\n <status>aeiou</status>\n <complete>true</complete>\n</Order>";
|
||||
|
||||
var example = exampleJson != null
|
||||
@ -127,7 +127,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(400);
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}";
|
||||
exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}";
|
||||
exampleJson = "<Order>\n <id>123456789</id>\n <petId>123456789</petId>\n <quantity>123</quantity>\n <shipDate>2000-01-23T04:56:07.000Z</shipDate>\n <status>aeiou</status>\n <complete>true</complete>\n</Order>";
|
||||
|
||||
var example = exampleJson != null
|
||||
|
@ -127,7 +127,7 @@ namespace Org.OpenAPITools.Controllers
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
|
||||
// return StatusCode(404);
|
||||
string exampleJson = null;
|
||||
exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}";
|
||||
exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}";
|
||||
exampleJson = "<User>\n <id>123456789</id>\n <username>aeiou</username>\n <firstName>aeiou</firstName>\n <lastName>aeiou</lastName>\n <email>aeiou</email>\n <password>aeiou</password>\n <phone>aeiou</phone>\n <userStatus>123</userStatus>\n</User>";
|
||||
|
||||
var example = exampleJson != null
|
||||
|
@ -168,10 +168,10 @@ Class | Method | HTTP request | Description
|
||||
## Authentication
|
||||
|
||||
### Security schema `api_key`
|
||||
> Important! To make ApiKey authentication work you need to extend [\OpenAPIServer\Auth\AbstractAuthenticator](./lib/Auth/AbstractAuthenticator.php) class by [\OpenAPIServer\Auth\ApiKeyAuthenticator](./src/Auth/ApiKeyAuthenticator.php) class.
|
||||
> Important! To make ApiKey authentication work you need to extend [\OpenAPIServer\Auth\AbstractAuthenticator](./lib\/Auth/AbstractAuthenticator.php) class by [\OpenAPIServer\Auth\ApiKeyAuthenticator](./src/Auth/ApiKeyAuthenticator.php) class.
|
||||
|
||||
### Security schema `petstore_auth`
|
||||
> Important! To make OAuth authentication work you need to extend [\OpenAPIServer\Auth\AbstractAuthenticator](./lib/Auth/AbstractAuthenticator.php) class by [\OpenAPIServer\Auth\OAuthAuthenticator](./src/Auth/OAuthAuthenticator.php) class.
|
||||
> Important! To make OAuth authentication work you need to extend [\OpenAPIServer\Auth\AbstractAuthenticator](./lib\/Auth/AbstractAuthenticator.php) class by [\OpenAPIServer\Auth\OAuthAuthenticator](./src/Auth/OAuthAuthenticator.php) class.
|
||||
|
||||
Scope list:
|
||||
* `write:pets` - modify pets in your account
|
||||
|
@ -21,9 +21,9 @@
|
||||
</testsuites>
|
||||
<filter>
|
||||
<whitelist processUncoveredFilesFromWhitelist="true">
|
||||
<directory suffix=".php">./lib/Api</directory>
|
||||
<directory suffix=".php">./lib\/Api</directory>
|
||||
<file>./lib/BaseModel.php</file>
|
||||
<directory suffix=".php">./lib/Model</directory>
|
||||
<directory suffix=".php">./lib\/Model</directory>
|
||||
</whitelist>
|
||||
</filter>
|
||||
<php>
|
||||
|
@ -14,9 +14,9 @@
|
||||
</testsuites>
|
||||
<filter>
|
||||
<whitelist processUncoveredFilesFromWhitelist="true">
|
||||
<directory suffix=".php">././Api</directory>
|
||||
<directory suffix=".php">././Model</directory>
|
||||
<directory suffix=".php">././Controller</directory>
|
||||
<directory suffix=".php">./.\/Api</directory>
|
||||
<directory suffix=".php">./.\/Model</directory>
|
||||
<directory suffix=".php">./.\/Controller</directory>
|
||||
</whitelist>
|
||||
</filter>
|
||||
<php>
|
||||
|
@ -27,9 +27,9 @@ setup(
|
||||
url="",
|
||||
keywords=["OpenAPI", "OpenAPI Petstore"],
|
||||
install_requires=REQUIRES,
|
||||
packages=find_packages("src/"),
|
||||
package_dir={"": "src/"},
|
||||
package_data={'': ['src//openapi/openapi.yaml']},
|
||||
packages=find_packages("src\"),
|
||||
package_dir={"": "src\"},
|
||||
package_data={'': ['src\/openapi/openapi.yaml']},
|
||||
include_package_data=True,
|
||||
entry_points={
|
||||
'console_scripts': ['openapi_server=openapi_server.__main__:main']},
|
||||
|
@ -12,7 +12,7 @@ def client(loop, aiohttp_client):
|
||||
"swagger_ui": True
|
||||
}
|
||||
specification_dir = os.path.join(os.path.dirname(__file__), '..',
|
||||
"src/",
|
||||
"src\",
|
||||
'openapi_server',
|
||||
'openapi')
|
||||
app = connexion.AioHttpApp(__name__, specification_dir=specification_dir,
|
||||
|
@ -8,4 +8,4 @@ deps=-r{toxinidir}/requirements.txt
|
||||
{toxinidir}
|
||||
|
||||
commands=
|
||||
pytest --cov=src/openapi_server
|
||||
pytest --cov=src\openapi_server
|
||||
|
Loading…
x
Reference in New Issue
Block a user