forked from loafle/openapi-generator-original
Merge remote-tracking branch 'origin/master' into 2.3.0
This commit is contained in:
commit
c7efb7000c
4
.gitignore
vendored
4
.gitignore
vendored
@ -143,6 +143,6 @@ samples/client/petstore/typescript-angular/**/typings
|
|||||||
samples/client/petstore/typescript-fetch/**/dist/
|
samples/client/petstore/typescript-fetch/**/dist/
|
||||||
samples/client/petstore/typescript-fetch/**/typings
|
samples/client/petstore/typescript-fetch/**/typings
|
||||||
|
|
||||||
# aspnet5
|
# aspnetcore
|
||||||
samples/server/petstore/aspnet5/.vs/
|
samples/server/petstore/aspnetcore/.vs/
|
||||||
|
|
||||||
|
@ -450,6 +450,7 @@ AbstractTypeScriptClientCodegen.java
|
|||||||
AkkaScalaClientCodegen.java
|
AkkaScalaClientCodegen.java
|
||||||
AndroidClientCodegen.java
|
AndroidClientCodegen.java
|
||||||
AspNet5ServerCodegen.java
|
AspNet5ServerCodegen.java
|
||||||
|
AspNetCoreServerCodegen.java
|
||||||
AsyncScalaClientCodegen.java
|
AsyncScalaClientCodegen.java
|
||||||
CSharpClientCodegen.java
|
CSharpClientCodegen.java
|
||||||
ClojureClientCodegen.java
|
ClojureClientCodegen.java
|
||||||
@ -751,6 +752,7 @@ Here are some companies/projects using Swagger Codegen in production. To add you
|
|||||||
- [bitly](https://bitly.com)
|
- [bitly](https://bitly.com)
|
||||||
- [Bufferfly Network](https://www.butterflynetinc.com/)
|
- [Bufferfly Network](https://www.butterflynetinc.com/)
|
||||||
- [Cachet Financial](http://www.cachetfinancial.com/)
|
- [Cachet Financial](http://www.cachetfinancial.com/)
|
||||||
|
- [carpolo](http://www.carpolo.co/)
|
||||||
- [CloudBoost](https://www.CloudBoost.io/)
|
- [CloudBoost](https://www.CloudBoost.io/)
|
||||||
- [Conplement](http://www.conplement.de/)
|
- [Conplement](http://www.conplement.de/)
|
||||||
- [Cummins] (http://www.cummins.com/)
|
- [Cummins] (http://www.cummins.com/)
|
||||||
@ -809,6 +811,7 @@ Here are some companies/projects using Swagger Codegen in production. To add you
|
|||||||
- [Zalando](https://tech.zalando.com)
|
- [Zalando](https://tech.zalando.com)
|
||||||
- [ZEEF.com](https://zeef.com/)
|
- [ZEEF.com](https://zeef.com/)
|
||||||
|
|
||||||
|
|
||||||
# Swagger Codegen Core Team
|
# Swagger Codegen Core Team
|
||||||
|
|
||||||
Swagger Codegen core team members are contributors who have been making significant contributions (review issues, fix bugs, make enhancements, etc) to the project on a regular basis.
|
Swagger Codegen core team members are contributors who have been making significant contributions (review issues, fix bugs, make enhancements, etc) to the project on a regular basis.
|
||||||
|
@ -26,6 +26,6 @@ fi
|
|||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="$@ generate -l aspnet5 -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -o samples/server/petstore/aspnet5"
|
ags="$@ generate -l aspnetcore -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -o samples/server/petstore/aspnetcore"
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
@ -26,6 +26,6 @@ fi
|
|||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="$@ generate -t modules/swagger-codegen/src/main/resources/swift3 -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l swift3 -c ./bin/swift3-petstore-promisekit.json -o samples/client/petstore/swift/promisekit"
|
ags="$@ generate -t modules/swagger-codegen/src/main/resources/swift3 -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l swift3 -c ./bin/swift3-petstore-promisekit.json -o samples/client/petstore/swift3/promisekit"
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
10
bin/windows/aspnetcore-petstore-server.bat
Executable file
10
bin/windows/aspnetcore-petstore-server.bat
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
set executable=.\modules\swagger-codegen-cli\target\swagger-codegen-cli.jar
|
||||||
|
|
||||||
|
If Not Exist %executable% (
|
||||||
|
mvn clean package
|
||||||
|
)
|
||||||
|
|
||||||
|
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties
|
||||||
|
set ags=generate -i modules\swagger-codegen\src\test\resources\2_0\petstore.json -l aspnetcore -o samples\server\petstore\aspnetcore\
|
||||||
|
|
||||||
|
java %JAVA_OPTS% -jar %executable% %ags%
|
2
bin/windows/aspnet5-petstore-server.bat → bin/windows/html2-petstore.bat
Executable file → Normal file
2
bin/windows/aspnet5-petstore-server.bat → bin/windows/html2-petstore.bat
Executable file → Normal file
@ -5,6 +5,6 @@ If Not Exist %executable% (
|
|||||||
)
|
)
|
||||||
|
|
||||||
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties
|
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties
|
||||||
set ags=generate -i modules\swagger-codegen\src\test\resources\2_0\petstore.json -l aspnet5 -o samples\server\petstore\aspnet5\
|
set ags=generate -i modules\swagger-codegen\src\test\resources\2_0\petstore.yaml -l html2 -o samples\html2
|
||||||
|
|
||||||
java %JAVA_OPTS% -jar %executable% %ags%
|
java %JAVA_OPTS% -jar %executable% %ags%
|
@ -16,11 +16,17 @@ package io.swagger.codegen.plugin;
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import io.swagger.codegen.CliOption;
|
import static io.swagger.codegen.config.CodegenConfiguratorUtils.applyAdditionalPropertiesKvp;
|
||||||
import io.swagger.codegen.ClientOptInput;
|
import static io.swagger.codegen.config.CodegenConfiguratorUtils.applyImportMappingsKvp;
|
||||||
import io.swagger.codegen.CodegenConfig;
|
import static io.swagger.codegen.config.CodegenConfiguratorUtils.applyInstantiationTypesKvp;
|
||||||
import io.swagger.codegen.DefaultGenerator;
|
import static io.swagger.codegen.config.CodegenConfiguratorUtils.applyLanguageSpecificPrimitivesCsv;
|
||||||
import io.swagger.codegen.config.CodegenConfigurator;
|
import static io.swagger.codegen.config.CodegenConfiguratorUtils.applyTypeMappingsKvp;
|
||||||
|
import static org.apache.commons.lang3.StringUtils.isNotEmpty;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
import org.apache.maven.plugin.AbstractMojo;
|
import org.apache.maven.plugin.AbstractMojo;
|
||||||
import org.apache.maven.plugin.MojoExecutionException;
|
import org.apache.maven.plugin.MojoExecutionException;
|
||||||
import org.apache.maven.plugins.annotations.LifecyclePhase;
|
import org.apache.maven.plugins.annotations.LifecyclePhase;
|
||||||
@ -28,12 +34,12 @@ import org.apache.maven.plugins.annotations.Mojo;
|
|||||||
import org.apache.maven.plugins.annotations.Parameter;
|
import org.apache.maven.plugins.annotations.Parameter;
|
||||||
import org.apache.maven.project.MavenProject;
|
import org.apache.maven.project.MavenProject;
|
||||||
|
|
||||||
import java.io.File;
|
import io.swagger.codegen.CliOption;
|
||||||
import java.util.HashMap;
|
import io.swagger.codegen.ClientOptInput;
|
||||||
import java.util.Map;
|
import io.swagger.codegen.CodegenConfig;
|
||||||
|
import io.swagger.codegen.CodegenConstants;
|
||||||
import static io.swagger.codegen.config.CodegenConfiguratorUtils.*;
|
import io.swagger.codegen.DefaultGenerator;
|
||||||
import static org.apache.commons.lang3.StringUtils.isNotEmpty;
|
import io.swagger.codegen.config.CodegenConfigurator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Goal which generates client/server code from a swagger json/yaml definition.
|
* Goal which generates client/server code from a swagger json/yaml definition.
|
||||||
@ -304,7 +310,8 @@ public class CodeGenMojo extends AbstractMojo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (addCompileSourceRoot) {
|
if (addCompileSourceRoot) {
|
||||||
project.addCompileSourceRoot(output.toString());
|
String sourceJavaFolder = output.toString() + "/" + configOptions.get(CodegenConstants.SOURCE_FOLDER);
|
||||||
|
project.addCompileSourceRoot(sourceJavaFolder);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -876,6 +876,10 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
|
|||||||
this.sourceFolder = sourceFolder;
|
this.sourceFolder = sourceFolder;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setTestFolder(String testFolder) {
|
||||||
|
this.testFolder = testFolder;
|
||||||
|
}
|
||||||
|
|
||||||
public void setLocalVariablePrefix(String localVariablePrefix) {
|
public void setLocalVariablePrefix(String localVariablePrefix) {
|
||||||
this.localVariablePrefix = localVariablePrefix;
|
this.localVariablePrefix = localVariablePrefix;
|
||||||
}
|
}
|
||||||
|
@ -1,74 +1,15 @@
|
|||||||
package io.swagger.codegen.languages;
|
package io.swagger.codegen.languages;
|
||||||
|
|
||||||
import io.swagger.codegen.*;
|
|
||||||
import io.swagger.models.properties.*;
|
|
||||||
import org.apache.commons.lang3.StringUtils;
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import java.io.File;
|
public class AspNet5ServerCodegen extends AspNetCoreServerCodegen {
|
||||||
import java.util.*;
|
|
||||||
|
|
||||||
import static java.util.UUID.randomUUID;
|
|
||||||
|
|
||||||
public class AspNet5ServerCodegen extends AbstractCSharpCodegen {
|
|
||||||
|
|
||||||
protected String sourceFolder = "src" + File.separator + packageName;
|
|
||||||
|
|
||||||
private final String packageGuid = "{" + randomUUID().toString().toUpperCase() + "}";
|
|
||||||
|
|
||||||
@SuppressWarnings("hiding")
|
@SuppressWarnings("hiding")
|
||||||
protected Logger LOGGER = LoggerFactory.getLogger(AspNet5ServerCodegen.class);
|
protected Logger LOGGER = LoggerFactory.getLogger(AspNet5ServerCodegen.class);
|
||||||
|
|
||||||
public AspNet5ServerCodegen() {
|
public AspNet5ServerCodegen() {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
outputFolder = "generated-code" + File.separator + this.getName();
|
|
||||||
|
|
||||||
modelTemplateFiles.put("model.mustache", ".cs");
|
|
||||||
apiTemplateFiles.put("controller.mustache", ".cs");
|
|
||||||
|
|
||||||
// contextually reserved words
|
|
||||||
setReservedWordsLowerCase(
|
|
||||||
Arrays.asList("var", "async", "await", "dynamic", "yield")
|
|
||||||
);
|
|
||||||
|
|
||||||
cliOptions.clear();
|
|
||||||
|
|
||||||
// CLI options
|
|
||||||
addOption(CodegenConstants.PACKAGE_NAME,
|
|
||||||
"C# package name (convention: Title.Case).",
|
|
||||||
this.packageName);
|
|
||||||
|
|
||||||
addOption(CodegenConstants.PACKAGE_VERSION,
|
|
||||||
"C# package version.",
|
|
||||||
this.packageVersion);
|
|
||||||
|
|
||||||
addOption(CodegenConstants.SOURCE_FOLDER,
|
|
||||||
CodegenConstants.SOURCE_FOLDER_DESC,
|
|
||||||
sourceFolder);
|
|
||||||
|
|
||||||
// CLI Switches
|
|
||||||
addSwitch(CodegenConstants.SORT_PARAMS_BY_REQUIRED_FLAG,
|
|
||||||
CodegenConstants.SORT_PARAMS_BY_REQUIRED_FLAG_DESC,
|
|
||||||
this.sortParamsByRequiredFlag);
|
|
||||||
|
|
||||||
addSwitch(CodegenConstants.USE_DATETIME_OFFSET,
|
|
||||||
CodegenConstants.USE_DATETIME_OFFSET_DESC,
|
|
||||||
this.useDateTimeOffsetFlag);
|
|
||||||
|
|
||||||
addSwitch(CodegenConstants.USE_COLLECTION,
|
|
||||||
CodegenConstants.USE_COLLECTION_DESC,
|
|
||||||
this.useCollection);
|
|
||||||
|
|
||||||
addSwitch(CodegenConstants.RETURN_ICOLLECTION,
|
|
||||||
CodegenConstants.RETURN_ICOLLECTION_DESC,
|
|
||||||
this.returnICollection);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public CodegenType getTag() {
|
|
||||||
return CodegenType.SERVER;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -76,68 +17,10 @@ public class AspNet5ServerCodegen extends AbstractCSharpCodegen {
|
|||||||
return "aspnet5";
|
return "aspnet5";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getHelp() {
|
|
||||||
return "Generates an ASP.NET 5 Web API server.";
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void processOpts() {
|
public void processOpts() {
|
||||||
super.processOpts();
|
super.processOpts();
|
||||||
|
|
||||||
additionalProperties.put("packageGuid", packageGuid);
|
LOGGER.warn("aspnet5 is deprecated. Please use aspnetcore.");
|
||||||
|
|
||||||
apiPackage = packageName + ".Controllers";
|
|
||||||
modelPackage = packageName + ".Models";
|
|
||||||
|
|
||||||
supportingFiles.add(new SupportingFile("NuGet.Config", "", "NuGet.Config"));
|
|
||||||
supportingFiles.add(new SupportingFile("global.json", "", "global.json"));
|
|
||||||
supportingFiles.add(new SupportingFile("build.sh.mustache", "", "build.sh"));
|
|
||||||
supportingFiles.add(new SupportingFile("build.bat.mustache", "", "build.bat"));
|
|
||||||
supportingFiles.add(new SupportingFile("README.mustache", "", "README.md"));
|
|
||||||
supportingFiles.add(new SupportingFile("Solution.mustache", "", this.packageName + ".sln"));
|
|
||||||
supportingFiles.add(new SupportingFile("Dockerfile.mustache", this.sourceFolder, "Dockerfile"));
|
|
||||||
supportingFiles.add(new SupportingFile("gitignore", this.sourceFolder, ".gitignore"));
|
|
||||||
supportingFiles.add(new SupportingFile("appsettings.json", this.sourceFolder, "appsettings.json"));
|
|
||||||
|
|
||||||
supportingFiles.add(new SupportingFile("project.json.mustache", this.sourceFolder, "project.json"));
|
|
||||||
supportingFiles.add(new SupportingFile("Startup.mustache", this.sourceFolder, "Startup.cs"));
|
|
||||||
supportingFiles.add(new SupportingFile("Program.mustache", this.sourceFolder, "Program.cs"));
|
|
||||||
supportingFiles.add(new SupportingFile("web.config", this.sourceFolder, "web.config"));
|
|
||||||
|
|
||||||
supportingFiles.add(new SupportingFile("Project.xproj.mustache", this.sourceFolder, this.packageName + ".xproj"));
|
|
||||||
|
|
||||||
supportingFiles.add(new SupportingFile("Properties" + File.separator + "launchSettings.json", this.sourceFolder + File.separator + "Properties", "launchSettings.json"));
|
|
||||||
|
|
||||||
supportingFiles.add(new SupportingFile("wwwroot" + File.separator + "README.md", this.sourceFolder + File.separator + "wwwroot", "README.md"));
|
|
||||||
supportingFiles.add(new SupportingFile("wwwroot" + File.separator + "index.html", this.sourceFolder + File.separator + "wwwroot", "index.html"));
|
|
||||||
supportingFiles.add(new SupportingFile("wwwroot" + File.separator + "web.config", this.sourceFolder + File.separator + "wwwroot", "web.config"));
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String apiFileFolder() {
|
|
||||||
return outputFolder + File.separator + sourceFolder + File.separator + "Controllers";
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String modelFileFolder() {
|
|
||||||
return outputFolder + File.separator + sourceFolder + File.separator + "Models";
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void processOperation(CodegenOperation operation) {
|
|
||||||
super.processOperation(operation);
|
|
||||||
|
|
||||||
// HACK: Unlikely in the wild, but we need to clean operation paths for MVC Routing
|
|
||||||
if (operation.path != null) {
|
|
||||||
String original = operation.path;
|
|
||||||
operation.path = operation.path.replace("?", "/");
|
|
||||||
if (!original.equals(operation.path)) {
|
|
||||||
LOGGER.warn("Normalized " + original + " to " + operation.path + ". Please verify generated source.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Converts, for example, PUT to HttpPut for controller attributes
|
|
||||||
operation.httpMethod = "Http" + operation.httpMethod.substring(0, 1) + operation.httpMethod.substring(1).toLowerCase();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,144 @@
|
|||||||
|
package io.swagger.codegen.languages;
|
||||||
|
|
||||||
|
import io.swagger.codegen.CodegenConstants;
|
||||||
|
import io.swagger.codegen.CodegenOperation;
|
||||||
|
import io.swagger.codegen.CodegenType;
|
||||||
|
import io.swagger.codegen.SupportingFile;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.util.Arrays;
|
||||||
|
|
||||||
|
import static java.util.UUID.randomUUID;
|
||||||
|
|
||||||
|
public class AspNetCoreServerCodegen extends AbstractCSharpCodegen {
|
||||||
|
|
||||||
|
protected String sourceFolder = "src" + File.separator + packageName;
|
||||||
|
|
||||||
|
private final String packageGuid = "{" + randomUUID().toString().toUpperCase() + "}";
|
||||||
|
|
||||||
|
@SuppressWarnings("hiding")
|
||||||
|
protected Logger LOGGER = LoggerFactory.getLogger(AspNetCoreServerCodegen.class);
|
||||||
|
|
||||||
|
public AspNetCoreServerCodegen() {
|
||||||
|
super();
|
||||||
|
|
||||||
|
outputFolder = "generated-code" + File.separator + this.getName();
|
||||||
|
|
||||||
|
modelTemplateFiles.put("model.mustache", ".cs");
|
||||||
|
apiTemplateFiles.put("controller.mustache", ".cs");
|
||||||
|
|
||||||
|
// contextually reserved words
|
||||||
|
setReservedWordsLowerCase(
|
||||||
|
Arrays.asList("var", "async", "await", "dynamic", "yield")
|
||||||
|
);
|
||||||
|
|
||||||
|
cliOptions.clear();
|
||||||
|
|
||||||
|
// CLI options
|
||||||
|
addOption(CodegenConstants.PACKAGE_NAME,
|
||||||
|
"C# package name (convention: Title.Case).",
|
||||||
|
this.packageName);
|
||||||
|
|
||||||
|
addOption(CodegenConstants.PACKAGE_VERSION,
|
||||||
|
"C# package version.",
|
||||||
|
this.packageVersion);
|
||||||
|
|
||||||
|
addOption(CodegenConstants.SOURCE_FOLDER,
|
||||||
|
CodegenConstants.SOURCE_FOLDER_DESC,
|
||||||
|
sourceFolder);
|
||||||
|
|
||||||
|
// CLI Switches
|
||||||
|
addSwitch(CodegenConstants.SORT_PARAMS_BY_REQUIRED_FLAG,
|
||||||
|
CodegenConstants.SORT_PARAMS_BY_REQUIRED_FLAG_DESC,
|
||||||
|
this.sortParamsByRequiredFlag);
|
||||||
|
|
||||||
|
addSwitch(CodegenConstants.USE_DATETIME_OFFSET,
|
||||||
|
CodegenConstants.USE_DATETIME_OFFSET_DESC,
|
||||||
|
this.useDateTimeOffsetFlag);
|
||||||
|
|
||||||
|
addSwitch(CodegenConstants.USE_COLLECTION,
|
||||||
|
CodegenConstants.USE_COLLECTION_DESC,
|
||||||
|
this.useCollection);
|
||||||
|
|
||||||
|
addSwitch(CodegenConstants.RETURN_ICOLLECTION,
|
||||||
|
CodegenConstants.RETURN_ICOLLECTION_DESC,
|
||||||
|
this.returnICollection);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public CodegenType getTag() {
|
||||||
|
return CodegenType.SERVER;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "aspnetcore";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getHelp() {
|
||||||
|
return "Generates an ASP.NET Core Web API server.";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void processOpts() {
|
||||||
|
super.processOpts();
|
||||||
|
|
||||||
|
additionalProperties.put("packageGuid", packageGuid);
|
||||||
|
|
||||||
|
apiPackage = packageName + ".Controllers";
|
||||||
|
modelPackage = packageName + ".Models";
|
||||||
|
|
||||||
|
supportingFiles.add(new SupportingFile("NuGet.Config", "", "NuGet.Config"));
|
||||||
|
supportingFiles.add(new SupportingFile("global.json", "", "global.json"));
|
||||||
|
supportingFiles.add(new SupportingFile("build.sh.mustache", "", "build.sh"));
|
||||||
|
supportingFiles.add(new SupportingFile("build.bat.mustache", "", "build.bat"));
|
||||||
|
supportingFiles.add(new SupportingFile("README.mustache", "", "README.md"));
|
||||||
|
supportingFiles.add(new SupportingFile("Solution.mustache", "", this.packageName + ".sln"));
|
||||||
|
supportingFiles.add(new SupportingFile("Dockerfile.mustache", this.sourceFolder, "Dockerfile"));
|
||||||
|
supportingFiles.add(new SupportingFile("gitignore", this.sourceFolder, ".gitignore"));
|
||||||
|
supportingFiles.add(new SupportingFile("appsettings.json", this.sourceFolder, "appsettings.json"));
|
||||||
|
|
||||||
|
supportingFiles.add(new SupportingFile("project.json.mustache", this.sourceFolder, "project.json"));
|
||||||
|
supportingFiles.add(new SupportingFile("Startup.mustache", this.sourceFolder, "Startup.cs"));
|
||||||
|
supportingFiles.add(new SupportingFile("Program.mustache", this.sourceFolder, "Program.cs"));
|
||||||
|
supportingFiles.add(new SupportingFile("web.config", this.sourceFolder, "web.config"));
|
||||||
|
|
||||||
|
supportingFiles.add(new SupportingFile("Project.xproj.mustache", this.sourceFolder, this.packageName + ".xproj"));
|
||||||
|
|
||||||
|
supportingFiles.add(new SupportingFile("Properties" + File.separator + "launchSettings.json", this.sourceFolder + File.separator + "Properties", "launchSettings.json"));
|
||||||
|
|
||||||
|
supportingFiles.add(new SupportingFile("wwwroot" + File.separator + "README.md", this.sourceFolder + File.separator + "wwwroot", "README.md"));
|
||||||
|
supportingFiles.add(new SupportingFile("wwwroot" + File.separator + "index.html", this.sourceFolder + File.separator + "wwwroot", "index.html"));
|
||||||
|
supportingFiles.add(new SupportingFile("wwwroot" + File.separator + "web.config", this.sourceFolder + File.separator + "wwwroot", "web.config"));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String apiFileFolder() {
|
||||||
|
return outputFolder + File.separator + sourceFolder + File.separator + "Controllers";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String modelFileFolder() {
|
||||||
|
return outputFolder + File.separator + sourceFolder + File.separator + "Models";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void processOperation(CodegenOperation operation) {
|
||||||
|
super.processOperation(operation);
|
||||||
|
|
||||||
|
// HACK: Unlikely in the wild, but we need to clean operation paths for MVC Routing
|
||||||
|
if (operation.path != null) {
|
||||||
|
String original = operation.path;
|
||||||
|
operation.path = operation.path.replace("?", "/");
|
||||||
|
if (!original.equals(operation.path)) {
|
||||||
|
LOGGER.warn("Normalized " + original + " to " + operation.path + ". Please verify generated source.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Converts, for example, PUT to HttpPut for controller attributes
|
||||||
|
operation.httpMethod = "Http" + operation.httpMethod.substring(0, 1) + operation.httpMethod.substring(1).toLowerCase();
|
||||||
|
}
|
||||||
|
}
|
@ -21,6 +21,8 @@ import java.util.Iterator;
|
|||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
import static org.apache.commons.lang3.StringUtils.isEmpty;
|
||||||
|
|
||||||
public class CSharpClientCodegen extends AbstractCSharpCodegen {
|
public class CSharpClientCodegen extends AbstractCSharpCodegen {
|
||||||
@SuppressWarnings({"unused", "hiding"})
|
@SuppressWarnings({"unused", "hiding"})
|
||||||
private static final Logger LOGGER = LoggerFactory.getLogger(CSharpClientCodegen.class);
|
private static final Logger LOGGER = LoggerFactory.getLogger(CSharpClientCodegen.class);
|
||||||
@ -48,9 +50,6 @@ public class CSharpClientCodegen extends AbstractCSharpCodegen {
|
|||||||
modelTemplateFiles.put("model.mustache", ".cs");
|
modelTemplateFiles.put("model.mustache", ".cs");
|
||||||
apiTemplateFiles.put("api.mustache", ".cs");
|
apiTemplateFiles.put("api.mustache", ".cs");
|
||||||
|
|
||||||
modelTestTemplateFiles.put("model_test.mustache", ".cs");
|
|
||||||
apiTestTemplateFiles.put("api_test.mustache", ".cs");
|
|
||||||
|
|
||||||
modelDocTemplateFiles.put("model_doc.mustache", ".md");
|
modelDocTemplateFiles.put("model_doc.mustache", ".md");
|
||||||
apiDocTemplateFiles.put("api_doc.mustache", ".md");
|
apiDocTemplateFiles.put("api_doc.mustache", ".md");
|
||||||
|
|
||||||
@ -146,14 +145,22 @@ public class CSharpClientCodegen extends AbstractCSharpCodegen {
|
|||||||
Boolean.valueOf(additionalProperties().get(CodegenConstants.HIDE_GENERATION_TIMESTAMP).toString()));
|
Boolean.valueOf(additionalProperties().get(CodegenConstants.HIDE_GENERATION_TIMESTAMP).toString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(isEmpty(apiPackage)) {
|
||||||
|
apiPackage = "Api";
|
||||||
|
}
|
||||||
|
if(isEmpty(modelPackage)) {
|
||||||
|
modelPackage = "Model";
|
||||||
|
}
|
||||||
|
clientPackage = "Client";
|
||||||
|
|
||||||
Boolean excludeTests = false;
|
Boolean excludeTests = false;
|
||||||
if(additionalProperties.containsKey(CodegenConstants.EXCLUDE_TESTS)) {
|
if(additionalProperties.containsKey(CodegenConstants.EXCLUDE_TESTS)) {
|
||||||
excludeTests = Boolean.valueOf(additionalProperties.get(CodegenConstants.EXCLUDE_TESTS).toString());
|
excludeTests = Boolean.valueOf(additionalProperties.get(CodegenConstants.EXCLUDE_TESTS).toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
apiPackage = "Api";
|
additionalProperties.put(CodegenConstants.API_PACKAGE, apiPackage);
|
||||||
modelPackage = "Model";
|
|
||||||
clientPackage = "Client";
|
additionalProperties.put(CodegenConstants.MODEL_PACKAGE, modelPackage);
|
||||||
|
|
||||||
additionalProperties.put("clientPackage", clientPackage);
|
additionalProperties.put("clientPackage", clientPackage);
|
||||||
|
|
||||||
@ -248,15 +255,20 @@ public class CSharpClientCodegen extends AbstractCSharpCodegen {
|
|||||||
|
|
||||||
supportingFiles.add(new SupportingFile("compile.mustache", "", "build.bat"));
|
supportingFiles.add(new SupportingFile("compile.mustache", "", "build.bat"));
|
||||||
supportingFiles.add(new SupportingFile("compile-mono.sh.mustache", "", "build.sh"));
|
supportingFiles.add(new SupportingFile("compile-mono.sh.mustache", "", "build.sh"));
|
||||||
// shell script to run the nunit test
|
|
||||||
supportingFiles.add(new SupportingFile("mono_nunit_test.mustache", "", "mono_nunit_test.sh"));
|
|
||||||
|
|
||||||
// copy package.config to nuget's standard location for project-level installs
|
// copy package.config to nuget's standard location for project-level installs
|
||||||
supportingFiles.add(new SupportingFile("packages.config.mustache", packageFolder + File.separator, "packages.config"));
|
supportingFiles.add(new SupportingFile("packages.config.mustache", packageFolder + File.separator, "packages.config"));
|
||||||
// .travis.yml for travis-ci.org CI
|
// .travis.yml for travis-ci.org CI
|
||||||
supportingFiles.add(new SupportingFile("travis.mustache", "", ".travis.yml"));
|
supportingFiles.add(new SupportingFile("travis.mustache", "", ".travis.yml"));
|
||||||
|
|
||||||
|
// Only write out test related files if excludeTests is unset or explicitly set to false (see start of this method)
|
||||||
if(Boolean.FALSE.equals(excludeTests)) {
|
if(Boolean.FALSE.equals(excludeTests)) {
|
||||||
|
// shell script to run the nunit test
|
||||||
|
supportingFiles.add(new SupportingFile("mono_nunit_test.mustache", "", "mono_nunit_test.sh"));
|
||||||
|
|
||||||
|
modelTestTemplateFiles.put("model_test.mustache", ".cs");
|
||||||
|
apiTestTemplateFiles.put("api_test.mustache", ".cs");
|
||||||
|
|
||||||
supportingFiles.add(new SupportingFile("packages_test.config.mustache", testPackageFolder + File.separator, "packages.config"));
|
supportingFiles.add(new SupportingFile("packages_test.config.mustache", testPackageFolder + File.separator, "packages.config"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -279,6 +291,7 @@ public class CSharpClientCodegen extends AbstractCSharpCodegen {
|
|||||||
supportingFiles.add(new SupportingFile("Project.mustache", packageFolder, packageName + ".csproj"));
|
supportingFiles.add(new SupportingFile("Project.mustache", packageFolder, packageName + ".csproj"));
|
||||||
|
|
||||||
if(Boolean.FALSE.equals(excludeTests)) {
|
if(Boolean.FALSE.equals(excludeTests)) {
|
||||||
|
// NOTE: This exists here rather than previous excludeTests block because the test project is considered an optional project file.
|
||||||
supportingFiles.add(new SupportingFile("TestProject.mustache", testPackageFolder, testPackageName + ".csproj"));
|
supportingFiles.add(new SupportingFile("TestProject.mustache", testPackageFolder, testPackageName + ".csproj"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -211,7 +211,8 @@ public class DartClientCodegen extends DefaultCodegen implements CodegenConfig {
|
|||||||
public String toModelName(String name) {
|
public String toModelName(String name) {
|
||||||
// model name cannot use reserved keyword, e.g. return
|
// model name cannot use reserved keyword, e.g. return
|
||||||
if (isReservedWord(name)) {
|
if (isReservedWord(name)) {
|
||||||
throw new RuntimeException(name + " (reserved word) cannot be used as a model name");
|
LOGGER.warn(name + " (reserved word) cannot be used as model filename. Renamed to " + camelize("model_" + name));
|
||||||
|
name = "model_" + name; // e.g. return => ModelReturn (after camelize)
|
||||||
}
|
}
|
||||||
|
|
||||||
// camelize the model name
|
// camelize the model name
|
||||||
@ -273,7 +274,9 @@ public class DartClientCodegen extends DefaultCodegen implements CodegenConfig {
|
|||||||
public String toOperationId(String operationId) {
|
public String toOperationId(String operationId) {
|
||||||
// method name cannot use reserved keyword, e.g. return
|
// method name cannot use reserved keyword, e.g. return
|
||||||
if (isReservedWord(operationId)) {
|
if (isReservedWord(operationId)) {
|
||||||
throw new RuntimeException(operationId + " (reserved word) cannot be used as method name");
|
String newOperationId = camelize("call_" + operationId, true);
|
||||||
|
LOGGER.warn(operationId + " (reserved word) cannot be used as method name. Renamed to " + newOperationId);
|
||||||
|
return newOperationId;
|
||||||
}
|
}
|
||||||
|
|
||||||
return camelize(operationId, true);
|
return camelize(operationId, true);
|
||||||
|
@ -36,7 +36,7 @@ public class JavaClientCodegen extends AbstractJavaCodegen {
|
|||||||
|
|
||||||
cliOptions.add(CliOption.newBoolean(USE_RX_JAVA, "Whether to use the RxJava adapter with the retrofit2 library."));
|
cliOptions.add(CliOption.newBoolean(USE_RX_JAVA, "Whether to use the RxJava adapter with the retrofit2 library."));
|
||||||
cliOptions.add(CliOption.newBoolean(PARCELABLE_MODEL, "Whether to generate models for Android that implement Parcelable with the okhttp-gson library."));
|
cliOptions.add(CliOption.newBoolean(PARCELABLE_MODEL, "Whether to generate models for Android that implement Parcelable with the okhttp-gson library."));
|
||||||
cliOptions.add(CliOption.newBoolean(SUPPORT_JAVA6, "Whether to support Java6 with the Jersey1 library. (Default: false)"));
|
cliOptions.add(CliOption.newBoolean(SUPPORT_JAVA6, "Whether to support Java6 with the Jersey1 library."));
|
||||||
|
|
||||||
supportedLibraries.put("jersey1", "HTTP client: Jersey client 1.19.1. JSON processing: Jackson 2.7.0. Enable Java6 support using '-DsupportJava6=true'.");
|
supportedLibraries.put("jersey1", "HTTP client: Jersey client 1.19.1. JSON processing: Jackson 2.7.0. Enable Java6 support using '-DsupportJava6=true'.");
|
||||||
supportedLibraries.put("feign", "HTTP client: Netflix Feign 8.16.0. JSON processing: Jackson 2.7.0");
|
supportedLibraries.put("feign", "HTTP client: Netflix Feign 8.16.0. JSON processing: Jackson 2.7.0");
|
||||||
|
@ -182,7 +182,8 @@ public class SinatraServerCodegen extends DefaultCodegen implements CodegenConfi
|
|||||||
public String toModelName(String name) {
|
public String toModelName(String name) {
|
||||||
// model name cannot use reserved keyword, e.g. return
|
// model name cannot use reserved keyword, e.g. return
|
||||||
if (isReservedWord(name)) {
|
if (isReservedWord(name)) {
|
||||||
throw new RuntimeException(name + " (reserved word) cannot be used as a model name");
|
LOGGER.warn(name + " (reserved word) cannot be used as model filename. Renamed to " + camelize("model_" + name));
|
||||||
|
name = "model_" + name; // e.g. return => ModelReturn (after camelize)
|
||||||
}
|
}
|
||||||
|
|
||||||
// camelize the model name
|
// camelize the model name
|
||||||
@ -194,7 +195,8 @@ public class SinatraServerCodegen extends DefaultCodegen implements CodegenConfi
|
|||||||
public String toModelFilename(String name) {
|
public String toModelFilename(String name) {
|
||||||
// model name cannot use reserved keyword, e.g. return
|
// model name cannot use reserved keyword, e.g. return
|
||||||
if (isReservedWord(name)) {
|
if (isReservedWord(name)) {
|
||||||
throw new RuntimeException(name + " (reserved word) cannot be used as a model name");
|
LOGGER.warn(name + " (reserved word) cannot be used as model filename. Renamed to " + underscore("model_" + name));
|
||||||
|
name = "model_" + name; // e.g. return => ModelReturn (after camelize)
|
||||||
}
|
}
|
||||||
|
|
||||||
// underscore the model file name
|
// underscore the model file name
|
||||||
@ -224,7 +226,9 @@ public class SinatraServerCodegen extends DefaultCodegen implements CodegenConfi
|
|||||||
public String toOperationId(String operationId) {
|
public String toOperationId(String operationId) {
|
||||||
// method name cannot use reserved keyword, e.g. return
|
// method name cannot use reserved keyword, e.g. return
|
||||||
if (isReservedWord(operationId)) {
|
if (isReservedWord(operationId)) {
|
||||||
throw new RuntimeException(operationId + " (reserved word) cannot be used as method name");
|
String newOperationId = underscore("call_" + operationId);
|
||||||
|
LOGGER.warn(operationId + " (reserved word) cannot be used as method name. Renamed to " + newOperationId);
|
||||||
|
return newOperationId;
|
||||||
}
|
}
|
||||||
|
|
||||||
return underscore(operationId);
|
return underscore(operationId);
|
||||||
|
@ -68,7 +68,7 @@ public class Swift3Codegen extends DefaultCodegen implements CodegenConfig {
|
|||||||
outputFolder = "generated-code" + File.separator + "swift";
|
outputFolder = "generated-code" + File.separator + "swift";
|
||||||
modelTemplateFiles.put("model.mustache", ".swift");
|
modelTemplateFiles.put("model.mustache", ".swift");
|
||||||
apiTemplateFiles.put("api.mustache", ".swift");
|
apiTemplateFiles.put("api.mustache", ".swift");
|
||||||
embeddedTemplateDir = templateDir = "swift";
|
embeddedTemplateDir = templateDir = "swift3";
|
||||||
apiPackage = File.separator + "APIs";
|
apiPackage = File.separator + "APIs";
|
||||||
modelPackage = File.separator + "Models";
|
modelPackage = File.separator + "Models";
|
||||||
|
|
||||||
|
@ -22,7 +22,13 @@ import org.glassfish.jersey.media.multipart.MultiPartFeature;
|
|||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
|
||||||
|
{{^supportJava6}}
|
||||||
import java.nio.file.Files;
|
import java.nio.file.Files;
|
||||||
|
{{/supportJava6}}
|
||||||
|
{{#supportJava6}}
|
||||||
|
import org.apache.commons.io.FileUtils;
|
||||||
|
{{/supportJava6}}
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@ -521,7 +527,13 @@ public class ApiClient {
|
|||||||
public File downloadFileFromResponse(Response response) throws ApiException {
|
public File downloadFileFromResponse(Response response) throws ApiException {
|
||||||
try {
|
try {
|
||||||
File file = prepareDownloadFile(response);
|
File file = prepareDownloadFile(response);
|
||||||
|
{{^supportJava6}}
|
||||||
Files.copy(response.readEntity(InputStream.class), file.toPath());
|
Files.copy(response.readEntity(InputStream.class), file.toPath());
|
||||||
|
{{/supportJava6}}
|
||||||
|
{{#supportJava6}}
|
||||||
|
// Java6 falls back to commons.io for file copying
|
||||||
|
FileUtils.copyToFile(response.readEntity(InputStream.class), file);
|
||||||
|
{{/supportJava6}}
|
||||||
return file;
|
return file;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new ApiException(e);
|
throw new ApiException(e);
|
||||||
|
@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
package {{package}};
|
package {{package}};
|
||||||
|
|
||||||
|
{{^supportJava6}}
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
{{/supportJava6}}
|
||||||
{{#imports}}
|
{{#imports}}
|
||||||
import {{import}};
|
import {{import}};
|
||||||
{{/imports}}
|
{{/imports}}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
io.swagger.codegen.languages.AndroidClientCodegen
|
io.swagger.codegen.languages.AndroidClientCodegen
|
||||||
io.swagger.codegen.languages.AspNet5ServerCodegen
|
io.swagger.codegen.languages.AspNet5ServerCodegen
|
||||||
|
io.swagger.codegen.languages.AspNetCoreServerCodegen
|
||||||
io.swagger.codegen.languages.AsyncScalaClientCodegen
|
io.swagger.codegen.languages.AsyncScalaClientCodegen
|
||||||
io.swagger.codegen.languages.ConfluenceWikiGenerator
|
io.swagger.codegen.languages.ConfluenceWikiGenerator
|
||||||
io.swagger.codegen.languages.CSharpClientCodegen
|
io.swagger.codegen.languages.CSharpClientCodegen
|
||||||
|
@ -16,6 +16,7 @@ This C# SDK is automatically generated by the [Swagger Codegen](https://github.c
|
|||||||
For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}})
|
For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}})
|
||||||
{{/infoUrl}}
|
{{/infoUrl}}
|
||||||
|
|
||||||
|
<a name="frameworks-supported"></a>
|
||||||
## Frameworks supported
|
## Frameworks supported
|
||||||
{{^supportUWP}}
|
{{^supportUWP}}
|
||||||
- .NET 4.0 or later
|
- .NET 4.0 or later
|
||||||
@ -25,6 +26,7 @@ This C# SDK is automatically generated by the [Swagger Codegen](https://github.c
|
|||||||
- UWP
|
- UWP
|
||||||
{{/supportUWP}}
|
{{/supportUWP}}
|
||||||
|
|
||||||
|
<a name="dependencies"></a>
|
||||||
## Dependencies
|
## Dependencies
|
||||||
- [RestSharp](https://www.nuget.org/packages/RestSharp) - 105.1.0 or later
|
- [RestSharp](https://www.nuget.org/packages/RestSharp) - 105.1.0 or later
|
||||||
- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 7.0.0 or later
|
- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 7.0.0 or later
|
||||||
@ -37,6 +39,7 @@ Install-Package Newtonsoft.Json
|
|||||||
|
|
||||||
NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See [RestSharp#742](https://github.com/restsharp/RestSharp/issues/742)
|
NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See [RestSharp#742](https://github.com/restsharp/RestSharp/issues/742)
|
||||||
|
|
||||||
|
<a name="installation"></a>
|
||||||
## Installation
|
## Installation
|
||||||
Run the following command to generate the DLL
|
Run the following command to generate the DLL
|
||||||
- [Mac/Linux] `/bin/sh build.sh`
|
- [Mac/Linux] `/bin/sh build.sh`
|
||||||
@ -44,23 +47,19 @@ Run the following command to generate the DLL
|
|||||||
|
|
||||||
Then include the DLL (under the `bin` folder) in the C# project, and use the namespaces:
|
Then include the DLL (under the `bin` folder) in the C# project, and use the namespaces:
|
||||||
```csharp
|
```csharp
|
||||||
using {{packageName}}.Api;
|
using {{packageName}}.{{apiPackage}};
|
||||||
using {{packageName}}.Client;
|
using {{packageName}}.Client;
|
||||||
{{#modelPackage}}
|
using {{packageName}}.{{modelPackage}};
|
||||||
using {{{.}}};
|
|
||||||
{{/modelPackage}}
|
|
||||||
```
|
```
|
||||||
|
<a name="getting-started"></a>
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using {{packageName}}.Api;
|
using {{packageName}}.{{apiPackage}};
|
||||||
using {{packageName}}.Client;
|
using {{packageName}}.Client;
|
||||||
{{#modelPackage}}
|
using {{packageName}}.{{modelPackage}};
|
||||||
using {{{.}}};
|
|
||||||
{{/modelPackage}}
|
|
||||||
|
|
||||||
namespace Example
|
namespace Example
|
||||||
{
|
{
|
||||||
@ -128,6 +127,7 @@ Class | Method | HTTP request | Description
|
|||||||
No model defined in this package
|
No model defined in this package
|
||||||
{{/modelPackage}}
|
{{/modelPackage}}
|
||||||
|
|
||||||
|
<a name="documentation-for-authorization"></a>
|
||||||
## Documentation for Authorization
|
## Documentation for Authorization
|
||||||
|
|
||||||
{{^authMethods}}
|
{{^authMethods}}
|
||||||
|
@ -5,10 +5,10 @@ using System.Collections.ObjectModel;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using RestSharp;
|
using RestSharp;
|
||||||
using {{packageName}}.Client;
|
using {{packageName}}.Client;
|
||||||
{{#hasImport}}using {{packageName}}.Model;
|
{{#hasImport}}using {{packageName}}.{{modelPackage}};
|
||||||
{{/hasImport}}
|
{{/hasImport}}
|
||||||
|
|
||||||
namespace {{packageName}}.Api
|
namespace {{packageName}}.{{apiPackage}}
|
||||||
{
|
{
|
||||||
{{#operations}}
|
{{#operations}}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# {{packageName}}.Api.{{classname}}{{#description}}
|
# {{packageName}}.{{apiPackage}}.{{classname}}{{#description}}
|
||||||
{{description}}{{/description}}
|
{{description}}{{/description}}
|
||||||
|
|
||||||
All URIs are relative to *{{{basePath}}}*
|
All URIs are relative to *{{{basePath}}}*
|
||||||
@ -22,9 +22,9 @@ Method | HTTP request | Description
|
|||||||
```csharp
|
```csharp
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using {{packageName}}.Api;
|
using {{packageName}}.{{apiPackage}};
|
||||||
using {{packageName}}.Client;
|
using {{packageName}}.Client;
|
||||||
using {{packageName}}.Model;
|
using {{packageName}}.{{modelPackage}};
|
||||||
|
|
||||||
namespace Example
|
namespace Example
|
||||||
{
|
{
|
||||||
|
@ -9,8 +9,8 @@ using RestSharp;
|
|||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
|
|
||||||
using {{packageName}}.Client;
|
using {{packageName}}.Client;
|
||||||
using {{packageName}}.Api;
|
using {{packageName}}.{{apiPackage}};
|
||||||
{{#hasImport}}using {{packageName}}.Model;
|
{{#hasImport}}using {{packageName}}.{{modelPackage}};
|
||||||
{{/hasImport}}
|
{{/hasImport}}
|
||||||
|
|
||||||
namespace {{packageName}}.Test
|
namespace {{packageName}}.Test
|
||||||
|
@ -18,7 +18,7 @@ using System.ComponentModel.DataAnnotations;
|
|||||||
|
|
||||||
{{#models}}
|
{{#models}}
|
||||||
{{#model}}
|
{{#model}}
|
||||||
namespace {{packageName}}.Model
|
namespace {{packageName}}.{{modelPackage}}
|
||||||
{
|
{
|
||||||
{{#isEnum}}{{>modelEnum}}{{/isEnum}}{{^isEnum}}{{>modelGeneric}}{{/isEnum}}
|
{{#isEnum}}{{>modelEnum}}{{/isEnum}}{{^isEnum}}{{>modelGeneric}}{{/isEnum}}
|
||||||
{{/model}}
|
{{/model}}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{{#models}}
|
{{#models}}
|
||||||
{{#model}}
|
{{#model}}
|
||||||
# {{{packageName}}}.Model.{{{classname}}}
|
# {{{packageName}}}.{{modelPackage}}.{{{classname}}}
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
|
@ -6,8 +6,8 @@ using System;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using {{packageName}}.Api;
|
using {{packageName}}.{{apiPackage}};
|
||||||
using {{packageName}}.Model;
|
using {{packageName}}.{{modelPackage}};
|
||||||
using {{packageName}}.Client;
|
using {{packageName}}.Client;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
|
@ -216,6 +216,7 @@ function loadGoogleFontCss() {
|
|||||||
<article id="api-{{baseName}}-{{nickname}}-0" data-group="User" data-name="{{nickname}}" data-version="0">
|
<article id="api-{{baseName}}-{{nickname}}-0" data-group="User" data-name="{{nickname}}" data-version="0">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
<h1>{{nickname}}</h1>
|
<h1>{{nickname}}</h1>
|
||||||
|
<p>{{summary}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
|
||||||
|
@ -1,19 +1,19 @@
|
|||||||
package io.swagger.codegen.aspnet5;
|
package io.swagger.codegen.aspnetcore;
|
||||||
|
|
||||||
import io.swagger.codegen.AbstractOptionsTest;
|
import io.swagger.codegen.AbstractOptionsTest;
|
||||||
import io.swagger.codegen.CodegenConfig;
|
import io.swagger.codegen.CodegenConfig;
|
||||||
import io.swagger.codegen.languages.AspNet5ServerCodegen;
|
import io.swagger.codegen.languages.AspNetCoreServerCodegen;
|
||||||
import io.swagger.codegen.options.AspNet5ServerOptionsProvider;
|
import io.swagger.codegen.options.AspNetCoreServerOptionsProvider;
|
||||||
import mockit.Expectations;
|
import mockit.Expectations;
|
||||||
import mockit.Tested;
|
import mockit.Tested;
|
||||||
|
|
||||||
public class AspNet5ServerOptionsTest extends AbstractOptionsTest {
|
public class AspNetCoreServerOptionsTest extends AbstractOptionsTest {
|
||||||
|
|
||||||
@Tested
|
@Tested
|
||||||
private AspNet5ServerCodegen serverCodegen;
|
private AspNetCoreServerCodegen serverCodegen;
|
||||||
|
|
||||||
public AspNet5ServerOptionsTest() {
|
public AspNetCoreServerOptionsTest() {
|
||||||
super(new AspNet5ServerOptionsProvider());
|
super(new AspNetCoreServerOptionsProvider());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -25,11 +25,11 @@ public class AspNet5ServerOptionsTest extends AbstractOptionsTest {
|
|||||||
@Override
|
@Override
|
||||||
protected void setExpectations() {
|
protected void setExpectations() {
|
||||||
new Expectations(serverCodegen) {{
|
new Expectations(serverCodegen) {{
|
||||||
serverCodegen.setPackageName(AspNet5ServerOptionsProvider.PACKAGE_NAME_VALUE);
|
serverCodegen.setPackageName(AspNetCoreServerOptionsProvider.PACKAGE_NAME_VALUE);
|
||||||
times = 1;
|
times = 1;
|
||||||
serverCodegen.setPackageVersion(AspNet5ServerOptionsProvider.PACKAGE_VERSION_VALUE);
|
serverCodegen.setPackageVersion(AspNetCoreServerOptionsProvider.PACKAGE_VERSION_VALUE);
|
||||||
times = 1;
|
times = 1;
|
||||||
serverCodegen.setSourceFolder(AspNet5ServerOptionsProvider.SOURCE_FOLDER_VALUE);
|
serverCodegen.setSourceFolder(AspNetCoreServerOptionsProvider.SOURCE_FOLDER_VALUE);
|
||||||
times = 1;
|
times = 1;
|
||||||
serverCodegen.useDateTimeOffset(true);
|
serverCodegen.useDateTimeOffset(true);
|
||||||
times = 1;
|
times = 1;
|
@ -5,14 +5,14 @@ import io.swagger.codegen.CodegenConstants;
|
|||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
public class AspNet5ServerOptionsProvider implements OptionsProvider {
|
public class AspNetCoreServerOptionsProvider implements OptionsProvider {
|
||||||
public static final String PACKAGE_NAME_VALUE = "swagger_server_aspnet5";
|
public static final String PACKAGE_NAME_VALUE = "swagger_server_aspnetcore";
|
||||||
public static final String PACKAGE_VERSION_VALUE = "1.0.0-SNAPSHOT";
|
public static final String PACKAGE_VERSION_VALUE = "1.0.0-SNAPSHOT";
|
||||||
public static final String SOURCE_FOLDER_VALUE = "src_aspnet5";
|
public static final String SOURCE_FOLDER_VALUE = "src_aspnetcore";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getLanguage() {
|
public String getLanguage() {
|
||||||
return "aspnet5";
|
return "aspnetcore";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
|||||||
# Visual Studio 2012
|
# Visual Studio 2012
|
||||||
VisualStudioVersion = 12.0.0.0
|
VisualStudioVersion = 12.0.0.0
|
||||||
MinimumVisualStudioVersion = 10.0.0.1
|
MinimumVisualStudioVersion = 10.0.0.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger", "src\IO.Swagger\IO.Swagger.csproj", "{473916C4-D026-4063-8A3D-34BC255A0E7A}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger", "src\IO.Swagger\IO.Swagger.csproj", "{D6453B3C-D08D-41D7-A59B-DE1F3581D258}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger.Test", "src\IO.Swagger.Test\IO.Swagger.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger.Test", "src\IO.Swagger.Test\IO.Swagger.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
|
||||||
EndProject
|
EndProject
|
||||||
@ -12,10 +12,10 @@ Debug|Any CPU = Debug|Any CPU
|
|||||||
Release|Any CPU = Release|Any CPU
|
Release|Any CPU = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{473916C4-D026-4063-8A3D-34BC255A0E7A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{D6453B3C-D08D-41D7-A59B-DE1F3581D258}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{473916C4-D026-4063-8A3D-34BC255A0E7A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{D6453B3C-D08D-41D7-A59B-DE1F3581D258}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{473916C4-D026-4063-8A3D-34BC255A0E7A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{D6453B3C-D08D-41D7-A59B-DE1F3581D258}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{473916C4-D026-4063-8A3D-34BC255A0E7A}.Release|Any CPU.Build.0 = Release|Any CPU
|
{D6453B3C-D08D-41D7-A59B-DE1F3581D258}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
SET CSCPATH=%SYSTEMROOT%\Microsoft.NET\Framework\v4.0.30319
|
SET CSCPATH=%SYSTEMROOT%\Microsoft.NET\Framework\v4.0.30319
|
||||||
|
|
||||||
|
|
||||||
if not exist ".\nuget.exe" powershell -Command "(new-object System.Net.WebClient).DownloadFile('https://nuget.org/nuget.exe', '.\nuget.exe')"
|
if not exist ".\nuget.exe" powershell -Command "(new-object System.Net.WebClient).DownloadFile('https://nuget.org/nuget.exe', '.\nuget.exe')"
|
||||||
.\nuget.exe install src\IO.Swagger\packages.config -o packages
|
.\nuget.exe install src\IO.Swagger\packages.config -o packages
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ No authorization required
|
|||||||
|
|
||||||
<a name="testendpointparameters"></a>
|
<a name="testendpointparameters"></a>
|
||||||
# **TestEndpointParameters**
|
# **TestEndpointParameters**
|
||||||
> void TestEndpointParameters (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null)
|
> void TestEndpointParameters (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null)
|
||||||
|
|
||||||
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
|
|
||||||
@ -110,11 +110,12 @@ namespace Example
|
|||||||
var date = 2013-10-20; // DateTime? | None (optional)
|
var date = 2013-10-20; // DateTime? | None (optional)
|
||||||
var dateTime = 2013-10-20T19:20:30+01:00; // DateTime? | None (optional)
|
var dateTime = 2013-10-20T19:20:30+01:00; // DateTime? | None (optional)
|
||||||
var password = password_example; // string | None (optional)
|
var password = password_example; // string | None (optional)
|
||||||
|
var callback = callback_example; // string | None (optional)
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
apiInstance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password);
|
apiInstance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
@ -142,6 +143,7 @@ Name | Type | Description | Notes
|
|||||||
**date** | **DateTime?**| None | [optional]
|
**date** | **DateTime?**| None | [optional]
|
||||||
**dateTime** | **DateTime?**| None | [optional]
|
**dateTime** | **DateTime?**| None | [optional]
|
||||||
**password** | **string**| None | [optional]
|
**password** | **string**| None | [optional]
|
||||||
|
**callback** | **string**| None | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
@ -77,8 +77,9 @@ namespace IO.Swagger.Api
|
|||||||
/// <param name="date">None (optional)</param>
|
/// <param name="date">None (optional)</param>
|
||||||
/// <param name="dateTime">None (optional)</param>
|
/// <param name="dateTime">None (optional)</param>
|
||||||
/// <param name="password">None (optional)</param>
|
/// <param name="password">None (optional)</param>
|
||||||
|
/// <param name="callback">None (optional)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
void TestEndpointParameters (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null);
|
void TestEndpointParameters (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
@ -100,8 +101,9 @@ namespace IO.Swagger.Api
|
|||||||
/// <param name="date">None (optional)</param>
|
/// <param name="date">None (optional)</param>
|
||||||
/// <param name="dateTime">None (optional)</param>
|
/// <param name="dateTime">None (optional)</param>
|
||||||
/// <param name="password">None (optional)</param>
|
/// <param name="password">None (optional)</param>
|
||||||
|
/// <param name="callback">None (optional)</param>
|
||||||
/// <returns>ApiResponse of Object(void)</returns>
|
/// <returns>ApiResponse of Object(void)</returns>
|
||||||
ApiResponse<Object> TestEndpointParametersWithHttpInfo (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null);
|
ApiResponse<Object> TestEndpointParametersWithHttpInfo (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null);
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// To test enum parameters
|
/// To test enum parameters
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -180,8 +182,9 @@ namespace IO.Swagger.Api
|
|||||||
/// <param name="date">None (optional)</param>
|
/// <param name="date">None (optional)</param>
|
||||||
/// <param name="dateTime">None (optional)</param>
|
/// <param name="dateTime">None (optional)</param>
|
||||||
/// <param name="password">None (optional)</param>
|
/// <param name="password">None (optional)</param>
|
||||||
|
/// <param name="callback">None (optional)</param>
|
||||||
/// <returns>Task of void</returns>
|
/// <returns>Task of void</returns>
|
||||||
System.Threading.Tasks.Task TestEndpointParametersAsync (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null);
|
System.Threading.Tasks.Task TestEndpointParametersAsync (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
@ -203,8 +206,9 @@ namespace IO.Swagger.Api
|
|||||||
/// <param name="date">None (optional)</param>
|
/// <param name="date">None (optional)</param>
|
||||||
/// <param name="dateTime">None (optional)</param>
|
/// <param name="dateTime">None (optional)</param>
|
||||||
/// <param name="password">None (optional)</param>
|
/// <param name="password">None (optional)</param>
|
||||||
|
/// <param name="callback">None (optional)</param>
|
||||||
/// <returns>Task of ApiResponse</returns>
|
/// <returns>Task of ApiResponse</returns>
|
||||||
System.Threading.Tasks.Task<ApiResponse<Object>> TestEndpointParametersAsyncWithHttpInfo (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null);
|
System.Threading.Tasks.Task<ApiResponse<Object>> TestEndpointParametersAsyncWithHttpInfo (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null);
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// To test enum parameters
|
/// To test enum parameters
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -526,10 +530,11 @@ namespace IO.Swagger.Api
|
|||||||
/// <param name="date">None (optional)</param>
|
/// <param name="date">None (optional)</param>
|
||||||
/// <param name="dateTime">None (optional)</param>
|
/// <param name="dateTime">None (optional)</param>
|
||||||
/// <param name="password">None (optional)</param>
|
/// <param name="password">None (optional)</param>
|
||||||
|
/// <param name="callback">None (optional)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public void TestEndpointParameters (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null)
|
public void TestEndpointParameters (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null)
|
||||||
{
|
{
|
||||||
TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password);
|
TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -549,8 +554,9 @@ namespace IO.Swagger.Api
|
|||||||
/// <param name="date">None (optional)</param>
|
/// <param name="date">None (optional)</param>
|
||||||
/// <param name="dateTime">None (optional)</param>
|
/// <param name="dateTime">None (optional)</param>
|
||||||
/// <param name="password">None (optional)</param>
|
/// <param name="password">None (optional)</param>
|
||||||
|
/// <param name="callback">None (optional)</param>
|
||||||
/// <returns>ApiResponse of Object(void)</returns>
|
/// <returns>ApiResponse of Object(void)</returns>
|
||||||
public ApiResponse<Object> TestEndpointParametersWithHttpInfo (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null)
|
public ApiResponse<Object> TestEndpointParametersWithHttpInfo (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null)
|
||||||
{
|
{
|
||||||
// verify the required parameter 'number' is set
|
// verify the required parameter 'number' is set
|
||||||
if (number == null)
|
if (number == null)
|
||||||
@ -605,6 +611,7 @@ namespace IO.Swagger.Api
|
|||||||
if (date != null) localVarFormParams.Add("date", Configuration.ApiClient.ParameterToString(date)); // form parameter
|
if (date != null) localVarFormParams.Add("date", Configuration.ApiClient.ParameterToString(date)); // form parameter
|
||||||
if (dateTime != null) localVarFormParams.Add("dateTime", Configuration.ApiClient.ParameterToString(dateTime)); // form parameter
|
if (dateTime != null) localVarFormParams.Add("dateTime", Configuration.ApiClient.ParameterToString(dateTime)); // form parameter
|
||||||
if (password != null) localVarFormParams.Add("password", Configuration.ApiClient.ParameterToString(password)); // form parameter
|
if (password != null) localVarFormParams.Add("password", Configuration.ApiClient.ParameterToString(password)); // form parameter
|
||||||
|
if (callback != null) localVarFormParams.Add("callback", Configuration.ApiClient.ParameterToString(callback)); // form parameter
|
||||||
|
|
||||||
// authentication (http_basic_test) required
|
// authentication (http_basic_test) required
|
||||||
// http basic authentication required
|
// http basic authentication required
|
||||||
@ -650,10 +657,11 @@ namespace IO.Swagger.Api
|
|||||||
/// <param name="date">None (optional)</param>
|
/// <param name="date">None (optional)</param>
|
||||||
/// <param name="dateTime">None (optional)</param>
|
/// <param name="dateTime">None (optional)</param>
|
||||||
/// <param name="password">None (optional)</param>
|
/// <param name="password">None (optional)</param>
|
||||||
|
/// <param name="callback">None (optional)</param>
|
||||||
/// <returns>Task of void</returns>
|
/// <returns>Task of void</returns>
|
||||||
public async System.Threading.Tasks.Task TestEndpointParametersAsync (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null)
|
public async System.Threading.Tasks.Task TestEndpointParametersAsync (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null)
|
||||||
{
|
{
|
||||||
await TestEndpointParametersAsyncWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password);
|
await TestEndpointParametersAsyncWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -674,8 +682,9 @@ namespace IO.Swagger.Api
|
|||||||
/// <param name="date">None (optional)</param>
|
/// <param name="date">None (optional)</param>
|
||||||
/// <param name="dateTime">None (optional)</param>
|
/// <param name="dateTime">None (optional)</param>
|
||||||
/// <param name="password">None (optional)</param>
|
/// <param name="password">None (optional)</param>
|
||||||
|
/// <param name="callback">None (optional)</param>
|
||||||
/// <returns>Task of ApiResponse</returns>
|
/// <returns>Task of ApiResponse</returns>
|
||||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestEndpointParametersAsyncWithHttpInfo (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null)
|
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestEndpointParametersAsyncWithHttpInfo (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null)
|
||||||
{
|
{
|
||||||
// verify the required parameter 'number' is set
|
// verify the required parameter 'number' is set
|
||||||
if (number == null)
|
if (number == null)
|
||||||
@ -730,6 +739,7 @@ namespace IO.Swagger.Api
|
|||||||
if (date != null) localVarFormParams.Add("date", Configuration.ApiClient.ParameterToString(date)); // form parameter
|
if (date != null) localVarFormParams.Add("date", Configuration.ApiClient.ParameterToString(date)); // form parameter
|
||||||
if (dateTime != null) localVarFormParams.Add("dateTime", Configuration.ApiClient.ParameterToString(dateTime)); // form parameter
|
if (dateTime != null) localVarFormParams.Add("dateTime", Configuration.ApiClient.ParameterToString(dateTime)); // form parameter
|
||||||
if (password != null) localVarFormParams.Add("password", Configuration.ApiClient.ParameterToString(password)); // form parameter
|
if (password != null) localVarFormParams.Add("password", Configuration.ApiClient.ParameterToString(password)); // form parameter
|
||||||
|
if (callback != null) localVarFormParams.Add("callback", Configuration.ApiClient.ParameterToString(callback)); // form parameter
|
||||||
|
|
||||||
// authentication (http_basic_test) required
|
// authentication (http_basic_test) required
|
||||||
// http basic authentication required
|
// http basic authentication required
|
||||||
|
@ -24,7 +24,7 @@ limitations under the License.
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
<ProjectGuid>{473916C4-D026-4063-8A3D-34BC255A0E7A}</ProjectGuid>
|
<ProjectGuid>{D6453B3C-D08D-41D7-A59B-DE1F3581D258}</ProjectGuid>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>IO.Swagger</RootNamespace>
|
<RootNamespace>IO.Swagger</RootNamespace>
|
||||||
|
@ -997,6 +997,7 @@ margin-bottom: 20px;
|
|||||||
<article id="api-Pet-addPet-0" data-group="User" data-name="addPet" data-version="0">
|
<article id="api-Pet-addPet-0" data-group="User" data-name="addPet" data-version="0">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
<h1>addPet</h1>
|
<h1>addPet</h1>
|
||||||
|
<p>Add a new pet to the store</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
|
||||||
@ -1393,6 +1394,7 @@ try {
|
|||||||
<article id="api-Pet-deletePet-0" data-group="User" data-name="deletePet" data-version="0">
|
<article id="api-Pet-deletePet-0" data-group="User" data-name="deletePet" data-version="0">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
<h1>deletePet</h1>
|
<h1>deletePet</h1>
|
||||||
|
<p>Deletes a pet</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
|
||||||
@ -1828,6 +1830,7 @@ try {
|
|||||||
<article id="api-Pet-findPetsByStatus-0" data-group="User" data-name="findPetsByStatus" data-version="0">
|
<article id="api-Pet-findPetsByStatus-0" data-group="User" data-name="findPetsByStatus" data-version="0">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
<h1>findPetsByStatus</h1>
|
<h1>findPetsByStatus</h1>
|
||||||
|
<p>Finds Pets by status</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
|
||||||
@ -2307,6 +2310,7 @@ try {
|
|||||||
<article id="api-Pet-findPetsByTags-0" data-group="User" data-name="findPetsByTags" data-version="0">
|
<article id="api-Pet-findPetsByTags-0" data-group="User" data-name="findPetsByTags" data-version="0">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
<h1>findPetsByTags</h1>
|
<h1>findPetsByTags</h1>
|
||||||
|
<p>Finds Pets by tags</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
|
||||||
@ -2784,6 +2788,7 @@ try {
|
|||||||
<article id="api-Pet-getPetById-0" data-group="User" data-name="getPetById" data-version="0">
|
<article id="api-Pet-getPetById-0" data-group="User" data-name="getPetById" data-version="0">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
<h1>getPetById</h1>
|
<h1>getPetById</h1>
|
||||||
|
<p>Find pet by ID</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
|
||||||
@ -3341,6 +3346,7 @@ try {
|
|||||||
<article id="api-Pet-updatePet-0" data-group="User" data-name="updatePet" data-version="0">
|
<article id="api-Pet-updatePet-0" data-group="User" data-name="updatePet" data-version="0">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
<h1>updatePet</h1>
|
<h1>updatePet</h1>
|
||||||
|
<p>Update an existing pet</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
|
||||||
@ -3889,6 +3895,7 @@ try {
|
|||||||
<article id="api-Pet-updatePetWithForm-0" data-group="User" data-name="updatePetWithForm" data-version="0">
|
<article id="api-Pet-updatePetWithForm-0" data-group="User" data-name="updatePetWithForm" data-version="0">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
<h1>updatePetWithForm</h1>
|
<h1>updatePetWithForm</h1>
|
||||||
|
<p>Updates a pet in the store with form data</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
|
||||||
@ -4290,6 +4297,7 @@ try {
|
|||||||
<article id="api-Pet-uploadFile-0" data-group="User" data-name="uploadFile" data-version="0">
|
<article id="api-Pet-uploadFile-0" data-group="User" data-name="uploadFile" data-version="0">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
<h1>uploadFile</h1>
|
<h1>uploadFile</h1>
|
||||||
|
<p>uploads an image</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
|
||||||
@ -4705,6 +4713,7 @@ try {
|
|||||||
<article id="api-Store-deleteOrder-0" data-group="User" data-name="deleteOrder" data-version="0">
|
<article id="api-Store-deleteOrder-0" data-group="User" data-name="deleteOrder" data-version="0">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
<h1>deleteOrder</h1>
|
<h1>deleteOrder</h1>
|
||||||
|
<p>Delete purchase order by ID</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
|
||||||
@ -5145,6 +5154,7 @@ try {
|
|||||||
<article id="api-Store-getInventory-0" data-group="User" data-name="getInventory" data-version="0">
|
<article id="api-Store-getInventory-0" data-group="User" data-name="getInventory" data-version="0">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
<h1>getInventory</h1>
|
<h1>getInventory</h1>
|
||||||
|
<p>Returns pet inventories by status</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
|
||||||
@ -5504,6 +5514,7 @@ try {
|
|||||||
<article id="api-Store-getOrderById-0" data-group="User" data-name="getOrderById" data-version="0">
|
<article id="api-Store-getOrderById-0" data-group="User" data-name="getOrderById" data-version="0">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
<h1>getOrderById</h1>
|
<h1>getOrderById</h1>
|
||||||
|
<p>Find purchase order by ID</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
|
||||||
@ -6032,6 +6043,7 @@ try {
|
|||||||
<article id="api-Store-placeOrder-0" data-group="User" data-name="placeOrder" data-version="0">
|
<article id="api-Store-placeOrder-0" data-group="User" data-name="placeOrder" data-version="0">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
<h1>placeOrder</h1>
|
<h1>placeOrder</h1>
|
||||||
|
<p>Place an order for a pet</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
|
||||||
@ -6497,6 +6509,7 @@ try {
|
|||||||
<article id="api-User-createUser-0" data-group="User" data-name="createUser" data-version="0">
|
<article id="api-User-createUser-0" data-group="User" data-name="createUser" data-version="0">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
<h1>createUser</h1>
|
<h1>createUser</h1>
|
||||||
|
<p>Create user</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
|
||||||
@ -6872,6 +6885,7 @@ try {
|
|||||||
<article id="api-User-createUsersWithArrayInput-0" data-group="User" data-name="createUsersWithArrayInput" data-version="0">
|
<article id="api-User-createUsersWithArrayInput-0" data-group="User" data-name="createUsersWithArrayInput" data-version="0">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
<h1>createUsersWithArrayInput</h1>
|
<h1>createUsersWithArrayInput</h1>
|
||||||
|
<p>Creates list of users with given input array</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
|
||||||
@ -7250,6 +7264,7 @@ try {
|
|||||||
<article id="api-User-createUsersWithListInput-0" data-group="User" data-name="createUsersWithListInput" data-version="0">
|
<article id="api-User-createUsersWithListInput-0" data-group="User" data-name="createUsersWithListInput" data-version="0">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
<h1>createUsersWithListInput</h1>
|
<h1>createUsersWithListInput</h1>
|
||||||
|
<p>Creates list of users with given input array</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
|
||||||
@ -7628,6 +7643,7 @@ try {
|
|||||||
<article id="api-User-deleteUser-0" data-group="User" data-name="deleteUser" data-version="0">
|
<article id="api-User-deleteUser-0" data-group="User" data-name="deleteUser" data-version="0">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
<h1>deleteUser</h1>
|
<h1>deleteUser</h1>
|
||||||
|
<p>Delete user</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
|
||||||
@ -8067,6 +8083,7 @@ try {
|
|||||||
<article id="api-User-getUserByName-0" data-group="User" data-name="getUserByName" data-version="0">
|
<article id="api-User-getUserByName-0" data-group="User" data-name="getUserByName" data-version="0">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
<h1>getUserByName</h1>
|
<h1>getUserByName</h1>
|
||||||
|
<p>Get user by user name</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
|
||||||
@ -8592,6 +8609,7 @@ try {
|
|||||||
<article id="api-User-loginUser-0" data-group="User" data-name="loginUser" data-version="0">
|
<article id="api-User-loginUser-0" data-group="User" data-name="loginUser" data-version="0">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
<h1>loginUser</h1>
|
<h1>loginUser</h1>
|
||||||
|
<p>Logs user into the system</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
|
||||||
@ -9094,6 +9112,7 @@ try {
|
|||||||
<article id="api-User-logoutUser-0" data-group="User" data-name="logoutUser" data-version="0">
|
<article id="api-User-logoutUser-0" data-group="User" data-name="logoutUser" data-version="0">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
<h1>logoutUser</h1>
|
<h1>logoutUser</h1>
|
||||||
|
<p>Logs out current logged in user session</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
|
||||||
@ -9408,6 +9427,7 @@ try {
|
|||||||
<article id="api-User-updateUser-0" data-group="User" data-name="updateUser" data-version="0">
|
<article id="api-User-updateUser-0" data-group="User" data-name="updateUser" data-version="0">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
<h1>updateUser</h1>
|
<h1>updateUser</h1>
|
||||||
|
<p>Updated user</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
|
||||||
@ -9921,7 +9941,7 @@ try {
|
|||||||
</div>
|
</div>
|
||||||
<div id="generator">
|
<div id="generator">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
Generated 2016-10-13T09:03:51.792-07:00
|
Generated 2016-10-17T21:36:47.443+11:00
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
23
samples/server/petstore/aspnetcore/.swagger-codegen-ignore
Normal file
23
samples/server/petstore/aspnetcore/.swagger-codegen-ignore
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# Swagger Codegen Ignore
|
||||||
|
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
|
||||||
|
|
||||||
|
# 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 Swagger Codgen 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
|
@ -604,6 +604,8 @@ definitions:
|
|||||||
complete:
|
complete:
|
||||||
type: "boolean"
|
type: "boolean"
|
||||||
default: false
|
default: false
|
||||||
|
title: "Pet Order"
|
||||||
|
description: "An order for a pets from the pet store"
|
||||||
xml:
|
xml:
|
||||||
name: "Order"
|
name: "Order"
|
||||||
Category:
|
Category:
|
||||||
@ -614,6 +616,8 @@ definitions:
|
|||||||
format: "int64"
|
format: "int64"
|
||||||
name:
|
name:
|
||||||
type: "string"
|
type: "string"
|
||||||
|
title: "Pet catehgry"
|
||||||
|
description: "A category for a pet"
|
||||||
xml:
|
xml:
|
||||||
name: "Category"
|
name: "Category"
|
||||||
User:
|
User:
|
||||||
@ -638,6 +642,8 @@ definitions:
|
|||||||
type: "integer"
|
type: "integer"
|
||||||
format: "int32"
|
format: "int32"
|
||||||
description: "User Status"
|
description: "User Status"
|
||||||
|
title: "a User"
|
||||||
|
description: "A User who is purchasing from the pet store"
|
||||||
xml:
|
xml:
|
||||||
name: "User"
|
name: "User"
|
||||||
Tag:
|
Tag:
|
||||||
@ -648,6 +654,8 @@ definitions:
|
|||||||
format: "int64"
|
format: "int64"
|
||||||
name:
|
name:
|
||||||
type: "string"
|
type: "string"
|
||||||
|
title: "Pet Tag"
|
||||||
|
description: "A tag for a pet"
|
||||||
xml:
|
xml:
|
||||||
name: "Tag"
|
name: "Tag"
|
||||||
Pet:
|
Pet:
|
||||||
@ -685,6 +693,8 @@ definitions:
|
|||||||
- "available"
|
- "available"
|
||||||
- "pending"
|
- "pending"
|
||||||
- "sold"
|
- "sold"
|
||||||
|
title: "a Pet"
|
||||||
|
description: "A pet for sale in the pet store"
|
||||||
xml:
|
xml:
|
||||||
name: "Pet"
|
name: "Pet"
|
||||||
ApiResponse:
|
ApiResponse:
|
||||||
@ -697,6 +707,8 @@ definitions:
|
|||||||
type: "string"
|
type: "string"
|
||||||
message:
|
message:
|
||||||
type: "string"
|
type: "string"
|
||||||
|
title: "An uploaded response"
|
||||||
|
description: "Describes the result of uploading an image resource"
|
||||||
externalDocs:
|
externalDocs:
|
||||||
description: "Find out more about Swagger"
|
description: "Find out more about Swagger"
|
||||||
url: "http://swagger.io"
|
url: "http://swagger.io"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user