#18058 Fix the Java generator to generate valid @RequestMappings where the produce field takes list of string parameters instead of a single comma-separated string (#18092)

* #18058 Fix AbstractJavaCodegen.getAccepts() so it returns a String array instead of a comma-separated string, and fixed api.mustache so the @RequestMapping annotation generated produces for x-accepts as a parameter list instead of a (single) string.

* #18058 Updated test case to accept a string array instead of a comma-separated list.

* #18058 Reverted changes on imported compared to the main branch.

* #18058 getAccepts() is now hybrid, and can return both a single String or a String[].

* #18058 Rolled back the hybrid getAccepts(), so it only returns a String array.

* #18058 Updated mustache files to cope with vendorExtensions.x-accepts being a string array instead of a comma-separated string.

* #18058 Generated new sample files with by running `./bin/generate-samples.sh ./bin/configs/*.yaml`

* #18058 Optimization of getAccepts()

* #18058 Regenerated scripts that got broken after resolving conflicts on GitHub

* #18058 Fixed introduced issue with api.mustache causing a redundant accept with @HttpExchange with the PetApi.java, StoreApi.java, and UserApi.java.
This commit is contained in:
Flemming Nørnberg Larsen
2024-03-21 10:53:18 +01:00
committed by GitHub
parent c7e9bd2f29
commit a4508f6817
160 changed files with 6261 additions and 3105 deletions

View File

@@ -1784,7 +1784,7 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
String contentType = consumes.isEmpty() ? defaultContentType : consumes.get(0);
operation.addExtension("x-content-type", contentType);
}
String accepts = getAccepts(openAPI, operation);
String[] accepts = getAccepts(openAPI, operation);
operation.addExtension("x-accepts", accepts);
}
}
@@ -1835,19 +1835,12 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
}
}
private static String getAccepts(OpenAPI openAPIArg, Operation operation) {
private static String[] getAccepts(OpenAPI openAPIArg, Operation operation) {
final Set<String> producesInfo = getProducesInfo(openAPIArg, operation);
if (producesInfo != null && !producesInfo.isEmpty()) {
StringBuilder sb = new StringBuilder();
for (String produce : producesInfo) {
if (sb.length() > 0) {
sb.append(",");
}
sb.append(produce);
}
return sb.toString();
return producesInfo.toArray(new String[] {});
}
return "application/json"; // default media type
return new String[] { "application/json" }; // default media type
}
@Override

View File

@@ -43,7 +43,7 @@ public interface {{classname}} extends ApiClient.Api {
@RequestLine("{{httpMethod}} {{{path}}}{{#hasQueryParams}}?{{/hasQueryParams}}{{#queryParams}}{{baseName}}={{=<% %>=}}{<%paramName%>}<%={{ }}=%>{{^-last}}&{{/-last}}{{/queryParams}}")
@Headers({
{{#vendorExtensions.x-content-type}} "Content-Type: {{vendorExtensions.x-content-type}}",
{{/vendorExtensions.x-content-type}} "Accept: {{vendorExtensions.x-accepts}}",{{#headerParams}}
{{/vendorExtensions.x-content-type}} "Accept: {{#vendorExtensions.x-accepts}}{{.}}{{^-last}},{{/-last}}{{/vendorExtensions.x-accepts}}",{{#headerParams}}
"{{baseName}}: {{=<% %>=}}{<%paramName%>}<%={{ }}=%>"{{^-last}},
{{/-last}}{{/headerParams}}
})
@@ -73,7 +73,7 @@ public interface {{classname}} extends ApiClient.Api {
@RequestLine("{{httpMethod}} {{{path}}}{{#hasQueryParams}}?{{/hasQueryParams}}{{#queryParams}}{{baseName}}={{=<% %>=}}{<%paramName%>}<%={{ }}=%>{{^-last}}&{{/-last}}{{/queryParams}}")
@Headers({
{{#vendorExtensions.x-content-type}} "Content-Type: {{vendorExtensions.x-content-type}}",
{{/vendorExtensions.x-content-type}} "Accept: {{vendorExtensions.x-accepts}}",{{#headerParams}}
{{/vendorExtensions.x-content-type}} "Accept: {{#vendorExtensions.x-accepts}}{{.}}{{^-last}},{{/-last}}{{/vendorExtensions.x-accepts}}",{{#headerParams}}
"{{baseName}}: {{=<% %>=}}{<%paramName%>}<%={{ }}=%>"{{^-last}},
{{/-last}}{{/headerParams}}
})
@@ -118,7 +118,7 @@ public interface {{classname}} extends ApiClient.Api {
@RequestLine("{{httpMethod}} {{{path}}}?{{#queryParams}}{{baseName}}={{=<% %>=}}{<%paramName%>}<%={{ }}=%>{{^-last}}&{{/-last}}{{/queryParams}}")
@Headers({
{{#vendorExtensions.x-content-type}} "Content-Type: {{vendorExtensions.x-content-type}}",
{{/vendorExtensions.x-content-type}} "Accept: {{vendorExtensions.x-accepts}}",{{#headerParams}}
{{/vendorExtensions.x-content-type}} "Accept: {{#vendorExtensions.x-accepts}}{{.}}{{^-last}},{{/-last}}{{/vendorExtensions.x-accepts}}",{{#headerParams}}
"{{baseName}}: {{=<% %>=}}{<%paramName%>}<%={{ }}=%>"{{^-last}},
{{/-last}}{{/headerParams}}
})
@@ -158,7 +158,7 @@ public interface {{classname}} extends ApiClient.Api {
@RequestLine("{{httpMethod}} {{{path}}}?{{#queryParams}}{{baseName}}={{=<% %>=}}{<%paramName%>}<%={{ }}=%>{{^-last}}&{{/-last}}{{/queryParams}}")
@Headers({
{{#vendorExtensions.x-content-type}} "Content-Type: {{vendorExtensions.x-content-type}}",
{{/vendorExtensions.x-content-type}} "Accept: {{vendorExtensions.x-accepts}}",{{#headerParams}}
{{/vendorExtensions.x-content-type}} "Accept: {{#vendorExtensions.x-accepts}}{{.}}{{^-last}},{{/-last}}{{/vendorExtensions.x-accepts}}",{{#headerParams}}
"{{baseName}}: {{=<% %>=}}{<%paramName%>}<%={{ }}=%>"{{^-last}},
{{/-last}}{{/headerParams}}
})

View File

@@ -157,9 +157,7 @@ public class {{classname}} {
{{#x-content-type}}
reqSpec.setContentType("{{x-content-type}}");
{{/x-content-type}}
{{#x-accepts}}
reqSpec.setAccept("{{x-accepts}}");
{{/x-accepts}}
reqSpec.setAccept("{{#x-accepts}}{{.}}{{^-last}},{{/-last}}{{/x-accepts}}");
{{/vendorExtensions}}
this.respSpec = new ResponseSpecBuilder();
}

View File

@@ -233,7 +233,7 @@ public interface {{classname}} {
@RequestMapping(
method = RequestMethod.{{httpMethod}},
value = "{{{path}}}"{{#singleContentTypes}}{{#hasProduces}},
produces = "{{{vendorExtensions.x-accepts}}}"{{/hasProduces}}{{#hasConsumes}},
produces = { {{#vendorExtensions.x-accepts}}"{{.}}"{{^-last}}, {{/-last}}{{/vendorExtensions.x-accepts}} }{{/hasProduces}}{{#hasConsumes}},
consumes = "{{{vendorExtensions.x-content-type}}}"{{/hasConsumes}}{{/singleContentTypes}}{{^singleContentTypes}}{{#hasProduces}},
produces = { {{#produces}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/produces}} }{{/hasProduces}}{{#hasConsumes}},
consumes = { {{#consumes}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/consumes}} }{{/hasConsumes}}{{/singleContentTypes}}{{#hasVersionHeaders}},

View File

@@ -53,8 +53,8 @@ public interface {{classname}} {
{{/isDeprecated}}
@HttpExchange(
method = "{{{httpMethod}}}",
value = "{{{path}}}"{{#vendorExtensions.x-accepts}},
accept = "{{{vendorExtensions.x-accepts}}}"{{/vendorExtensions.x-accepts}}{{#vendorExtensions.x-content-type}},
value = "{{{path}}}",
accept = { {{#vendorExtensions.x-accepts}}"{{.}}"{{^-last}}, {{/-last}}{{/vendorExtensions.x-accepts}} }{{#vendorExtensions.x-content-type}},
contentType = "{{{vendorExtensions.x-content-type}}}"{{/vendorExtensions.x-content-type}}
)
{{>responseType}} {{operationId}}(

View File

@@ -58,7 +58,7 @@ public interface {{classname}} {
@RequestMapping(
method = RequestMethod.{{httpMethod}},
value = "{{{path}}}"{{#singleContentTypes}},
produces = "{{{vendorExtensions.x-accepts}}}",
produces = { {{#vendorExtensions.x-accepts}}"{{.}}"{{^-last}}, {{/-last}}{{/vendorExtensions.x-accepts}} },
consumes = "{{{vendorExtensions.x-content-type}}}"{{/singleContentTypes}}{{^singleContentTypes}}{{#hasProduces}},
produces = { {{#produces}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/produces}} }{{/hasProduces}}{{#hasConsumes}},
consumes = { {{#consumes}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/consumes}} }{{/hasConsumes}}{{/singleContentTypes}}

View File

@@ -85,7 +85,7 @@ class {{classname}}Controller({{#serviceInterface}}@Autowired(required = true) v
@RequestMapping(
method = [RequestMethod.{{httpMethod}}],
value = ["{{#lambdaEscapeInNormalString}}{{path}}{{/lambdaEscapeInNormalString}}"]{{#singleContentTypes}}{{#hasProduces}},
produces = "{{{vendorExtensions.x-accepts}}}"{{/hasProduces}}{{#hasConsumes}},
produces = [{{#vendorExtensions.x-accepts}}"{{.}}"{{^-last}}, {{/-last}}{{/vendorExtensions.x-accepts}}]{{/hasProduces}}{{#hasConsumes}},
consumes = "{{{vendorExtensions.x-content-type}}}"{{/hasConsumes}}{{/singleContentTypes}}{{^singleContentTypes}}{{#hasProduces}},
produces = [{{#produces}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/produces}}]{{/hasProduces}}{{#hasConsumes}},
consumes = [{{#consumes}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/consumes}}]{{/hasConsumes}}{{/singleContentTypes}}

View File

@@ -97,7 +97,7 @@ interface {{classname}} {
@RequestMapping(
method = [RequestMethod.{{httpMethod}}],
value = ["{{#lambdaEscapeInNormalString}}{{path}}{{/lambdaEscapeInNormalString}}"]{{#singleContentTypes}}{{#hasProduces}},
produces = "{{{vendorExtensions.x-accepts}}}"{{/hasProduces}}{{#hasConsumes}},
produces = [{{#vendorExtensions.x-accepts}}"{{.}}"{{^-last}}, {{/-last}}{{/vendorExtensions.x-accepts}}]{{/hasProduces}}{{#hasConsumes}},
consumes = "{{{vendorExtensions.x-content-type}}}"{{/hasConsumes}}{{/singleContentTypes}}{{^singleContentTypes}}{{#hasProduces}},
produces = [{{#produces}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/produces}}]{{/hasProduces}}{{#hasConsumes}},
consumes = [{{#consumes}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/consumes}}]{{/hasConsumes}}{{/singleContentTypes}}

View File

@@ -83,7 +83,10 @@ public class AbstractJavaCodegenTest {
codegen.preprocessOpenAPI(openAPI);
Assert.assertEquals(codegen.getArtifactVersion(), openAPI.getInfo().getVersion());
Assert.assertEquals(openAPI.getPaths().get("/pet").getPost().getExtensions().get("x-accepts"), "application/json,application/xml");
Object xAccepts = openAPI.getPaths().get("/pet").getPost().getExtensions().get("x-accepts");
Assert.assertTrue(xAccepts instanceof String[]);
Assert.assertTrue(List.of((String[]) xAccepts).containsAll(List.of("application/json", "application/xml")));
}
@Test

View File

@@ -58,7 +58,8 @@ paths:
summary: Test path parameter(s)
tags:
- path
x-accepts: text/plain
x-accepts:
- text/plain
/form/integer/boolean/string:
post:
description: Test form parameter(s)
@@ -79,7 +80,8 @@ paths:
tags:
- form
x-content-type: application/x-www-form-urlencoded
x-accepts: text/plain
x-accepts:
- text/plain
/form/oneof:
post:
description: Test form parameter(s) for oneOf schema
@@ -100,7 +102,8 @@ paths:
tags:
- form
x-content-type: application/x-www-form-urlencoded
x-accepts: text/plain
x-accepts:
- text/plain
/header/integer/boolean/string/enums:
get:
description: Test header parameter(s)
@@ -155,7 +158,8 @@ paths:
summary: Test header parameter(s)
tags:
- header
x-accepts: text/plain
x-accepts:
- text/plain
/query/enum_ref_string:
get:
description: Test query parameter(s)
@@ -189,7 +193,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/datetime/date/string:
get:
description: Test query parameter(s)
@@ -228,7 +233,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/integer/boolean/string:
get:
description: Test query parameter(s)
@@ -265,7 +271,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_true/array_string:
get:
description: Test query parameter(s)
@@ -288,7 +295,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_false/array_integer:
get:
description: Test query parameter(s)
@@ -313,7 +321,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_false/array_string:
get:
description: Test query parameter(s)
@@ -338,7 +347,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_true/object:
get:
description: Test query parameter(s)
@@ -361,7 +371,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_true/object/allOf:
get:
description: Test query parameter(s)
@@ -384,7 +395,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_deepObject/explode_true/object:
get:
description: Test query parameter(s)
@@ -407,7 +419,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_deepObject/explode_true/object/allOf:
get:
description: Test query parameter(s)
@@ -430,7 +443,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/body/application/octetstream/binary:
post:
description: Test body parameter(s)
@@ -452,7 +466,8 @@ paths:
tags:
- body
x-content-type: application/octet-stream
x-accepts: text/plain
x-accepts:
- text/plain
/echo/body/Pet:
post:
description: Test body parameter(s)
@@ -470,7 +485,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/echo/body/allOf/Pet:
post:
description: Test body parameter(s)
@@ -488,7 +504,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/echo/body/Pet/response_string:
post:
description: Test empty response body
@@ -506,7 +523,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: text/plain
x-accepts:
- text/plain
/echo/body/Tag/response_string:
post:
description: Test empty json (request body)
@@ -524,7 +542,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: text/plain
x-accepts:
- text/plain
/echo/body/FreeFormObject/response_string:
post:
description: Test free form object
@@ -546,7 +565,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: text/plain
x-accepts:
- text/plain
/echo/body/string_enum:
post:
description: Test string enum response body
@@ -568,7 +588,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/binary/gif:
post:
description: Test binary (gif) response body
@@ -584,7 +605,8 @@ paths:
summary: Test binary (gif) response body
tags:
- body
x-accepts: image/gif
x-accepts:
- image/gif
/body/application/octetstream/single_binary:
post:
description: Test single binary in multipart mime
@@ -605,7 +627,8 @@ paths:
tags:
- body
x-content-type: multipart/form-data
x-accepts: text/plain
x-accepts:
- text/plain
/body/application/octetstream/array_of_binary:
post:
description: Test array of binary in multipart mime
@@ -626,7 +649,8 @@ paths:
tags:
- body
x-content-type: multipart/form-data
x-accepts: text/plain
x-accepts:
- text/plain
/auth/http/basic:
post:
description: To test HTTP basic authentication
@@ -643,7 +667,8 @@ paths:
summary: To test HTTP basic authentication
tags:
- auth
x-accepts: text/plain
x-accepts:
- text/plain
/auth/http/bearer:
post:
description: To test HTTP bearer authentication
@@ -660,7 +685,8 @@ paths:
summary: To test HTTP bearer authentication
tags:
- auth
x-accepts: text/plain
x-accepts:
- text/plain
components:
requestBodies:
Pet:

View File

@@ -58,7 +58,8 @@ paths:
summary: Test path parameter(s)
tags:
- path
x-accepts: text/plain
x-accepts:
- text/plain
/form/integer/boolean/string:
post:
description: Test form parameter(s)
@@ -79,7 +80,8 @@ paths:
tags:
- form
x-content-type: application/x-www-form-urlencoded
x-accepts: text/plain
x-accepts:
- text/plain
/form/oneof:
post:
description: Test form parameter(s) for oneOf schema
@@ -100,7 +102,8 @@ paths:
tags:
- form
x-content-type: application/x-www-form-urlencoded
x-accepts: text/plain
x-accepts:
- text/plain
/header/integer/boolean/string/enums:
get:
description: Test header parameter(s)
@@ -155,7 +158,8 @@ paths:
summary: Test header parameter(s)
tags:
- header
x-accepts: text/plain
x-accepts:
- text/plain
/query/enum_ref_string:
get:
description: Test query parameter(s)
@@ -189,7 +193,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/datetime/date/string:
get:
description: Test query parameter(s)
@@ -228,7 +233,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/integer/boolean/string:
get:
description: Test query parameter(s)
@@ -265,7 +271,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_true/array_string:
get:
description: Test query parameter(s)
@@ -288,7 +295,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_false/array_integer:
get:
description: Test query parameter(s)
@@ -313,7 +321,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_false/array_string:
get:
description: Test query parameter(s)
@@ -338,7 +347,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_true/object:
get:
description: Test query parameter(s)
@@ -361,7 +371,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_true/object/allOf:
get:
description: Test query parameter(s)
@@ -384,7 +395,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_deepObject/explode_true/object:
get:
description: Test query parameter(s)
@@ -407,7 +419,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_deepObject/explode_true/object/allOf:
get:
description: Test query parameter(s)
@@ -430,7 +443,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/body/application/octetstream/binary:
post:
description: Test body parameter(s)
@@ -452,7 +466,8 @@ paths:
tags:
- body
x-content-type: application/octet-stream
x-accepts: text/plain
x-accepts:
- text/plain
/echo/body/Pet:
post:
description: Test body parameter(s)
@@ -470,7 +485,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/echo/body/allOf/Pet:
post:
description: Test body parameter(s)
@@ -488,7 +504,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/echo/body/Pet/response_string:
post:
description: Test empty response body
@@ -506,7 +523,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: text/plain
x-accepts:
- text/plain
/echo/body/Tag/response_string:
post:
description: Test empty json (request body)
@@ -524,7 +542,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: text/plain
x-accepts:
- text/plain
/echo/body/FreeFormObject/response_string:
post:
description: Test free form object
@@ -546,7 +565,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: text/plain
x-accepts:
- text/plain
/echo/body/string_enum:
post:
description: Test string enum response body
@@ -568,7 +588,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/binary/gif:
post:
description: Test binary (gif) response body
@@ -584,7 +605,8 @@ paths:
summary: Test binary (gif) response body
tags:
- body
x-accepts: image/gif
x-accepts:
- image/gif
/body/application/octetstream/single_binary:
post:
description: Test single binary in multipart mime
@@ -605,7 +627,8 @@ paths:
tags:
- body
x-content-type: multipart/form-data
x-accepts: text/plain
x-accepts:
- text/plain
/body/application/octetstream/array_of_binary:
post:
description: Test array of binary in multipart mime
@@ -626,7 +649,8 @@ paths:
tags:
- body
x-content-type: multipart/form-data
x-accepts: text/plain
x-accepts:
- text/plain
/auth/http/basic:
post:
description: To test HTTP basic authentication
@@ -643,7 +667,8 @@ paths:
summary: To test HTTP basic authentication
tags:
- auth
x-accepts: text/plain
x-accepts:
- text/plain
/auth/http/bearer:
post:
description: To test HTTP bearer authentication
@@ -660,7 +685,8 @@ paths:
summary: To test HTTP bearer authentication
tags:
- auth
x-accepts: text/plain
x-accepts:
- text/plain
components:
requestBodies:
Pet:

View File

@@ -58,7 +58,8 @@ paths:
summary: Test path parameter(s)
tags:
- path
x-accepts: text/plain
x-accepts:
- text/plain
/form/integer/boolean/string:
post:
description: Test form parameter(s)
@@ -79,7 +80,8 @@ paths:
tags:
- form
x-content-type: application/x-www-form-urlencoded
x-accepts: text/plain
x-accepts:
- text/plain
/form/oneof:
post:
description: Test form parameter(s) for oneOf schema
@@ -100,7 +102,8 @@ paths:
tags:
- form
x-content-type: application/x-www-form-urlencoded
x-accepts: text/plain
x-accepts:
- text/plain
/header/integer/boolean/string/enums:
get:
description: Test header parameter(s)
@@ -155,7 +158,8 @@ paths:
summary: Test header parameter(s)
tags:
- header
x-accepts: text/plain
x-accepts:
- text/plain
/query/enum_ref_string:
get:
description: Test query parameter(s)
@@ -189,7 +193,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/datetime/date/string:
get:
description: Test query parameter(s)
@@ -228,7 +233,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/integer/boolean/string:
get:
description: Test query parameter(s)
@@ -265,7 +271,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_true/array_string:
get:
description: Test query parameter(s)
@@ -288,7 +295,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_false/array_integer:
get:
description: Test query parameter(s)
@@ -313,7 +321,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_false/array_string:
get:
description: Test query parameter(s)
@@ -338,7 +347,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_true/object:
get:
description: Test query parameter(s)
@@ -361,7 +371,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_true/object/allOf:
get:
description: Test query parameter(s)
@@ -384,7 +395,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_deepObject/explode_true/object:
get:
description: Test query parameter(s)
@@ -407,7 +419,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_deepObject/explode_true/object/allOf:
get:
description: Test query parameter(s)
@@ -430,7 +443,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/body/application/octetstream/binary:
post:
description: Test body parameter(s)
@@ -452,7 +466,8 @@ paths:
tags:
- body
x-content-type: application/octet-stream
x-accepts: text/plain
x-accepts:
- text/plain
/echo/body/Pet:
post:
description: Test body parameter(s)
@@ -470,7 +485,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/echo/body/allOf/Pet:
post:
description: Test body parameter(s)
@@ -488,7 +504,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/echo/body/Pet/response_string:
post:
description: Test empty response body
@@ -506,7 +523,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: text/plain
x-accepts:
- text/plain
/echo/body/Tag/response_string:
post:
description: Test empty json (request body)
@@ -524,7 +542,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: text/plain
x-accepts:
- text/plain
/echo/body/FreeFormObject/response_string:
post:
description: Test free form object
@@ -546,7 +565,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: text/plain
x-accepts:
- text/plain
/echo/body/string_enum:
post:
description: Test string enum response body
@@ -568,7 +588,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/binary/gif:
post:
description: Test binary (gif) response body
@@ -584,7 +605,8 @@ paths:
summary: Test binary (gif) response body
tags:
- body
x-accepts: image/gif
x-accepts:
- image/gif
/body/application/octetstream/single_binary:
post:
description: Test single binary in multipart mime
@@ -605,7 +627,8 @@ paths:
tags:
- body
x-content-type: multipart/form-data
x-accepts: text/plain
x-accepts:
- text/plain
/body/application/octetstream/array_of_binary:
post:
description: Test array of binary in multipart mime
@@ -626,7 +649,8 @@ paths:
tags:
- body
x-content-type: multipart/form-data
x-accepts: text/plain
x-accepts:
- text/plain
/auth/http/basic:
post:
description: To test HTTP basic authentication
@@ -643,7 +667,8 @@ paths:
summary: To test HTTP basic authentication
tags:
- auth
x-accepts: text/plain
x-accepts:
- text/plain
/auth/http/bearer:
post:
description: To test HTTP bearer authentication
@@ -660,7 +685,8 @@ paths:
summary: To test HTTP bearer authentication
tags:
- auth
x-accepts: text/plain
x-accepts:
- text/plain
components:
requestBodies:
Pet:

View File

@@ -58,7 +58,8 @@ paths:
summary: Test path parameter(s)
tags:
- path
x-accepts: text/plain
x-accepts:
- text/plain
/form/integer/boolean/string:
post:
description: Test form parameter(s)
@@ -79,7 +80,8 @@ paths:
tags:
- form
x-content-type: application/x-www-form-urlencoded
x-accepts: text/plain
x-accepts:
- text/plain
/form/oneof:
post:
description: Test form parameter(s) for oneOf schema
@@ -100,7 +102,8 @@ paths:
tags:
- form
x-content-type: application/x-www-form-urlencoded
x-accepts: text/plain
x-accepts:
- text/plain
/header/integer/boolean/string/enums:
get:
description: Test header parameter(s)
@@ -155,7 +158,8 @@ paths:
summary: Test header parameter(s)
tags:
- header
x-accepts: text/plain
x-accepts:
- text/plain
/query/enum_ref_string:
get:
description: Test query parameter(s)
@@ -189,7 +193,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/datetime/date/string:
get:
description: Test query parameter(s)
@@ -228,7 +233,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/integer/boolean/string:
get:
description: Test query parameter(s)
@@ -265,7 +271,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_true/array_string:
get:
description: Test query parameter(s)
@@ -288,7 +295,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_false/array_integer:
get:
description: Test query parameter(s)
@@ -313,7 +321,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_false/array_string:
get:
description: Test query parameter(s)
@@ -338,7 +347,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_true/object:
get:
description: Test query parameter(s)
@@ -361,7 +371,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_true/object/allOf:
get:
description: Test query parameter(s)
@@ -384,7 +395,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_deepObject/explode_true/object:
get:
description: Test query parameter(s)
@@ -407,7 +419,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_deepObject/explode_true/object/allOf:
get:
description: Test query parameter(s)
@@ -430,7 +443,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/body/application/octetstream/binary:
post:
description: Test body parameter(s)
@@ -452,7 +466,8 @@ paths:
tags:
- body
x-content-type: application/octet-stream
x-accepts: text/plain
x-accepts:
- text/plain
/echo/body/Pet:
post:
description: Test body parameter(s)
@@ -470,7 +485,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/echo/body/allOf/Pet:
post:
description: Test body parameter(s)
@@ -488,7 +504,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/echo/body/Pet/response_string:
post:
description: Test empty response body
@@ -506,7 +523,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: text/plain
x-accepts:
- text/plain
/echo/body/Tag/response_string:
post:
description: Test empty json (request body)
@@ -524,7 +542,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: text/plain
x-accepts:
- text/plain
/echo/body/FreeFormObject/response_string:
post:
description: Test free form object
@@ -546,7 +565,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: text/plain
x-accepts:
- text/plain
/echo/body/string_enum:
post:
description: Test string enum response body
@@ -568,7 +588,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/binary/gif:
post:
description: Test binary (gif) response body
@@ -584,7 +605,8 @@ paths:
summary: Test binary (gif) response body
tags:
- body
x-accepts: image/gif
x-accepts:
- image/gif
/body/application/octetstream/single_binary:
post:
description: Test single binary in multipart mime
@@ -605,7 +627,8 @@ paths:
tags:
- body
x-content-type: multipart/form-data
x-accepts: text/plain
x-accepts:
- text/plain
/body/application/octetstream/array_of_binary:
post:
description: Test array of binary in multipart mime
@@ -626,7 +649,8 @@ paths:
tags:
- body
x-content-type: multipart/form-data
x-accepts: text/plain
x-accepts:
- text/plain
/auth/http/basic:
post:
description: To test HTTP basic authentication
@@ -643,7 +667,8 @@ paths:
summary: To test HTTP basic authentication
tags:
- auth
x-accepts: text/plain
x-accepts:
- text/plain
/auth/http/bearer:
post:
description: To test HTTP bearer authentication
@@ -660,7 +685,8 @@ paths:
summary: To test HTTP bearer authentication
tags:
- auth
x-accepts: text/plain
x-accepts:
- text/plain
components:
requestBodies:
Pet:

View File

@@ -58,7 +58,8 @@ paths:
summary: Test path parameter(s)
tags:
- path
x-accepts: text/plain
x-accepts:
- text/plain
/form/integer/boolean/string:
post:
description: Test form parameter(s)
@@ -79,7 +80,8 @@ paths:
tags:
- form
x-content-type: application/x-www-form-urlencoded
x-accepts: text/plain
x-accepts:
- text/plain
/form/oneof:
post:
description: Test form parameter(s) for oneOf schema
@@ -100,7 +102,8 @@ paths:
tags:
- form
x-content-type: application/x-www-form-urlencoded
x-accepts: text/plain
x-accepts:
- text/plain
/header/integer/boolean/string/enums:
get:
description: Test header parameter(s)
@@ -155,7 +158,8 @@ paths:
summary: Test header parameter(s)
tags:
- header
x-accepts: text/plain
x-accepts:
- text/plain
/query/enum_ref_string:
get:
description: Test query parameter(s)
@@ -189,7 +193,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/datetime/date/string:
get:
description: Test query parameter(s)
@@ -228,7 +233,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/integer/boolean/string:
get:
description: Test query parameter(s)
@@ -265,7 +271,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_true/array_string:
get:
description: Test query parameter(s)
@@ -288,7 +295,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_false/array_integer:
get:
description: Test query parameter(s)
@@ -313,7 +321,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_false/array_string:
get:
description: Test query parameter(s)
@@ -338,7 +347,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_true/object:
get:
description: Test query parameter(s)
@@ -361,7 +371,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_true/object/allOf:
get:
description: Test query parameter(s)
@@ -384,7 +395,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_deepObject/explode_true/object:
get:
description: Test query parameter(s)
@@ -407,7 +419,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_deepObject/explode_true/object/allOf:
get:
description: Test query parameter(s)
@@ -430,7 +443,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/body/application/octetstream/binary:
post:
description: Test body parameter(s)
@@ -452,7 +466,8 @@ paths:
tags:
- body
x-content-type: application/octet-stream
x-accepts: text/plain
x-accepts:
- text/plain
/echo/body/Pet:
post:
description: Test body parameter(s)
@@ -470,7 +485,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/echo/body/allOf/Pet:
post:
description: Test body parameter(s)
@@ -488,7 +504,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/echo/body/Pet/response_string:
post:
description: Test empty response body
@@ -506,7 +523,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: text/plain
x-accepts:
- text/plain
/echo/body/Tag/response_string:
post:
description: Test empty json (request body)
@@ -524,7 +542,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: text/plain
x-accepts:
- text/plain
/echo/body/FreeFormObject/response_string:
post:
description: Test free form object
@@ -546,7 +565,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: text/plain
x-accepts:
- text/plain
/echo/body/string_enum:
post:
description: Test string enum response body
@@ -568,7 +588,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/binary/gif:
post:
description: Test binary (gif) response body
@@ -584,7 +605,8 @@ paths:
summary: Test binary (gif) response body
tags:
- body
x-accepts: image/gif
x-accepts:
- image/gif
/body/application/octetstream/single_binary:
post:
description: Test single binary in multipart mime
@@ -605,7 +627,8 @@ paths:
tags:
- body
x-content-type: multipart/form-data
x-accepts: text/plain
x-accepts:
- text/plain
/body/application/octetstream/array_of_binary:
post:
description: Test array of binary in multipart mime
@@ -626,7 +649,8 @@ paths:
tags:
- body
x-content-type: multipart/form-data
x-accepts: text/plain
x-accepts:
- text/plain
/auth/http/basic:
post:
description: To test HTTP basic authentication
@@ -643,7 +667,8 @@ paths:
summary: To test HTTP basic authentication
tags:
- auth
x-accepts: text/plain
x-accepts:
- text/plain
/auth/http/bearer:
post:
description: To test HTTP bearer authentication
@@ -660,7 +685,8 @@ paths:
summary: To test HTTP bearer authentication
tags:
- auth
x-accepts: text/plain
x-accepts:
- text/plain
components:
requestBodies:
Pet:

View File

@@ -58,7 +58,8 @@ paths:
summary: Test path parameter(s)
tags:
- path
x-accepts: text/plain
x-accepts:
- text/plain
/form/integer/boolean/string:
post:
description: Test form parameter(s)
@@ -79,7 +80,8 @@ paths:
tags:
- form
x-content-type: application/x-www-form-urlencoded
x-accepts: text/plain
x-accepts:
- text/plain
/form/oneof:
post:
description: Test form parameter(s) for oneOf schema
@@ -100,7 +102,8 @@ paths:
tags:
- form
x-content-type: application/x-www-form-urlencoded
x-accepts: text/plain
x-accepts:
- text/plain
/header/integer/boolean/string/enums:
get:
description: Test header parameter(s)
@@ -155,7 +158,8 @@ paths:
summary: Test header parameter(s)
tags:
- header
x-accepts: text/plain
x-accepts:
- text/plain
/query/enum_ref_string:
get:
description: Test query parameter(s)
@@ -189,7 +193,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/datetime/date/string:
get:
description: Test query parameter(s)
@@ -228,7 +233,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/integer/boolean/string:
get:
description: Test query parameter(s)
@@ -265,7 +271,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_true/array_string:
get:
description: Test query parameter(s)
@@ -288,7 +295,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_false/array_integer:
get:
description: Test query parameter(s)
@@ -313,7 +321,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_false/array_string:
get:
description: Test query parameter(s)
@@ -338,7 +347,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_true/object:
get:
description: Test query parameter(s)
@@ -361,7 +371,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_form/explode_true/object/allOf:
get:
description: Test query parameter(s)
@@ -384,7 +395,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_deepObject/explode_true/object:
get:
description: Test query parameter(s)
@@ -407,7 +419,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/query/style_deepObject/explode_true/object/allOf:
get:
description: Test query parameter(s)
@@ -430,7 +443,8 @@ paths:
summary: Test query parameter(s)
tags:
- query
x-accepts: text/plain
x-accepts:
- text/plain
/body/application/octetstream/binary:
post:
description: Test body parameter(s)
@@ -452,7 +466,8 @@ paths:
tags:
- body
x-content-type: application/octet-stream
x-accepts: text/plain
x-accepts:
- text/plain
/echo/body/Pet:
post:
description: Test body parameter(s)
@@ -470,7 +485,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/echo/body/allOf/Pet:
post:
description: Test body parameter(s)
@@ -488,7 +504,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/echo/body/Pet/response_string:
post:
description: Test empty response body
@@ -506,7 +523,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: text/plain
x-accepts:
- text/plain
/echo/body/Tag/response_string:
post:
description: Test empty json (request body)
@@ -524,7 +542,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: text/plain
x-accepts:
- text/plain
/echo/body/FreeFormObject/response_string:
post:
description: Test free form object
@@ -546,7 +565,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: text/plain
x-accepts:
- text/plain
/echo/body/string_enum:
post:
description: Test string enum response body
@@ -568,7 +588,8 @@ paths:
tags:
- body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/binary/gif:
post:
description: Test binary (gif) response body
@@ -584,7 +605,8 @@ paths:
summary: Test binary (gif) response body
tags:
- body
x-accepts: image/gif
x-accepts:
- image/gif
/body/application/octetstream/single_binary:
post:
description: Test single binary in multipart mime
@@ -605,7 +627,8 @@ paths:
tags:
- body
x-content-type: multipart/form-data
x-accepts: text/plain
x-accepts:
- text/plain
/body/application/octetstream/array_of_binary:
post:
description: Test array of binary in multipart mime
@@ -626,7 +649,8 @@ paths:
tags:
- body
x-content-type: multipart/form-data
x-accepts: text/plain
x-accepts:
- text/plain
/auth/http/basic:
post:
description: To test HTTP basic authentication
@@ -643,7 +667,8 @@ paths:
summary: To test HTTP basic authentication
tags:
- auth
x-accepts: text/plain
x-accepts:
- text/plain
/auth/http/bearer:
post:
description: To test HTTP bearer authentication
@@ -660,7 +685,8 @@ paths:
summary: To test HTTP bearer authentication
tags:
- auth
x-accepts: text/plain
x-accepts:
- text/plain
components:
requestBodies:
Pet:

View File

@@ -17,7 +17,8 @@ paths:
"200":
description: OK
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
components:
schemas:
_myExample_post_request:

View File

@@ -35,7 +35,8 @@ paths:
x-streaming: true
x-group-parameters: true
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
post:
operationId: postPing
requestBody:
@@ -54,7 +55,8 @@ paths:
- ping
x-streaming: true
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
components:
schemas:
SomeObj:

View File

@@ -19,7 +19,8 @@ paths:
description: Successful operation
tags:
- resource
x-accepts: application/octet-stream
x-accepts:
- application/octet-stream
components:
schemas: {}

View File

@@ -19,7 +19,8 @@ paths:
description: Successful operation
tags:
- resource
x-accepts: application/octet-stream
x-accepts:
- application/octet-stream
components:
schemas: {}

View File

@@ -50,7 +50,8 @@ paths:
schema:
$ref: '#/components/schemas/_foo_get_default_response'
description: response
x-accepts: application/json
x-accepts:
- application/json
/pet:
post:
description: ""
@@ -70,7 +71,8 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
put:
description: ""
operationId: updatePet
@@ -94,7 +96,8 @@ paths:
- pet
x-webclient-blocking: true
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
servers:
- url: http://petstore.swagger.io/v2
- url: http://path-server-test.petstore.local/v2
@@ -158,7 +161,9 @@ paths:
tags:
- pet
x-webclient-blocking: true
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -203,7 +208,9 @@ paths:
tags:
- pet
x-webclient-blocking: true
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
description: ""
@@ -237,7 +244,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -271,7 +279,9 @@ paths:
tags:
- pet
x-webclient-blocking: true
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
description: ""
operationId: updatePetWithForm
@@ -303,7 +313,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
description: ""
@@ -338,7 +349,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -359,7 +371,8 @@ paths:
tags:
- store
x-webclient-blocking: false
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
description: ""
@@ -387,7 +400,9 @@ paths:
tags:
- store
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{order_id}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -410,7 +425,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -444,7 +460,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -463,7 +481,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
description: ""
@@ -477,7 +496,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
description: ""
@@ -491,7 +511,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
description: ""
@@ -543,7 +564,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
description: ""
@@ -554,7 +577,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -576,7 +600,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
description: ""
operationId: getUserByName
@@ -606,7 +631,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -635,7 +662,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake_classname_test:
patch:
description: To test class name in snake case
@@ -655,7 +683,8 @@ paths:
tags:
- fake_classname_tags 123#$%^
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake:
delete:
description: Fake endpoint to test group parameters (optional)
@@ -720,7 +749,8 @@ paths:
tags:
- fake
x-group-parameters: true
x-accepts: application/json
x-accepts:
- application/json
get:
description: To test enum parameters
operationId: testEnumParameters
@@ -826,7 +856,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
patch:
description: To test "client" model
operationId: testClientModel
@@ -843,7 +874,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
post:
description: |
Fake endpoint for testing various parameters
@@ -871,7 +903,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/outer/number:
post:
description: Test serialization of outer number types
@@ -892,7 +925,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/property/enum-int:
post:
description: Test serialization of enum (int) properties with examples
@@ -914,7 +948,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/string:
post:
description: Test serialization of outer string types
@@ -935,7 +970,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/boolean:
post:
description: Test serialization of outer boolean types
@@ -956,7 +992,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/composite:
post:
description: Test serialization of object with outer number type
@@ -977,7 +1014,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/BigDecimalMap:
get:
description: "for Java apache and Java native, test toUrlQueryString for maps\
@@ -992,7 +1030,8 @@ paths:
description: successful operation
tags:
- fake
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/jsonFormData:
get:
description: ""
@@ -1009,7 +1048,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/additionalProperties-reference:
post:
description: ""
@@ -1028,7 +1068,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/stringMap-reference:
post:
description: ""
@@ -1047,7 +1088,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-additionalProperties:
post:
description: ""
@@ -1068,7 +1110,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-freeform-additionalProperties:
post:
description: ""
@@ -1087,7 +1130,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/nullable:
post:
description: ""
@@ -1106,7 +1150,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
@@ -1130,7 +1175,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/another-fake/dummy:
patch:
description: To test special tags and operation ID starting with number
@@ -1148,7 +1194,8 @@ paths:
tags:
- $another-fake?
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-file-schema:
put:
description: "For this test, the body for this request must reference a schema\
@@ -1166,7 +1213,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-binary:
put:
description: "For this test, the body has to be a binary file."
@@ -1186,7 +1234,8 @@ paths:
tags:
- fake
x-content-type: image/png
x-accepts: application/json
x-accepts:
- application/json
/fake/test-query-parameters:
put:
description: To test the collection format in query parameters
@@ -1260,7 +1309,8 @@ paths:
description: Success
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/{petId}/uploadImageWithRequiredFile:
post:
description: ""
@@ -1295,7 +1345,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/fake/health:
get:
responses:
@@ -1308,7 +1359,8 @@ paths:
summary: Health check endpoint
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/http-signature-test:
get:
operationId: fake-http-signature-test
@@ -1340,7 +1392,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
components:
requestBodies:
UserArray:

View File

@@ -47,7 +47,8 @@ paths:
- pet
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
put:
operationId: updatePet
requestBody:
@@ -82,7 +83,8 @@ paths:
- pet
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/pet/findByStatus:
get:
description: Multiple status values can be provided with comma separated strings
@@ -127,7 +129,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -172,7 +176,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
operationId: deletePet
@@ -202,7 +208,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -235,7 +242,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
operationId: updatePetWithForm
parameters:
@@ -263,7 +272,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
operationId: uploadFile
@@ -295,7 +305,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -315,7 +326,8 @@ paths:
summary: Returns pet inventories by status
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
operationId: placeOrder
@@ -344,7 +356,9 @@ paths:
- store
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{order_id}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -367,7 +381,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -401,7 +416,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -422,7 +439,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
operationId: createUsersWithArrayInput
@@ -444,7 +462,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
operationId: createUsersWithListInput
@@ -466,7 +485,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
operationId: loginUser
@@ -510,7 +530,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
operationId: logoutUser
@@ -521,7 +543,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -543,7 +566,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
operationId: getUserByName
parameters:
@@ -572,7 +596,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -602,7 +628,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/fake_classname_test:
patch:
description: To test class name in snake case
@@ -628,7 +655,8 @@ paths:
- fake_classname_tags 123#$%^
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake:
delete:
description: Fake endpoint to test group parameters (optional)
@@ -677,7 +705,8 @@ paths:
tags:
- fake
x-group-parameters: true
x-accepts: application/json
x-accepts:
- application/json
get:
description: To test enum parameters
operationId: testEnumParameters
@@ -762,7 +791,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
patch:
description: To test "client" model
operationId: testClientModel
@@ -785,7 +815,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
post:
description: |-
Fake endpoint for testing various parameters
@@ -816,7 +847,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/outer/number:
post:
description: Test serialization of outer number types
@@ -839,7 +871,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/string:
post:
description: Test serialization of outer string types
@@ -862,7 +895,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/boolean:
post:
description: Test serialization of outer boolean types
@@ -885,7 +919,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/composite:
post:
description: Test serialization of object with outer number type
@@ -908,7 +943,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/jsonFormData:
get:
operationId: testJsonFormData
@@ -926,7 +962,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-additionalProperties:
post:
operationId: testInlineAdditionalProperties
@@ -948,7 +985,8 @@ paths:
- fake
x-codegen-request-body-name: param
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
@@ -972,7 +1010,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/create_xml_item:
post:
description: this route creates an XmlItem
@@ -1008,7 +1047,8 @@ paths:
- fake
x-codegen-request-body-name: XmlItem
x-content-type: application/xml
x-accepts: application/json
x-accepts:
- application/json
/another-fake/dummy:
patch:
description: To test special tags and operation ID starting with number
@@ -1040,7 +1080,8 @@ paths:
- $another-fake?
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-file-schema:
put:
description: "For this test, the body for this request much reference a schema\
@@ -1060,7 +1101,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/test-query-parameters:
put:
description: To test the collection format in query parameters
@@ -1114,7 +1156,8 @@ paths:
description: Success
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/{petId}/uploadImageWithRequiredFile:
post:
operationId: uploadFileWithRequiredFile
@@ -1147,7 +1190,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
components:
schemas:
Order:

View File

@@ -50,7 +50,8 @@ paths:
schema:
$ref: '#/components/schemas/_foo_get_default_response'
description: response
x-accepts: application/json
x-accepts:
- application/json
/pet:
post:
description: ""
@@ -70,7 +71,8 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
put:
description: ""
operationId: updatePet
@@ -94,7 +96,8 @@ paths:
- pet
x-webclient-blocking: true
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
servers:
- url: http://petstore.swagger.io/v2
- url: http://path-server-test.petstore.local/v2
@@ -158,7 +161,9 @@ paths:
tags:
- pet
x-webclient-blocking: true
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -203,7 +208,9 @@ paths:
tags:
- pet
x-webclient-blocking: true
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
description: ""
@@ -237,7 +244,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -271,7 +279,9 @@ paths:
tags:
- pet
x-webclient-blocking: true
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
description: ""
operationId: updatePetWithForm
@@ -303,7 +313,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
description: ""
@@ -338,7 +349,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -359,7 +371,8 @@ paths:
tags:
- store
x-webclient-blocking: false
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
description: ""
@@ -387,7 +400,9 @@ paths:
tags:
- store
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{order_id}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -410,7 +425,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -444,7 +460,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -463,7 +481,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
description: ""
@@ -477,7 +496,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
description: ""
@@ -491,7 +511,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
description: ""
@@ -543,7 +564,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
description: ""
@@ -554,7 +577,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -576,7 +600,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
description: ""
operationId: getUserByName
@@ -606,7 +631,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -635,7 +662,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake_classname_test:
patch:
description: To test class name in snake case
@@ -655,7 +683,8 @@ paths:
tags:
- fake_classname_tags 123#$%^
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake:
delete:
description: Fake endpoint to test group parameters (optional)
@@ -720,7 +749,8 @@ paths:
tags:
- fake
x-group-parameters: true
x-accepts: application/json
x-accepts:
- application/json
get:
description: To test enum parameters
operationId: testEnumParameters
@@ -826,7 +856,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
patch:
description: To test "client" model
operationId: testClientModel
@@ -843,7 +874,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
post:
description: |
Fake endpoint for testing various parameters
@@ -871,7 +903,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/outer/number:
post:
description: Test serialization of outer number types
@@ -892,7 +925,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/property/enum-int:
post:
description: Test serialization of enum (int) properties with examples
@@ -914,7 +948,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/string:
post:
description: Test serialization of outer string types
@@ -935,7 +970,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/boolean:
post:
description: Test serialization of outer boolean types
@@ -956,7 +992,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/composite:
post:
description: Test serialization of object with outer number type
@@ -977,7 +1014,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/BigDecimalMap:
get:
description: "for Java apache and Java native, test toUrlQueryString for maps\
@@ -992,7 +1030,8 @@ paths:
description: successful operation
tags:
- fake
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/jsonFormData:
get:
description: ""
@@ -1009,7 +1048,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/additionalProperties-reference:
post:
description: ""
@@ -1028,7 +1068,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/stringMap-reference:
post:
description: ""
@@ -1047,7 +1088,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-additionalProperties:
post:
description: ""
@@ -1068,7 +1110,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-freeform-additionalProperties:
post:
description: ""
@@ -1087,7 +1130,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/nullable:
post:
description: ""
@@ -1106,7 +1150,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
@@ -1130,7 +1175,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/another-fake/dummy:
patch:
description: To test special tags and operation ID starting with number
@@ -1148,7 +1194,8 @@ paths:
tags:
- $another-fake?
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-file-schema:
put:
description: "For this test, the body for this request must reference a schema\
@@ -1166,7 +1213,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-binary:
put:
description: "For this test, the body has to be a binary file."
@@ -1186,7 +1234,8 @@ paths:
tags:
- fake
x-content-type: image/png
x-accepts: application/json
x-accepts:
- application/json
/fake/test-query-parameters:
put:
description: To test the collection format in query parameters
@@ -1260,7 +1309,8 @@ paths:
description: Success
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/{petId}/uploadImageWithRequiredFile:
post:
description: ""
@@ -1295,7 +1345,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/fake/health:
get:
responses:
@@ -1308,7 +1359,8 @@ paths:
summary: Health check endpoint
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/http-signature-test:
get:
operationId: fake-http-signature-test
@@ -1340,7 +1392,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
components:
requestBodies:
UserArray:

View File

@@ -47,7 +47,8 @@ paths:
- pet
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
put:
operationId: updatePet
requestBody:
@@ -82,7 +83,8 @@ paths:
- pet
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/pet/findByStatus:
get:
description: Multiple status values can be provided with comma separated strings
@@ -127,7 +129,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -172,7 +176,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
operationId: deletePet
@@ -202,7 +208,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -235,7 +242,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
operationId: updatePetWithForm
parameters:
@@ -263,7 +272,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
operationId: uploadFile
@@ -295,7 +305,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -315,7 +326,8 @@ paths:
summary: Returns pet inventories by status
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
operationId: placeOrder
@@ -344,7 +356,9 @@ paths:
- store
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{order_id}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -367,7 +381,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -401,7 +416,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -422,7 +439,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
operationId: createUsersWithArrayInput
@@ -444,7 +462,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
operationId: createUsersWithListInput
@@ -466,7 +485,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
operationId: loginUser
@@ -510,7 +530,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
operationId: logoutUser
@@ -521,7 +543,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -543,7 +566,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
operationId: getUserByName
parameters:
@@ -572,7 +596,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -602,7 +628,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/fake_classname_test:
patch:
description: To test class name in snake case
@@ -628,7 +655,8 @@ paths:
- fake_classname_tags 123#$%^
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake:
delete:
description: Fake endpoint to test group parameters (optional)
@@ -677,7 +705,8 @@ paths:
tags:
- fake
x-group-parameters: true
x-accepts: application/json
x-accepts:
- application/json
get:
description: To test enum parameters
operationId: testEnumParameters
@@ -762,7 +791,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
patch:
description: To test "client" model
operationId: testClientModel
@@ -785,7 +815,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
post:
description: |-
Fake endpoint for testing various parameters
@@ -816,7 +847,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/outer/number:
post:
description: Test serialization of outer number types
@@ -839,7 +871,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/string:
post:
description: Test serialization of outer string types
@@ -862,7 +895,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/boolean:
post:
description: Test serialization of outer boolean types
@@ -885,7 +919,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/composite:
post:
description: Test serialization of object with outer number type
@@ -908,7 +943,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/jsonFormData:
get:
operationId: testJsonFormData
@@ -926,7 +962,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-additionalProperties:
post:
operationId: testInlineAdditionalProperties
@@ -948,7 +985,8 @@ paths:
- fake
x-codegen-request-body-name: param
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
@@ -972,7 +1010,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/create_xml_item:
post:
description: this route creates an XmlItem
@@ -1008,7 +1047,8 @@ paths:
- fake
x-codegen-request-body-name: XmlItem
x-content-type: application/xml
x-accepts: application/json
x-accepts:
- application/json
/another-fake/dummy:
patch:
description: To test special tags and operation ID starting with number
@@ -1040,7 +1080,8 @@ paths:
- $another-fake?
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-file-schema:
put:
description: "For this test, the body for this request much reference a schema\
@@ -1060,7 +1101,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/test-query-parameters:
put:
description: To test the collection format in query parameters
@@ -1114,7 +1156,8 @@ paths:
description: Success
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/{petId}/uploadImageWithRequiredFile:
post:
operationId: uploadFileWithRequiredFile
@@ -1147,7 +1190,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
components:
schemas:
Order:

View File

@@ -47,7 +47,8 @@ paths:
- pet
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
put:
operationId: updatePet
requestBody:
@@ -82,7 +83,8 @@ paths:
- pet
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/pet/findByStatus:
get:
description: Multiple status values can be provided with comma separated strings
@@ -127,7 +129,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -172,7 +176,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
operationId: deletePet
@@ -202,7 +208,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -235,7 +242,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
operationId: updatePetWithForm
parameters:
@@ -263,7 +272,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
operationId: uploadFile
@@ -295,7 +305,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -315,7 +326,8 @@ paths:
summary: Returns pet inventories by status
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
operationId: placeOrder
@@ -344,7 +356,9 @@ paths:
- store
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{order_id}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -367,7 +381,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -401,7 +416,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -422,7 +439,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
operationId: createUsersWithArrayInput
@@ -444,7 +462,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
operationId: createUsersWithListInput
@@ -466,7 +485,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
operationId: loginUser
@@ -510,7 +530,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
operationId: logoutUser
@@ -521,7 +543,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -543,7 +566,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
operationId: getUserByName
parameters:
@@ -572,7 +596,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -602,7 +628,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/fake_classname_test:
patch:
description: To test class name in snake case
@@ -628,7 +655,8 @@ paths:
- fake_classname_tags 123#$%^
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake:
delete:
description: Fake endpoint to test group parameters (optional)
@@ -677,7 +705,8 @@ paths:
tags:
- fake
x-group-parameters: true
x-accepts: application/json
x-accepts:
- application/json
get:
description: To test enum parameters
operationId: testEnumParameters
@@ -762,7 +791,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
patch:
description: To test "client" model
operationId: testClientModel
@@ -785,7 +815,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
post:
description: |-
Fake endpoint for testing various parameters
@@ -816,7 +847,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/outer/number:
post:
description: Test serialization of outer number types
@@ -839,7 +871,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/string:
post:
description: Test serialization of outer string types
@@ -862,7 +895,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/boolean:
post:
description: Test serialization of outer boolean types
@@ -885,7 +919,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/composite:
post:
description: Test serialization of object with outer number type
@@ -908,7 +943,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/jsonFormData:
get:
operationId: testJsonFormData
@@ -926,7 +962,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-additionalProperties:
post:
operationId: testInlineAdditionalProperties
@@ -948,7 +985,8 @@ paths:
- fake
x-codegen-request-body-name: param
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
@@ -972,7 +1010,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/create_xml_item:
post:
description: this route creates an XmlItem
@@ -1008,7 +1047,8 @@ paths:
- fake
x-codegen-request-body-name: XmlItem
x-content-type: application/xml
x-accepts: application/json
x-accepts:
- application/json
/another-fake/dummy:
patch:
description: To test special tags and operation ID starting with number
@@ -1040,7 +1080,8 @@ paths:
- $another-fake?
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-file-schema:
put:
description: "For this test, the body for this request much reference a schema\
@@ -1060,7 +1101,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/test-query-parameters:
put:
description: To test the collection format in query parameters
@@ -1114,7 +1156,8 @@ paths:
description: Success
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/{petId}/uploadImageWithRequiredFile:
post:
operationId: uploadFileWithRequiredFile
@@ -1147,7 +1190,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
components:
schemas:
Order:

View File

@@ -47,7 +47,8 @@ paths:
- pet
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
put:
operationId: updatePet
requestBody:
@@ -82,7 +83,8 @@ paths:
- pet
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/pet/findByStatus:
get:
description: Multiple status values can be provided with comma separated strings
@@ -127,7 +129,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -172,7 +176,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
operationId: deletePet
@@ -202,7 +208,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -235,7 +242,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
operationId: updatePetWithForm
parameters:
@@ -263,7 +272,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
operationId: uploadFile
@@ -295,7 +305,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -315,7 +326,8 @@ paths:
summary: Returns pet inventories by status
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
operationId: placeOrder
@@ -344,7 +356,9 @@ paths:
- store
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{order_id}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -367,7 +381,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -401,7 +416,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -422,7 +439,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
operationId: createUsersWithArrayInput
@@ -444,7 +462,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
operationId: createUsersWithListInput
@@ -466,7 +485,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
operationId: loginUser
@@ -510,7 +530,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
operationId: logoutUser
@@ -521,7 +543,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -543,7 +566,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
operationId: getUserByName
parameters:
@@ -572,7 +596,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -602,7 +628,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/fake_classname_test:
patch:
description: To test class name in snake case
@@ -628,7 +655,8 @@ paths:
- fake_classname_tags 123#$%^
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake:
delete:
description: Fake endpoint to test group parameters (optional)
@@ -677,7 +705,8 @@ paths:
tags:
- fake
x-group-parameters: true
x-accepts: application/json
x-accepts:
- application/json
get:
description: To test enum parameters
operationId: testEnumParameters
@@ -762,7 +791,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
patch:
description: To test "client" model
operationId: testClientModel
@@ -785,7 +815,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
post:
description: |-
Fake endpoint for testing various parameters
@@ -816,7 +847,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/outer/number:
post:
description: Test serialization of outer number types
@@ -839,7 +871,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/string:
post:
description: Test serialization of outer string types
@@ -862,7 +895,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/boolean:
post:
description: Test serialization of outer boolean types
@@ -885,7 +919,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/composite:
post:
description: Test serialization of object with outer number type
@@ -908,7 +943,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/jsonFormData:
get:
operationId: testJsonFormData
@@ -926,7 +962,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-additionalProperties:
post:
operationId: testInlineAdditionalProperties
@@ -948,7 +985,8 @@ paths:
- fake
x-codegen-request-body-name: param
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
@@ -972,7 +1010,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/create_xml_item:
post:
description: this route creates an XmlItem
@@ -1008,7 +1047,8 @@ paths:
- fake
x-codegen-request-body-name: XmlItem
x-content-type: application/xml
x-accepts: application/json
x-accepts:
- application/json
/another-fake/dummy:
patch:
description: To test special tags and operation ID starting with number
@@ -1040,7 +1080,8 @@ paths:
- $another-fake?
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-file-schema:
put:
description: "For this test, the body for this request much reference a schema\
@@ -1060,7 +1101,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/test-query-parameters:
put:
description: To test the collection format in query parameters
@@ -1114,7 +1156,8 @@ paths:
description: Success
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/{petId}/uploadImageWithRequiredFile:
post:
operationId: uploadFileWithRequiredFile
@@ -1147,7 +1190,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
components:
schemas:
Order:

View File

@@ -50,7 +50,8 @@ paths:
schema:
$ref: '#/components/schemas/_foo_get_default_response'
description: response
x-accepts: application/json
x-accepts:
- application/json
/pet:
post:
description: ""
@@ -69,7 +70,8 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
put:
description: ""
operationId: updatePet
@@ -91,7 +93,8 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
servers:
- url: http://petstore.swagger.io/v2
- url: http://path-server-test.petstore.local/v2
@@ -140,7 +143,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -182,7 +187,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
description: ""
@@ -214,7 +221,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -247,7 +255,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
description: ""
operationId: updatePetWithForm
@@ -277,7 +287,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
description: ""
@@ -312,7 +323,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -332,7 +344,8 @@ paths:
summary: Returns pet inventories by status
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
description: ""
@@ -360,7 +373,9 @@ paths:
tags:
- store
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{order_id}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -383,7 +398,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -417,7 +433,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -436,7 +454,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
description: ""
@@ -450,7 +469,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
description: ""
@@ -464,7 +484,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
description: ""
@@ -516,7 +537,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
description: ""
@@ -527,7 +550,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -549,7 +573,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
description: ""
operationId: getUserByName
@@ -579,7 +604,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -608,7 +635,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake_classname_test:
patch:
description: To test class name in snake case
@@ -628,7 +656,8 @@ paths:
tags:
- fake_classname_tags 123#$%^
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake:
delete:
description: Fake endpoint to test group parameters (optional)
@@ -693,7 +722,8 @@ paths:
tags:
- fake
x-group-parameters: true
x-accepts: application/json
x-accepts:
- application/json
get:
description: To test enum parameters
operationId: testEnumParameters
@@ -790,7 +820,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
patch:
description: To test "client" model
operationId: testClientModel
@@ -807,7 +838,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
post:
description: |
Fake endpoint for testing various parameters
@@ -835,7 +867,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/outer/number:
post:
description: Test serialization of outer number types
@@ -856,7 +889,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/string:
post:
description: Test serialization of outer string types
@@ -877,7 +911,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/boolean:
post:
description: Test serialization of outer boolean types
@@ -898,7 +933,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/composite:
post:
description: Test serialization of object with outer number type
@@ -919,7 +955,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/jsonFormData:
get:
description: ""
@@ -936,7 +973,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/additionalProperties-reference:
post:
description: ""
@@ -955,7 +993,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/stringMap-reference:
post:
description: ""
@@ -974,7 +1013,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-additionalProperties:
post:
description: ""
@@ -995,7 +1035,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-freeform-additionalProperties:
post:
description: ""
@@ -1014,7 +1055,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
@@ -1038,7 +1080,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/another-fake/dummy:
patch:
description: To test special tags and operation ID starting with number
@@ -1056,7 +1099,8 @@ paths:
tags:
- $another-fake?
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-file-schema:
put:
description: "For this test, the body for this request much reference a schema\
@@ -1074,7 +1118,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/test-query-parameters:
put:
description: To test the collection format in query parameters
@@ -1130,7 +1175,8 @@ paths:
description: Success
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/{petId}/uploadImageWithRequiredFile:
post:
description: ""
@@ -1165,7 +1211,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/fake/health:
get:
responses:
@@ -1178,7 +1225,8 @@ paths:
summary: Health check endpoint
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/array-of-enums:
get:
operationId: getArrayOfEnums
@@ -1192,7 +1240,8 @@ paths:
summary: Array of Enums
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/request-array-string:
post:
operationId: postArrayOfString
@@ -1211,7 +1260,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
components:
requestBodies:
UserArray:

View File

@@ -50,7 +50,8 @@ paths:
schema:
$ref: '#/components/schemas/_foo_get_default_response'
description: response
x-accepts: application/json
x-accepts:
- application/json
/pet:
post:
description: ""
@@ -69,7 +70,8 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
put:
description: ""
operationId: updatePet
@@ -91,7 +93,8 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
servers:
- url: http://petstore.swagger.io/v2
- url: http://path-server-test.petstore.local/v2
@@ -140,7 +143,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -182,7 +187,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
description: ""
@@ -214,7 +221,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -247,7 +255,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
description: ""
operationId: updatePetWithForm
@@ -277,7 +287,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
description: ""
@@ -312,7 +323,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -332,7 +344,8 @@ paths:
summary: Returns pet inventories by status
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
description: ""
@@ -360,7 +373,9 @@ paths:
tags:
- store
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{order_id}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -383,7 +398,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -417,7 +433,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -436,7 +454,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
description: ""
@@ -450,7 +469,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
description: ""
@@ -464,7 +484,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
description: ""
@@ -516,7 +537,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
description: ""
@@ -527,7 +550,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -549,7 +573,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
description: ""
operationId: getUserByName
@@ -579,7 +604,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -608,7 +635,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake_classname_test:
patch:
description: To test class name in snake case
@@ -628,7 +656,8 @@ paths:
tags:
- fake_classname_tags 123#$%^
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake:
delete:
description: Fake endpoint to test group parameters (optional)
@@ -693,7 +722,8 @@ paths:
tags:
- fake
x-group-parameters: true
x-accepts: application/json
x-accepts:
- application/json
get:
description: To test enum parameters
operationId: testEnumParameters
@@ -790,7 +820,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
patch:
description: To test "client" model
operationId: testClientModel
@@ -807,7 +838,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
post:
description: |
Fake endpoint for testing various parameters
@@ -835,7 +867,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/outer/number:
post:
description: Test serialization of outer number types
@@ -856,7 +889,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/string:
post:
description: Test serialization of outer string types
@@ -877,7 +911,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/boolean:
post:
description: Test serialization of outer boolean types
@@ -898,7 +933,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/composite:
post:
description: Test serialization of object with outer number type
@@ -919,7 +955,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/BigDecimalMap:
get:
description: "for Java apache and Java native, test toUrlQueryString for maps\
@@ -934,7 +971,8 @@ paths:
description: successful operation
tags:
- fake
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/jsonFormData:
get:
description: ""
@@ -951,7 +989,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/additionalProperties-reference:
post:
description: ""
@@ -970,7 +1009,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/stringMap-reference:
post:
description: ""
@@ -989,7 +1029,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-additionalProperties:
post:
description: ""
@@ -1010,7 +1051,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-freeform-additionalProperties:
post:
description: ""
@@ -1029,7 +1071,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
@@ -1053,7 +1096,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/another-fake/dummy:
patch:
description: To test special tags and operation ID starting with number
@@ -1071,7 +1115,8 @@ paths:
tags:
- $another-fake?
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-file-schema:
put:
description: "For this test, the body for this request much reference a schema\
@@ -1089,7 +1134,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/test-query-parameters:
put:
description: To test the collection format in query parameters
@@ -1145,7 +1191,8 @@ paths:
description: Success
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/{petId}/uploadImageWithRequiredFile:
post:
description: ""
@@ -1180,7 +1227,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/fake/health:
get:
responses:
@@ -1193,7 +1241,8 @@ paths:
summary: Health check endpoint
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/array-of-enums:
get:
operationId: getArrayOfEnums
@@ -1207,7 +1256,8 @@ paths:
summary: Array of Enums
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/application_json_utf8:
get:
operationId: get_application_json_utf8
@@ -1221,7 +1271,8 @@ paths:
summary: application/json UTF8
tags:
- fake
x-accepts: application/json;charset=utf-8
x-accepts:
- application/json;charset=utf-8
components:
requestBodies:
UserArray:

View File

@@ -46,7 +46,9 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: ""
externalDocs:
@@ -79,7 +81,9 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByStatus:
get:
description: Multiple status values can be provided with comma separated strings
@@ -123,7 +127,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -163,7 +169,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
description: ""
@@ -195,7 +203,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -228,7 +237,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
description: ""
operationId: updatePetWithForm
@@ -258,7 +269,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
description: ""
@@ -293,7 +305,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -313,7 +326,8 @@ paths:
summary: Returns pet inventories by status
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
description: ""
@@ -341,7 +355,9 @@ paths:
tags:
- store
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{orderId}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -364,7 +380,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -398,7 +415,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -419,7 +438,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
description: ""
@@ -435,7 +455,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
description: ""
@@ -451,7 +472,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
description: ""
@@ -512,7 +534,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
description: ""
@@ -525,7 +549,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -549,7 +574,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
description: ""
operationId: getUserByName
@@ -579,7 +605,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -610,7 +638,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
components:
requestBodies:
UserArray:

View File

@@ -50,7 +50,8 @@ paths:
schema:
$ref: '#/components/schemas/_foo_get_default_response'
description: response
x-accepts: application/json
x-accepts:
- application/json
/pet:
post:
description: ""
@@ -69,7 +70,8 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
put:
description: ""
operationId: updatePet
@@ -91,7 +93,8 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
servers:
- url: http://petstore.swagger.io/v2
- url: http://path-server-test.petstore.local/v2
@@ -140,7 +143,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -182,7 +187,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
description: ""
@@ -214,7 +221,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -247,7 +255,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
description: ""
operationId: updatePetWithForm
@@ -277,7 +287,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
description: ""
@@ -312,7 +323,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -332,7 +344,8 @@ paths:
summary: Returns pet inventories by status
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
description: ""
@@ -360,7 +373,9 @@ paths:
tags:
- store
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{order_id}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -383,7 +398,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -417,7 +433,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -436,7 +454,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
description: ""
@@ -450,7 +469,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
description: ""
@@ -464,7 +484,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
description: ""
@@ -516,7 +537,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
description: ""
@@ -527,7 +550,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -549,7 +573,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
description: ""
operationId: getUserByName
@@ -579,7 +604,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -608,7 +635,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake_classname_test:
patch:
description: To test class name in snake case
@@ -628,7 +656,8 @@ paths:
tags:
- fake_classname_tags 123#$%^
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake:
delete:
description: Fake endpoint to test group parameters (optional)
@@ -693,7 +722,8 @@ paths:
tags:
- fake
x-group-parameters: true
x-accepts: application/json
x-accepts:
- application/json
get:
description: To test enum parameters
operationId: testEnumParameters
@@ -790,7 +820,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
patch:
description: To test "client" model
operationId: testClientModel
@@ -807,7 +838,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
post:
description: |
Fake endpoint for testing various parameters
@@ -835,7 +867,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/outer/number:
post:
description: Test serialization of outer number types
@@ -856,7 +889,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/string:
post:
description: Test serialization of outer string types
@@ -877,7 +911,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/boolean:
post:
description: Test serialization of outer boolean types
@@ -898,7 +933,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/composite:
post:
description: Test serialization of object with outer number type
@@ -919,7 +955,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/BigDecimalMap:
get:
description: "for Java apache and Java native, test toUrlQueryString for maps\
@@ -934,7 +971,8 @@ paths:
description: successful operation
tags:
- fake
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/jsonFormData:
get:
description: ""
@@ -951,7 +989,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/additionalProperties-reference:
post:
description: ""
@@ -970,7 +1009,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/stringMap-reference:
post:
description: ""
@@ -989,7 +1029,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-additionalProperties:
post:
description: ""
@@ -1010,7 +1051,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-freeform-additionalProperties:
post:
description: ""
@@ -1029,7 +1071,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
@@ -1053,7 +1096,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/another-fake/dummy:
patch:
description: To test special tags and operation ID starting with number
@@ -1071,7 +1115,8 @@ paths:
tags:
- $another-fake?
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-file-schema:
put:
description: "For this test, the body for this request much reference a schema\
@@ -1089,7 +1134,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/test-query-parameters:
put:
description: To test the collection format in query parameters
@@ -1145,7 +1191,8 @@ paths:
description: Success
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/{petId}/uploadImageWithRequiredFile:
post:
description: ""
@@ -1180,7 +1227,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/fake/health:
get:
responses:
@@ -1193,7 +1241,8 @@ paths:
summary: Health check endpoint
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/array-of-enums:
get:
operationId: getArrayOfEnums
@@ -1207,7 +1256,8 @@ paths:
summary: Array of Enums
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/application_json_utf8:
get:
operationId: get_application_json_utf8
@@ -1221,7 +1271,8 @@ paths:
summary: application/json UTF8
tags:
- fake
x-accepts: application/json;charset=utf-8
x-accepts:
- application/json;charset=utf-8
components:
requestBodies:
UserArray:

View File

@@ -46,7 +46,9 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: ""
externalDocs:
@@ -79,7 +81,9 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByStatus:
get:
description: Multiple status values can be provided with comma separated strings
@@ -123,7 +127,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -163,7 +169,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
description: ""
@@ -195,7 +203,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -228,7 +237,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
description: ""
operationId: updatePetWithForm
@@ -258,7 +269,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
description: ""
@@ -293,7 +305,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -312,7 +325,8 @@ paths:
summary: Returns pet inventories by status
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
description: ""
@@ -340,7 +354,9 @@ paths:
tags:
- store
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{orderId}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -363,7 +379,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -397,7 +414,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -418,7 +437,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
description: ""
@@ -434,7 +454,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
description: ""
@@ -450,7 +471,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
description: ""
@@ -511,7 +533,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
description: ""
@@ -524,7 +548,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -548,7 +573,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
description: ""
operationId: getUserByName
@@ -578,7 +604,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -609,7 +637,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/no_ref:
get:
operationId: response_no_ref
@@ -622,7 +651,8 @@ paths:
description: required to pass validation
tags:
- fake
x-accepts: text/plain
x-accepts:
- text/plain
/ref/no_ref:
get:
operationId: response_ref_to_no_ref
@@ -631,7 +661,8 @@ paths:
$ref: '#/components/responses/no_ref'
tags:
- fake
x-accepts: text/plain
x-accepts:
- text/plain
/ref/ref:
get:
operationId: response_ref_to_ref
@@ -640,7 +671,8 @@ paths:
$ref: '#/components/responses/ref'
tags:
- fake
x-accepts: text/plain
x-accepts:
- text/plain
/ref/ref_to_parameter:
get:
operationId: ref_to_ref_parameter
@@ -651,7 +683,8 @@ paths:
$ref: '#/components/responses/ref'
tags:
- fake
x-accepts: text/plain
x-accepts:
- text/plain
parameters:
- $ref: '#/components/parameters/ref_to_uuid'
/fake/api/changeowner:
@@ -673,7 +706,8 @@ paths:
summary: op1
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/api/changename:
post:
operationId: op2
@@ -693,7 +727,8 @@ paths:
summary: op2
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
components:
parameters:
ref_to_uuid:

View File

@@ -46,7 +46,9 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: ""
externalDocs:
@@ -79,7 +81,9 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByStatus:
get:
description: Multiple status values can be provided with comma separated strings
@@ -123,7 +127,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -163,7 +169,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
description: ""
@@ -195,7 +203,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -228,7 +237,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
description: ""
operationId: updatePetWithForm
@@ -258,7 +269,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
description: ""
@@ -293,7 +305,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -313,7 +326,8 @@ paths:
summary: Returns pet inventories by status
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
description: ""
@@ -341,7 +355,9 @@ paths:
tags:
- store
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{orderId}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -364,7 +380,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -398,7 +415,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -419,7 +438,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
description: ""
@@ -435,7 +455,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
description: ""
@@ -451,7 +472,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
description: ""
@@ -512,7 +534,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
description: ""
@@ -525,7 +549,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -549,7 +574,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
description: ""
operationId: getUserByName
@@ -579,7 +605,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -610,7 +638,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
components:
requestBodies:
UserArray:

View File

@@ -47,7 +47,8 @@ paths:
- pet
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
put:
operationId: updatePet
requestBody:
@@ -82,7 +83,8 @@ paths:
- pet
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/pet/findByStatus:
get:
description: Multiple status values can be provided with comma separated strings
@@ -127,7 +129,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -172,7 +176,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
operationId: deletePet
@@ -202,7 +208,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -235,7 +242,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
operationId: updatePetWithForm
parameters:
@@ -263,7 +272,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
operationId: uploadFile
@@ -295,7 +305,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -315,7 +326,8 @@ paths:
summary: Returns pet inventories by status
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
operationId: placeOrder
@@ -344,7 +356,9 @@ paths:
- store
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{order_id}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -367,7 +381,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -401,7 +416,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -422,7 +439,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
operationId: createUsersWithArrayInput
@@ -444,7 +462,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
operationId: createUsersWithListInput
@@ -466,7 +485,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
operationId: loginUser
@@ -510,7 +530,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
operationId: logoutUser
@@ -521,7 +543,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -543,7 +566,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
operationId: getUserByName
parameters:
@@ -572,7 +596,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -602,7 +628,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/fake_classname_test:
patch:
description: To test class name in snake case
@@ -628,7 +655,8 @@ paths:
- fake_classname_tags 123#$%^
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake:
delete:
description: Fake endpoint to test group parameters (optional)
@@ -677,7 +705,8 @@ paths:
tags:
- fake
x-group-parameters: true
x-accepts: application/json
x-accepts:
- application/json
get:
description: To test enum parameters
operationId: testEnumParameters
@@ -762,7 +791,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
patch:
description: To test "client" model
operationId: testClientModel
@@ -785,7 +815,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
post:
description: |-
Fake endpoint for testing various parameters
@@ -816,7 +847,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/outer/number:
post:
description: Test serialization of outer number types
@@ -839,7 +871,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/string:
post:
description: Test serialization of outer string types
@@ -862,7 +895,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/boolean:
post:
description: Test serialization of outer boolean types
@@ -885,7 +919,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/composite:
post:
description: Test serialization of object with outer number type
@@ -908,7 +943,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/jsonFormData:
get:
operationId: testJsonFormData
@@ -926,7 +962,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-additionalProperties:
post:
operationId: testInlineAdditionalProperties
@@ -948,7 +985,8 @@ paths:
- fake
x-codegen-request-body-name: param
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
@@ -972,7 +1010,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/create_xml_item:
post:
description: this route creates an XmlItem
@@ -1008,7 +1047,8 @@ paths:
- fake
x-codegen-request-body-name: XmlItem
x-content-type: application/xml
x-accepts: application/json
x-accepts:
- application/json
/another-fake/dummy:
patch:
description: To test special tags and operation ID starting with number
@@ -1040,7 +1080,8 @@ paths:
- $another-fake?
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-file-schema:
put:
description: "For this test, the body for this request much reference a schema\
@@ -1060,7 +1101,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/test-query-parameters:
put:
description: To test the collection format in query parameters
@@ -1114,7 +1156,8 @@ paths:
description: Success
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/{petId}/uploadImageWithRequiredFile:
post:
operationId: uploadFileWithRequiredFile
@@ -1147,7 +1190,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
components:
schemas:
Order:

View File

@@ -46,7 +46,9 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: ""
operationId: updatePet
@@ -76,7 +78,9 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByStatus:
get:
description: Multiple status values can be provided with comma separated strings
@@ -120,7 +124,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -160,7 +166,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
description: ""
@@ -192,7 +200,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -225,7 +234,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
description: ""
operationId: updatePetWithForm
@@ -256,7 +267,8 @@ paths:
- pet
x-group-parameters: false
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
description: ""
@@ -291,7 +303,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
components:
requestBodies:
UserArray:

View File

@@ -37,7 +37,8 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
put:
description: ""
operationId: updatePet
@@ -58,7 +59,8 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/pet/findByStatus:
get:
description: Multiple status values can be provided with comma separated strings
@@ -101,7 +103,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -141,7 +145,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
description: ""
@@ -173,7 +179,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -206,7 +213,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
description: ""
operationId: updatePetWithForm
@@ -236,7 +245,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
description: ""
@@ -271,7 +281,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -291,7 +302,8 @@ paths:
summary: Returns pet inventories by status
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
description: ""
@@ -319,7 +331,9 @@ paths:
tags:
- store
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{orderId}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -342,7 +356,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -376,7 +391,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -397,7 +414,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
description: ""
@@ -413,7 +431,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
description: ""
@@ -429,7 +448,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
description: ""
@@ -490,7 +510,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
description: ""
@@ -503,7 +525,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -527,7 +550,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
description: ""
operationId: getUserByName
@@ -557,7 +581,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -588,7 +614,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
components:
requestBodies:
UserArray:

View File

@@ -47,7 +47,8 @@ paths:
- pet
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
put:
operationId: updatePet
requestBody:
@@ -82,7 +83,8 @@ paths:
- pet
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/pet/findByStatus:
get:
description: Multiple status values can be provided with comma separated strings
@@ -127,7 +129,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -172,7 +176,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
operationId: deletePet
@@ -202,7 +208,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -235,7 +242,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
operationId: updatePetWithForm
parameters:
@@ -263,7 +272,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
operationId: uploadFile
@@ -295,7 +305,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -315,7 +326,8 @@ paths:
summary: Returns pet inventories by status
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
operationId: placeOrder
@@ -344,7 +356,9 @@ paths:
- store
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{order_id}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -367,7 +381,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -401,7 +416,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -422,7 +439,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
operationId: createUsersWithArrayInput
@@ -444,7 +462,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
operationId: createUsersWithListInput
@@ -466,7 +485,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
operationId: loginUser
@@ -510,7 +530,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
operationId: logoutUser
@@ -521,7 +543,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -543,7 +566,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
operationId: getUserByName
parameters:
@@ -572,7 +596,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -602,7 +628,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/fake_classname_test:
patch:
description: To test class name in snake case
@@ -628,7 +655,8 @@ paths:
- fake_classname_tags 123#$%^
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake:
delete:
description: Fake endpoint to test group parameters (optional)
@@ -677,7 +705,8 @@ paths:
tags:
- fake
x-group-parameters: true
x-accepts: application/json
x-accepts:
- application/json
get:
description: To test enum parameters
operationId: testEnumParameters
@@ -762,7 +791,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
patch:
description: To test "client" model
operationId: testClientModel
@@ -785,7 +815,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
post:
description: |-
Fake endpoint for testing various parameters
@@ -816,7 +847,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/outer/number:
post:
description: Test serialization of outer number types
@@ -839,7 +871,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/string:
post:
description: Test serialization of outer string types
@@ -862,7 +895,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/boolean:
post:
description: Test serialization of outer boolean types
@@ -885,7 +919,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/composite:
post:
description: Test serialization of object with outer number type
@@ -908,7 +943,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/jsonFormData:
get:
operationId: testJsonFormData
@@ -926,7 +962,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-additionalProperties:
post:
operationId: testInlineAdditionalProperties
@@ -948,7 +985,8 @@ paths:
- fake
x-codegen-request-body-name: param
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
@@ -972,7 +1010,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/create_xml_item:
post:
description: this route creates an XmlItem
@@ -1008,7 +1047,8 @@ paths:
- fake
x-codegen-request-body-name: XmlItem
x-content-type: application/xml
x-accepts: application/json
x-accepts:
- application/json
/another-fake/dummy:
patch:
description: To test special tags and operation ID starting with number
@@ -1040,7 +1080,8 @@ paths:
- $another-fake?
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-file-schema:
put:
description: "For this test, the body for this request much reference a schema\
@@ -1060,7 +1101,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/test-query-parameters:
put:
description: To test the collection format in query parameters
@@ -1114,7 +1156,8 @@ paths:
description: Success
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/{petId}/uploadImageWithRequiredFile:
post:
operationId: uploadFileWithRequiredFile
@@ -1147,7 +1190,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
components:
schemas:
Order:

View File

@@ -46,7 +46,9 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: ""
externalDocs:
@@ -79,7 +81,9 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByStatus:
get:
description: Multiple status values can be provided with comma separated strings
@@ -123,7 +127,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -163,7 +169,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
description: ""
@@ -195,7 +203,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -228,7 +237,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
description: ""
operationId: updatePetWithForm
@@ -258,7 +269,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
description: ""
@@ -293,7 +305,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -313,7 +326,8 @@ paths:
summary: Returns pet inventories by status
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
description: ""
@@ -341,7 +355,9 @@ paths:
tags:
- store
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{orderId}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -364,7 +380,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -398,7 +415,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -419,7 +438,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
description: ""
@@ -435,7 +455,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
description: ""
@@ -451,7 +472,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
description: ""
@@ -512,7 +534,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
description: ""
@@ -525,7 +549,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -549,7 +574,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
description: ""
operationId: getUserByName
@@ -579,7 +605,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -610,7 +638,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
components:
requestBodies:
UserArray:

View File

@@ -46,7 +46,9 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: ""
externalDocs:
@@ -79,7 +81,9 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByStatus:
get:
description: Multiple status values can be provided with comma separated strings
@@ -123,7 +127,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -163,7 +169,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
description: ""
@@ -195,7 +203,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -228,7 +237,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
description: ""
operationId: updatePetWithForm
@@ -258,7 +269,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
description: ""
@@ -293,7 +305,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -313,7 +326,8 @@ paths:
summary: Returns pet inventories by status
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
description: ""
@@ -341,7 +355,9 @@ paths:
tags:
- store
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{orderId}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -364,7 +380,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -398,7 +415,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -419,7 +438,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
description: ""
@@ -435,7 +455,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
description: ""
@@ -451,7 +472,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
description: ""
@@ -512,7 +534,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
description: ""
@@ -525,7 +549,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -549,7 +574,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
description: ""
operationId: getUserByName
@@ -579,7 +605,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -610,7 +638,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
components:
requestBodies:
UserArray:

View File

@@ -50,7 +50,8 @@ paths:
schema:
$ref: '#/components/schemas/_foo_get_default_response'
description: response
x-accepts: application/json
x-accepts:
- application/json
/pet:
post:
description: ""
@@ -68,7 +69,8 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
put:
description: ""
operationId: updatePet
@@ -89,7 +91,8 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
servers:
- url: http://petstore.swagger.io/v2
- url: http://path-server-test.petstore.local/v2
@@ -137,7 +140,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -178,7 +183,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
description: ""
@@ -210,7 +217,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -244,7 +252,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
description: ""
operationId: updatePetWithForm
@@ -274,7 +284,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
description: ""
@@ -309,7 +320,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -329,7 +341,8 @@ paths:
summary: Returns pet inventories by status
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
description: ""
@@ -357,7 +370,9 @@ paths:
tags:
- store
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{order_id}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -380,7 +395,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -414,7 +430,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -433,7 +451,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
description: ""
@@ -447,7 +466,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
description: ""
@@ -461,7 +481,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
description: ""
@@ -513,7 +534,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
description: ""
@@ -524,7 +547,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -546,7 +570,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
description: ""
operationId: getUserByName
@@ -576,7 +601,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -605,7 +632,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake_classname_test:
patch:
description: To test class name in snake case
@@ -625,7 +653,8 @@ paths:
tags:
- fake_classname_tags 123#$%^
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake:
delete:
description: Fake endpoint to test group parameters (optional)
@@ -690,7 +719,8 @@ paths:
tags:
- fake
x-group-parameters: true
x-accepts: application/json
x-accepts:
- application/json
get:
description: To test enum parameters
operationId: testEnumParameters
@@ -787,7 +817,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
patch:
description: To test "client" model
operationId: testClientModel
@@ -804,7 +835,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
post:
description: |
Fake endpoint for testing various parameters
@@ -832,7 +864,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/outer/number:
post:
description: Test serialization of outer number types
@@ -853,7 +886,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/string:
post:
description: Test serialization of outer string types
@@ -874,7 +908,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/boolean:
post:
description: Test serialization of outer boolean types
@@ -895,7 +930,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/composite:
post:
description: Test serialization of object with outer number type
@@ -916,7 +952,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/jsonFormData:
get:
description: ""
@@ -933,7 +970,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/additionalProperties-reference:
post:
description: ""
@@ -952,7 +990,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/stringMap-reference:
post:
description: ""
@@ -971,7 +1010,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-additionalProperties:
post:
description: ""
@@ -992,7 +1032,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-freeform-additionalProperties:
post:
description: ""
@@ -1011,7 +1052,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
@@ -1035,7 +1077,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/another-fake/dummy:
patch:
description: To test special tags and operation ID starting with number
@@ -1053,7 +1096,8 @@ paths:
tags:
- $another-fake?
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-file-schema:
put:
description: "For this test, the body for this request much reference a schema\
@@ -1071,7 +1115,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/test-query-parameters:
put:
description: To test the collection format in query parameters
@@ -1127,7 +1172,8 @@ paths:
description: Success
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/{petId}/uploadImageWithRequiredFile:
post:
description: ""
@@ -1162,7 +1208,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/fake/health:
get:
responses:
@@ -1175,7 +1222,8 @@ paths:
summary: Health check endpoint
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/array-of-enums:
get:
operationId: getArrayOfEnums
@@ -1189,7 +1237,8 @@ paths:
summary: Array of Enums
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/parameter-name-mapping:
get:
operationId: getParameterNameMapping
@@ -1225,7 +1274,8 @@ paths:
summary: parameter name mapping test
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/parameter-string-number:
get:
operationId: getParameterStringNumber
@@ -1245,7 +1295,8 @@ paths:
summary: parameter string number
tags:
- another_fake
x-accepts: application/json
x-accepts:
- application/json
/fake/parameter-array-number:
get:
operationId: getParameterArrayNumber
@@ -1268,7 +1319,8 @@ paths:
summary: parameter array number default value
tags:
- another_fake
x-accepts: application/json
x-accepts:
- application/json
/fake/null-request-body:
get:
operationId: null-request-body
@@ -1318,7 +1370,8 @@ paths:
summary: null request body
tags:
- another_fake
x-accepts: application/json
x-accepts:
- application/json
/values:
get:
description: ""
@@ -1335,7 +1388,8 @@ paths:
summary: Get some primitive variable values
tags:
- values
x-accepts: application/json
x-accepts:
- application/json
/internal/only:
get:
description: ""
@@ -1352,7 +1406,8 @@ paths:
tags:
- values
x-internal: true
x-accepts: application/json
x-accepts:
- application/json
components:
requestBodies:
UserArray:

View File

@@ -47,7 +47,8 @@ paths:
- pet
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
put:
operationId: updatePet
requestBody:
@@ -82,7 +83,8 @@ paths:
- pet
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/pet/findByStatus:
get:
description: Multiple status values can be provided with comma separated strings
@@ -127,7 +129,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -172,7 +176,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
operationId: deletePet
@@ -202,7 +208,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -235,7 +242,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
operationId: updatePetWithForm
parameters:
@@ -263,7 +272,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
operationId: uploadFile
@@ -295,7 +305,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -315,7 +326,8 @@ paths:
summary: Returns pet inventories by status
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
operationId: placeOrder
@@ -344,7 +356,9 @@ paths:
- store
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{order_id}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -367,7 +381,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -401,7 +416,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -422,7 +439,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
operationId: createUsersWithArrayInput
@@ -444,7 +462,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
operationId: createUsersWithListInput
@@ -466,7 +485,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
operationId: loginUser
@@ -510,7 +530,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
operationId: logoutUser
@@ -521,7 +543,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -543,7 +566,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
operationId: getUserByName
parameters:
@@ -572,7 +596,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -602,7 +628,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/fake_classname_test:
patch:
description: To test class name in snake case
@@ -628,7 +655,8 @@ paths:
- fake_classname_tags 123#$%^
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake:
delete:
description: Fake endpoint to test group parameters (optional)
@@ -677,7 +705,8 @@ paths:
tags:
- fake
x-group-parameters: true
x-accepts: application/json
x-accepts:
- application/json
get:
description: To test enum parameters
operationId: testEnumParameters
@@ -762,7 +791,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
patch:
description: To test "client" model
operationId: testClientModel
@@ -785,7 +815,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
post:
description: |-
Fake endpoint for testing various parameters
@@ -816,7 +847,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/outer/number:
post:
description: Test serialization of outer number types
@@ -839,7 +871,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/string:
post:
description: Test serialization of outer string types
@@ -862,7 +895,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/boolean:
post:
description: Test serialization of outer boolean types
@@ -885,7 +919,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/composite:
post:
description: Test serialization of object with outer number type
@@ -908,7 +943,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/jsonFormData:
get:
operationId: testJsonFormData
@@ -926,7 +962,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-additionalProperties:
post:
operationId: testInlineAdditionalProperties
@@ -948,7 +985,8 @@ paths:
- fake
x-codegen-request-body-name: param
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
@@ -972,7 +1010,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/create_xml_item:
post:
description: this route creates an XmlItem
@@ -1008,7 +1047,8 @@ paths:
- fake
x-codegen-request-body-name: XmlItem
x-content-type: application/xml
x-accepts: application/json
x-accepts:
- application/json
/another-fake/dummy:
patch:
description: To test special tags and operation ID starting with number
@@ -1040,7 +1080,8 @@ paths:
- $another-fake?
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-file-schema:
put:
description: "For this test, the body for this request much reference a schema\
@@ -1060,7 +1101,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/test-query-parameters:
put:
description: To test the collection format in query parameters
@@ -1114,7 +1156,8 @@ paths:
description: Success
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/{petId}/uploadImageWithRequiredFile:
post:
operationId: uploadFileWithRequiredFile
@@ -1147,7 +1190,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
components:
schemas:
Order:

View File

@@ -47,7 +47,8 @@ paths:
- pet
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
put:
operationId: updatePet
requestBody:
@@ -82,7 +83,8 @@ paths:
- pet
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/pet/findByStatus:
get:
description: Multiple status values can be provided with comma separated strings
@@ -127,7 +129,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -172,7 +176,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
operationId: deletePet
@@ -202,7 +208,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -235,7 +242,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
operationId: updatePetWithForm
parameters:
@@ -263,7 +272,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
operationId: uploadFile
@@ -295,7 +305,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -315,7 +326,8 @@ paths:
summary: Returns pet inventories by status
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
operationId: placeOrder
@@ -344,7 +356,9 @@ paths:
- store
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{order_id}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -367,7 +381,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -401,7 +416,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -422,7 +439,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
operationId: createUsersWithArrayInput
@@ -444,7 +462,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
operationId: createUsersWithListInput
@@ -466,7 +485,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
operationId: loginUser
@@ -510,7 +530,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
operationId: logoutUser
@@ -521,7 +543,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -543,7 +566,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
operationId: getUserByName
parameters:
@@ -572,7 +596,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -602,7 +628,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/fake_classname_test:
patch:
description: To test class name in snake case
@@ -628,7 +655,8 @@ paths:
- fake_classname_tags 123#$%^
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake:
delete:
description: Fake endpoint to test group parameters (optional)
@@ -677,7 +705,8 @@ paths:
tags:
- fake
x-group-parameters: true
x-accepts: application/json
x-accepts:
- application/json
get:
description: To test enum parameters
operationId: testEnumParameters
@@ -762,7 +791,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
patch:
description: To test "client" model
operationId: testClientModel
@@ -785,7 +815,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
post:
description: |-
Fake endpoint for testing various parameters
@@ -816,7 +847,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/outer/number:
post:
description: Test serialization of outer number types
@@ -839,7 +871,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/string:
post:
description: Test serialization of outer string types
@@ -862,7 +895,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/boolean:
post:
description: Test serialization of outer boolean types
@@ -885,7 +919,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/composite:
post:
description: Test serialization of object with outer number type
@@ -908,7 +943,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/jsonFormData:
get:
operationId: testJsonFormData
@@ -926,7 +962,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-additionalProperties:
post:
operationId: testInlineAdditionalProperties
@@ -948,7 +985,8 @@ paths:
- fake
x-codegen-request-body-name: param
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
@@ -972,7 +1010,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/create_xml_item:
post:
description: this route creates an XmlItem
@@ -1008,7 +1047,8 @@ paths:
- fake
x-codegen-request-body-name: XmlItem
x-content-type: application/xml
x-accepts: application/json
x-accepts:
- application/json
/another-fake/dummy:
patch:
description: To test special tags and operation ID starting with number
@@ -1040,7 +1080,8 @@ paths:
- $another-fake?
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-file-schema:
put:
description: "For this test, the body for this request much reference a schema\
@@ -1060,7 +1101,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/test-query-parameters:
put:
description: To test the collection format in query parameters
@@ -1114,7 +1156,8 @@ paths:
description: Success
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/{petId}/uploadImageWithRequiredFile:
post:
operationId: uploadFileWithRequiredFile
@@ -1147,7 +1190,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
components:
schemas:
Order:

View File

@@ -50,7 +50,8 @@ paths:
schema:
$ref: '#/components/schemas/_foo_get_default_response'
description: response
x-accepts: application/json
x-accepts:
- application/json
/pet:
post:
description: ""
@@ -70,7 +71,8 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
put:
description: ""
operationId: updatePet
@@ -94,7 +96,8 @@ paths:
- pet
x-webclient-blocking: true
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
servers:
- url: http://petstore.swagger.io/v2
- url: http://path-server-test.petstore.local/v2
@@ -158,7 +161,9 @@ paths:
tags:
- pet
x-webclient-blocking: true
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -203,7 +208,9 @@ paths:
tags:
- pet
x-webclient-blocking: true
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
description: ""
@@ -237,7 +244,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -271,7 +279,9 @@ paths:
tags:
- pet
x-webclient-blocking: true
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
description: ""
operationId: updatePetWithForm
@@ -303,7 +313,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
description: ""
@@ -338,7 +349,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -359,7 +371,8 @@ paths:
tags:
- store
x-webclient-blocking: false
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
description: ""
@@ -387,7 +400,9 @@ paths:
tags:
- store
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{order_id}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -410,7 +425,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -444,7 +460,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -463,7 +481,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
description: ""
@@ -477,7 +496,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
description: ""
@@ -491,7 +511,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
description: ""
@@ -543,7 +564,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
description: ""
@@ -554,7 +577,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -576,7 +600,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
description: ""
operationId: getUserByName
@@ -606,7 +631,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -635,7 +662,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake_classname_test:
patch:
description: To test class name in snake case
@@ -655,7 +683,8 @@ paths:
tags:
- fake_classname_tags 123#$%^
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake:
delete:
description: Fake endpoint to test group parameters (optional)
@@ -720,7 +749,8 @@ paths:
tags:
- fake
x-group-parameters: true
x-accepts: application/json
x-accepts:
- application/json
get:
description: To test enum parameters
operationId: testEnumParameters
@@ -826,7 +856,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
patch:
description: To test "client" model
operationId: testClientModel
@@ -843,7 +874,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
post:
description: |
Fake endpoint for testing various parameters
@@ -871,7 +903,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/outer/number:
post:
description: Test serialization of outer number types
@@ -892,7 +925,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/property/enum-int:
post:
description: Test serialization of enum (int) properties with examples
@@ -914,7 +948,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/string:
post:
description: Test serialization of outer string types
@@ -935,7 +970,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/boolean:
post:
description: Test serialization of outer boolean types
@@ -956,7 +992,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/composite:
post:
description: Test serialization of object with outer number type
@@ -977,7 +1014,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/BigDecimalMap:
get:
description: "for Java apache and Java native, test toUrlQueryString for maps\
@@ -992,7 +1030,8 @@ paths:
description: successful operation
tags:
- fake
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/jsonFormData:
get:
description: ""
@@ -1009,7 +1048,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/additionalProperties-reference:
post:
description: ""
@@ -1028,7 +1068,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/stringMap-reference:
post:
description: ""
@@ -1047,7 +1088,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-additionalProperties:
post:
description: ""
@@ -1068,7 +1110,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-freeform-additionalProperties:
post:
description: ""
@@ -1087,7 +1130,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/nullable:
post:
description: ""
@@ -1106,7 +1150,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
@@ -1130,7 +1175,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/another-fake/dummy:
patch:
description: To test special tags and operation ID starting with number
@@ -1148,7 +1194,8 @@ paths:
tags:
- $another-fake?
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-file-schema:
put:
description: "For this test, the body for this request must reference a schema\
@@ -1166,7 +1213,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-binary:
put:
description: "For this test, the body has to be a binary file."
@@ -1186,7 +1234,8 @@ paths:
tags:
- fake
x-content-type: image/png
x-accepts: application/json
x-accepts:
- application/json
/fake/test-query-parameters:
put:
description: To test the collection format in query parameters
@@ -1260,7 +1309,8 @@ paths:
description: Success
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/{petId}/uploadImageWithRequiredFile:
post:
description: ""
@@ -1295,7 +1345,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/fake/health:
get:
responses:
@@ -1308,7 +1359,8 @@ paths:
summary: Health check endpoint
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/http-signature-test:
get:
operationId: fake-http-signature-test
@@ -1340,7 +1392,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
components:
requestBodies:
UserArray:

View File

@@ -46,7 +46,9 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: ""
externalDocs:
@@ -79,7 +81,9 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByStatus:
get:
description: Multiple status values can be provided with comma separated strings
@@ -123,7 +127,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -163,7 +169,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
description: ""
@@ -195,7 +203,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -228,7 +237,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
description: ""
operationId: updatePetWithForm
@@ -258,7 +269,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
description: ""
@@ -293,7 +305,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -313,7 +326,8 @@ paths:
summary: Returns pet inventories by status
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
description: ""
@@ -341,7 +355,9 @@ paths:
tags:
- store
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{orderId}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -364,7 +380,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -398,7 +415,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -419,7 +438,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
description: ""
@@ -435,7 +455,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
description: ""
@@ -451,7 +472,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
description: ""
@@ -512,7 +534,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
description: ""
@@ -525,7 +549,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -549,7 +574,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
description: ""
operationId: getUserByName
@@ -579,7 +605,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -610,7 +638,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
components:
requestBodies:
UserArray:

View File

@@ -46,7 +46,9 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: ""
externalDocs:
@@ -79,7 +81,9 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByStatus:
get:
description: Multiple status values can be provided with comma separated strings
@@ -123,7 +127,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -163,7 +169,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
description: ""
@@ -195,7 +203,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -228,7 +237,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
description: ""
operationId: updatePetWithForm
@@ -258,7 +269,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
description: ""
@@ -293,7 +305,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -313,7 +326,8 @@ paths:
summary: Returns pet inventories by status
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
description: ""
@@ -341,7 +355,9 @@ paths:
tags:
- store
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{orderId}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -364,7 +380,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -398,7 +415,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -419,7 +438,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
description: ""
@@ -435,7 +455,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
description: ""
@@ -451,7 +472,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
description: ""
@@ -512,7 +534,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
description: ""
@@ -525,7 +549,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -549,7 +574,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
description: ""
operationId: getUserByName
@@ -579,7 +605,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -610,7 +638,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
components:
requestBodies:
UserArray:

View File

@@ -46,7 +46,9 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: ""
externalDocs:
@@ -79,7 +81,9 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByStatus:
get:
description: Multiple status values can be provided with comma separated strings
@@ -123,7 +127,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -163,7 +169,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
description: ""
@@ -195,7 +203,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -228,7 +237,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
description: ""
operationId: updatePetWithForm
@@ -258,7 +269,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
description: ""
@@ -293,7 +305,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -313,7 +326,8 @@ paths:
summary: Returns pet inventories by status
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
description: ""
@@ -341,7 +355,9 @@ paths:
tags:
- store
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{orderId}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -364,7 +380,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -398,7 +415,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -419,7 +438,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
description: ""
@@ -435,7 +455,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
description: ""
@@ -451,7 +472,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
description: ""
@@ -512,7 +534,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
description: ""
@@ -525,7 +549,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -549,7 +574,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
description: ""
operationId: getUserByName
@@ -579,7 +605,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -610,7 +638,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
components:
requestBodies:
UserArray:

View File

@@ -50,7 +50,8 @@ paths:
schema:
$ref: '#/components/schemas/_foo_get_default_response'
description: response
x-accepts: application/json
x-accepts:
- application/json
/pet:
post:
description: ""
@@ -70,7 +71,8 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
put:
description: ""
operationId: updatePet
@@ -94,7 +96,8 @@ paths:
- pet
x-webclient-blocking: true
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
servers:
- url: http://petstore.swagger.io/v2
- url: http://path-server-test.petstore.local/v2
@@ -158,7 +161,9 @@ paths:
tags:
- pet
x-webclient-blocking: true
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -203,7 +208,9 @@ paths:
tags:
- pet
x-webclient-blocking: true
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
description: ""
@@ -237,7 +244,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -271,7 +279,9 @@ paths:
tags:
- pet
x-webclient-blocking: true
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
description: ""
operationId: updatePetWithForm
@@ -303,7 +313,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
description: ""
@@ -338,7 +349,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -359,7 +371,8 @@ paths:
tags:
- store
x-webclient-blocking: false
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
description: ""
@@ -387,7 +400,9 @@ paths:
tags:
- store
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{order_id}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -410,7 +425,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -444,7 +460,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -463,7 +481,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
description: ""
@@ -477,7 +496,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
description: ""
@@ -491,7 +511,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
description: ""
@@ -543,7 +564,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
description: ""
@@ -554,7 +577,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -576,7 +600,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
description: ""
operationId: getUserByName
@@ -606,7 +631,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -635,7 +662,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake_classname_test:
patch:
description: To test class name in snake case
@@ -655,7 +683,8 @@ paths:
tags:
- fake_classname_tags 123#$%^
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake:
delete:
description: Fake endpoint to test group parameters (optional)
@@ -720,7 +749,8 @@ paths:
tags:
- fake
x-group-parameters: true
x-accepts: application/json
x-accepts:
- application/json
get:
description: To test enum parameters
operationId: testEnumParameters
@@ -826,7 +856,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
patch:
description: To test "client" model
operationId: testClientModel
@@ -843,7 +874,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
post:
description: |
Fake endpoint for testing various parameters
@@ -871,7 +903,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/outer/number:
post:
description: Test serialization of outer number types
@@ -892,7 +925,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/property/enum-int:
post:
description: Test serialization of enum (int) properties with examples
@@ -914,7 +948,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/string:
post:
description: Test serialization of outer string types
@@ -935,7 +970,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/boolean:
post:
description: Test serialization of outer boolean types
@@ -956,7 +992,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/composite:
post:
description: Test serialization of object with outer number type
@@ -977,7 +1014,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/BigDecimalMap:
get:
description: "for Java apache and Java native, test toUrlQueryString for maps\
@@ -992,7 +1030,8 @@ paths:
description: successful operation
tags:
- fake
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/jsonFormData:
get:
description: ""
@@ -1009,7 +1048,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/additionalProperties-reference:
post:
description: ""
@@ -1028,7 +1068,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/stringMap-reference:
post:
description: ""
@@ -1047,7 +1088,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-additionalProperties:
post:
description: ""
@@ -1068,7 +1110,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-freeform-additionalProperties:
post:
description: ""
@@ -1087,7 +1130,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/nullable:
post:
description: ""
@@ -1106,7 +1150,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
@@ -1130,7 +1175,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/another-fake/dummy:
patch:
description: To test special tags and operation ID starting with number
@@ -1148,7 +1194,8 @@ paths:
tags:
- $another-fake?
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-file-schema:
put:
description: "For this test, the body for this request must reference a schema\
@@ -1166,7 +1213,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-binary:
put:
description: "For this test, the body has to be a binary file."
@@ -1186,7 +1234,8 @@ paths:
tags:
- fake
x-content-type: image/png
x-accepts: application/json
x-accepts:
- application/json
/fake/test-query-parameters:
put:
description: To test the collection format in query parameters
@@ -1260,7 +1309,8 @@ paths:
description: Success
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/{petId}/uploadImageWithRequiredFile:
post:
description: ""
@@ -1295,7 +1345,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/fake/health:
get:
responses:
@@ -1308,7 +1359,8 @@ paths:
summary: Health check endpoint
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/http-signature-test:
get:
operationId: fake-http-signature-test
@@ -1340,7 +1392,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
components:
requestBodies:
UserArray:

View File

@@ -50,7 +50,8 @@ paths:
schema:
$ref: '#/components/schemas/_foo_get_default_response'
description: response
x-accepts: application/json
x-accepts:
- application/json
/pet:
post:
description: ""
@@ -70,7 +71,8 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
put:
description: ""
operationId: updatePet
@@ -94,7 +96,8 @@ paths:
- pet
x-webclient-blocking: true
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
servers:
- url: http://petstore.swagger.io/v2
- url: http://path-server-test.petstore.local/v2
@@ -158,7 +161,9 @@ paths:
tags:
- pet
x-webclient-blocking: true
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -203,7 +208,9 @@ paths:
tags:
- pet
x-webclient-blocking: true
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
description: ""
@@ -237,7 +244,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -271,7 +279,9 @@ paths:
tags:
- pet
x-webclient-blocking: true
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
description: ""
operationId: updatePetWithForm
@@ -303,7 +313,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
description: ""
@@ -338,7 +349,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -359,7 +371,8 @@ paths:
tags:
- store
x-webclient-blocking: false
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
description: ""
@@ -387,7 +400,9 @@ paths:
tags:
- store
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{order_id}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -410,7 +425,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -444,7 +460,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -463,7 +481,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
description: ""
@@ -477,7 +496,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
description: ""
@@ -491,7 +511,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
description: ""
@@ -543,7 +564,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
description: ""
@@ -554,7 +577,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -576,7 +600,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
description: ""
operationId: getUserByName
@@ -606,7 +631,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -635,7 +662,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake_classname_test:
patch:
description: To test class name in snake case
@@ -655,7 +683,8 @@ paths:
tags:
- fake_classname_tags 123#$%^
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake:
delete:
description: Fake endpoint to test group parameters (optional)
@@ -720,7 +749,8 @@ paths:
tags:
- fake
x-group-parameters: true
x-accepts: application/json
x-accepts:
- application/json
get:
description: To test enum parameters
operationId: testEnumParameters
@@ -826,7 +856,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
patch:
description: To test "client" model
operationId: testClientModel
@@ -843,7 +874,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
post:
description: |
Fake endpoint for testing various parameters
@@ -871,7 +903,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/outer/number:
post:
description: Test serialization of outer number types
@@ -892,7 +925,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/property/enum-int:
post:
description: Test serialization of enum (int) properties with examples
@@ -914,7 +948,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/string:
post:
description: Test serialization of outer string types
@@ -935,7 +970,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/boolean:
post:
description: Test serialization of outer boolean types
@@ -956,7 +992,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/composite:
post:
description: Test serialization of object with outer number type
@@ -977,7 +1014,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/BigDecimalMap:
get:
description: "for Java apache and Java native, test toUrlQueryString for maps\
@@ -992,7 +1030,8 @@ paths:
description: successful operation
tags:
- fake
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/jsonFormData:
get:
description: ""
@@ -1009,7 +1048,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/additionalProperties-reference:
post:
description: ""
@@ -1028,7 +1068,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/stringMap-reference:
post:
description: ""
@@ -1047,7 +1088,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-additionalProperties:
post:
description: ""
@@ -1068,7 +1110,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-freeform-additionalProperties:
post:
description: ""
@@ -1087,7 +1130,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/nullable:
post:
description: ""
@@ -1106,7 +1150,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
@@ -1130,7 +1175,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/another-fake/dummy:
patch:
description: To test special tags and operation ID starting with number
@@ -1148,7 +1194,8 @@ paths:
tags:
- $another-fake?
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-file-schema:
put:
description: "For this test, the body for this request must reference a schema\
@@ -1166,7 +1213,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-binary:
put:
description: "For this test, the body has to be a binary file."
@@ -1186,7 +1234,8 @@ paths:
tags:
- fake
x-content-type: image/png
x-accepts: application/json
x-accepts:
- application/json
/fake/test-query-parameters:
put:
description: To test the collection format in query parameters
@@ -1260,7 +1309,8 @@ paths:
description: Success
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/{petId}/uploadImageWithRequiredFile:
post:
description: ""
@@ -1295,7 +1345,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/fake/health:
get:
responses:
@@ -1308,7 +1359,8 @@ paths:
summary: Health check endpoint
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/http-signature-test:
get:
operationId: fake-http-signature-test
@@ -1340,7 +1392,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
components:
requestBodies:
UserArray:

View File

@@ -47,7 +47,8 @@ paths:
- pet
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
put:
operationId: updatePet
requestBody:
@@ -82,7 +83,8 @@ paths:
- pet
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/pet/findByStatus:
get:
description: Multiple status values can be provided with comma separated strings
@@ -127,7 +129,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -172,7 +176,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
operationId: deletePet
@@ -202,7 +208,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -235,7 +242,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
operationId: updatePetWithForm
parameters:
@@ -263,7 +272,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
operationId: uploadFile
@@ -295,7 +305,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -315,7 +326,8 @@ paths:
summary: Returns pet inventories by status
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
operationId: placeOrder
@@ -344,7 +356,9 @@ paths:
- store
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{order_id}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -367,7 +381,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -401,7 +416,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -422,7 +439,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
operationId: createUsersWithArrayInput
@@ -444,7 +462,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
operationId: createUsersWithListInput
@@ -466,7 +485,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
operationId: loginUser
@@ -510,7 +530,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
operationId: logoutUser
@@ -521,7 +543,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -543,7 +566,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
operationId: getUserByName
parameters:
@@ -572,7 +596,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -602,7 +628,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/fake_classname_test:
patch:
description: To test class name in snake case
@@ -628,7 +655,8 @@ paths:
- fake_classname_tags 123#$%^
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake:
delete:
description: Fake endpoint to test group parameters (optional)
@@ -677,7 +705,8 @@ paths:
tags:
- fake
x-group-parameters: true
x-accepts: application/json
x-accepts:
- application/json
get:
description: To test enum parameters
operationId: testEnumParameters
@@ -762,7 +791,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
patch:
description: To test "client" model
operationId: testClientModel
@@ -785,7 +815,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
post:
description: |-
Fake endpoint for testing various parameters
@@ -816,7 +847,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/outer/number:
post:
description: Test serialization of outer number types
@@ -839,7 +871,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/string:
post:
description: Test serialization of outer string types
@@ -862,7 +895,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/boolean:
post:
description: Test serialization of outer boolean types
@@ -885,7 +919,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/composite:
post:
description: Test serialization of object with outer number type
@@ -908,7 +943,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/jsonFormData:
get:
operationId: testJsonFormData
@@ -926,7 +962,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-additionalProperties:
post:
operationId: testInlineAdditionalProperties
@@ -948,7 +985,8 @@ paths:
- fake
x-codegen-request-body-name: param
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
@@ -972,7 +1010,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/create_xml_item:
post:
description: this route creates an XmlItem
@@ -1008,7 +1047,8 @@ paths:
- fake
x-codegen-request-body-name: XmlItem
x-content-type: application/xml
x-accepts: application/json
x-accepts:
- application/json
/another-fake/dummy:
patch:
description: To test special tags and operation ID starting with number
@@ -1040,7 +1080,8 @@ paths:
- $another-fake?
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-file-schema:
put:
description: "For this test, the body for this request much reference a schema\
@@ -1060,7 +1101,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/test-query-parameters:
put:
description: To test the collection format in query parameters
@@ -1114,7 +1156,8 @@ paths:
description: Success
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/{petId}/uploadImageWithRequiredFile:
post:
operationId: uploadFileWithRequiredFile
@@ -1147,7 +1190,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
components:
schemas:
Order:

View File

@@ -47,7 +47,8 @@ paths:
- pet
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
put:
operationId: updatePet
requestBody:
@@ -82,7 +83,8 @@ paths:
- pet
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/pet/findByStatus:
get:
description: Multiple status values can be provided with comma separated strings
@@ -127,7 +129,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -172,7 +176,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
operationId: deletePet
@@ -202,7 +208,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -235,7 +242,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
operationId: updatePetWithForm
parameters:
@@ -263,7 +272,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
operationId: uploadFile
@@ -295,7 +305,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -315,7 +326,8 @@ paths:
summary: Returns pet inventories by status
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
operationId: placeOrder
@@ -344,7 +356,9 @@ paths:
- store
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{order_id}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -367,7 +381,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -401,7 +416,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -422,7 +439,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
operationId: createUsersWithArrayInput
@@ -444,7 +462,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
operationId: createUsersWithListInput
@@ -466,7 +485,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
operationId: loginUser
@@ -510,7 +530,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
operationId: logoutUser
@@ -521,7 +543,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -543,7 +566,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
operationId: getUserByName
parameters:
@@ -572,7 +596,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -602,7 +628,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/fake_classname_test:
patch:
description: To test class name in snake case
@@ -628,7 +655,8 @@ paths:
- fake_classname_tags 123#$%^
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake:
delete:
description: Fake endpoint to test group parameters (optional)
@@ -677,7 +705,8 @@ paths:
tags:
- fake
x-group-parameters: true
x-accepts: application/json
x-accepts:
- application/json
get:
description: To test enum parameters
operationId: testEnumParameters
@@ -762,7 +791,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
patch:
description: To test "client" model
operationId: testClientModel
@@ -785,7 +815,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
post:
description: |-
Fake endpoint for testing various parameters
@@ -816,7 +847,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/outer/number:
post:
description: Test serialization of outer number types
@@ -839,7 +871,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/string:
post:
description: Test serialization of outer string types
@@ -862,7 +895,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/boolean:
post:
description: Test serialization of outer boolean types
@@ -885,7 +919,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/composite:
post:
description: Test serialization of object with outer number type
@@ -908,7 +943,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/jsonFormData:
get:
operationId: testJsonFormData
@@ -926,7 +962,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-additionalProperties:
post:
operationId: testInlineAdditionalProperties
@@ -948,7 +985,8 @@ paths:
- fake
x-codegen-request-body-name: param
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
@@ -972,7 +1010,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/create_xml_item:
post:
description: this route creates an XmlItem
@@ -1008,7 +1047,8 @@ paths:
- fake
x-codegen-request-body-name: XmlItem
x-content-type: application/xml
x-accepts: application/json
x-accepts:
- application/json
/another-fake/dummy:
patch:
description: To test special tags and operation ID starting with number
@@ -1040,7 +1080,8 @@ paths:
- $another-fake?
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-file-schema:
put:
description: "For this test, the body for this request much reference a schema\
@@ -1060,7 +1101,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/test-query-parameters:
put:
description: To test the collection format in query parameters
@@ -1114,7 +1156,8 @@ paths:
description: Success
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/{petId}/uploadImageWithRequiredFile:
post:
operationId: uploadFileWithRequiredFile
@@ -1147,7 +1190,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
components:
schemas:
Order:

View File

@@ -47,7 +47,8 @@ paths:
- pet
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
put:
operationId: updatePet
requestBody:
@@ -82,7 +83,8 @@ paths:
- pet
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/pet/findByStatus:
get:
description: Multiple status values can be provided with comma separated strings
@@ -127,7 +129,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -172,7 +176,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
operationId: deletePet
@@ -202,7 +208,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -235,7 +242,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
operationId: updatePetWithForm
parameters:
@@ -263,7 +272,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
operationId: uploadFile
@@ -295,7 +305,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -315,7 +326,8 @@ paths:
summary: Returns pet inventories by status
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
operationId: placeOrder
@@ -344,7 +356,9 @@ paths:
- store
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{order_id}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -367,7 +381,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -401,7 +416,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -422,7 +439,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
operationId: createUsersWithArrayInput
@@ -444,7 +462,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
operationId: createUsersWithListInput
@@ -466,7 +485,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
operationId: loginUser
@@ -510,7 +530,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
operationId: logoutUser
@@ -521,7 +543,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -543,7 +566,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
operationId: getUserByName
parameters:
@@ -572,7 +596,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -602,7 +628,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/fake_classname_test:
patch:
description: To test class name in snake case
@@ -628,7 +655,8 @@ paths:
- fake_classname_tags 123#$%^
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake:
delete:
description: Fake endpoint to test group parameters (optional)
@@ -677,7 +705,8 @@ paths:
tags:
- fake
x-group-parameters: true
x-accepts: application/json
x-accepts:
- application/json
get:
description: To test enum parameters
operationId: testEnumParameters
@@ -762,7 +791,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
patch:
description: To test "client" model
operationId: testClientModel
@@ -785,7 +815,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
post:
description: |-
Fake endpoint for testing various parameters
@@ -816,7 +847,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/outer/number:
post:
description: Test serialization of outer number types
@@ -839,7 +871,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/string:
post:
description: Test serialization of outer string types
@@ -862,7 +895,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/boolean:
post:
description: Test serialization of outer boolean types
@@ -885,7 +919,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/composite:
post:
description: Test serialization of object with outer number type
@@ -908,7 +943,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/jsonFormData:
get:
operationId: testJsonFormData
@@ -926,7 +962,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-additionalProperties:
post:
operationId: testInlineAdditionalProperties
@@ -948,7 +985,8 @@ paths:
- fake
x-codegen-request-body-name: param
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
@@ -972,7 +1010,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/create_xml_item:
post:
description: this route creates an XmlItem
@@ -1008,7 +1047,8 @@ paths:
- fake
x-codegen-request-body-name: XmlItem
x-content-type: application/xml
x-accepts: application/json
x-accepts:
- application/json
/another-fake/dummy:
patch:
description: To test special tags and operation ID starting with number
@@ -1040,7 +1080,8 @@ paths:
- $another-fake?
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-file-schema:
put:
description: "For this test, the body for this request much reference a schema\
@@ -1060,7 +1101,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/test-query-parameters:
put:
description: To test the collection format in query parameters
@@ -1114,7 +1156,8 @@ paths:
description: Success
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/{petId}/uploadImageWithRequiredFile:
post:
operationId: uploadFileWithRequiredFile
@@ -1147,7 +1190,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
components:
schemas:
Order:

View File

@@ -47,7 +47,8 @@ paths:
- pet
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
put:
operationId: updatePet
requestBody:
@@ -82,7 +83,8 @@ paths:
- pet
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/pet/findByStatus:
get:
description: Multiple status values can be provided with comma separated strings
@@ -127,7 +129,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -172,7 +176,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
operationId: deletePet
@@ -202,7 +208,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -235,7 +242,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
operationId: updatePetWithForm
parameters:
@@ -263,7 +272,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
operationId: uploadFile
@@ -295,7 +305,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -315,7 +326,8 @@ paths:
summary: Returns pet inventories by status
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
operationId: placeOrder
@@ -344,7 +356,9 @@ paths:
- store
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{order_id}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -367,7 +381,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -401,7 +416,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -422,7 +439,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
operationId: createUsersWithArrayInput
@@ -444,7 +462,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
operationId: createUsersWithListInput
@@ -466,7 +485,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
operationId: loginUser
@@ -510,7 +530,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
operationId: logoutUser
@@ -521,7 +543,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -543,7 +566,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
operationId: getUserByName
parameters:
@@ -572,7 +596,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -602,7 +628,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/fake_classname_test:
patch:
description: To test class name in snake case
@@ -628,7 +655,8 @@ paths:
- fake_classname_tags 123#$%^
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake:
delete:
description: Fake endpoint to test group parameters (optional)
@@ -677,7 +705,8 @@ paths:
tags:
- fake
x-group-parameters: true
x-accepts: application/json
x-accepts:
- application/json
get:
description: To test enum parameters
operationId: testEnumParameters
@@ -762,7 +791,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
patch:
description: To test "client" model
operationId: testClientModel
@@ -785,7 +815,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
post:
description: |-
Fake endpoint for testing various parameters
@@ -816,7 +847,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/outer/number:
post:
description: Test serialization of outer number types
@@ -839,7 +871,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/string:
post:
description: Test serialization of outer string types
@@ -862,7 +895,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/boolean:
post:
description: Test serialization of outer boolean types
@@ -885,7 +919,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/composite:
post:
description: Test serialization of object with outer number type
@@ -908,7 +943,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/jsonFormData:
get:
operationId: testJsonFormData
@@ -926,7 +962,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-additionalProperties:
post:
operationId: testInlineAdditionalProperties
@@ -948,7 +985,8 @@ paths:
- fake
x-codegen-request-body-name: param
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
@@ -972,7 +1010,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/create_xml_item:
post:
description: this route creates an XmlItem
@@ -1008,7 +1047,8 @@ paths:
- fake
x-codegen-request-body-name: XmlItem
x-content-type: application/xml
x-accepts: application/json
x-accepts:
- application/json
/another-fake/dummy:
patch:
description: To test special tags and operation ID starting with number
@@ -1040,7 +1080,8 @@ paths:
- $another-fake?
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-file-schema:
put:
description: "For this test, the body for this request much reference a schema\
@@ -1060,7 +1101,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/test-query-parameters:
put:
description: To test the collection format in query parameters
@@ -1114,7 +1156,8 @@ paths:
description: Success
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/{petId}/uploadImageWithRequiredFile:
post:
operationId: uploadFileWithRequiredFile
@@ -1147,7 +1190,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
components:
schemas:
Order:

View File

@@ -47,7 +47,8 @@ paths:
- pet
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
put:
operationId: updatePet
requestBody:
@@ -82,7 +83,8 @@ paths:
- pet
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/pet/findByStatus:
get:
description: Multiple status values can be provided with comma separated strings
@@ -127,7 +129,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -172,7 +176,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
operationId: deletePet
@@ -202,7 +208,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -235,7 +242,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
operationId: updatePetWithForm
parameters:
@@ -263,7 +272,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
operationId: uploadFile
@@ -295,7 +305,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -315,7 +326,8 @@ paths:
summary: Returns pet inventories by status
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
operationId: placeOrder
@@ -344,7 +356,9 @@ paths:
- store
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{order_id}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -367,7 +381,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -401,7 +416,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -422,7 +439,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
operationId: createUsersWithArrayInput
@@ -444,7 +462,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
operationId: createUsersWithListInput
@@ -466,7 +485,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
operationId: loginUser
@@ -510,7 +530,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
operationId: logoutUser
@@ -521,7 +543,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -543,7 +566,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
operationId: getUserByName
parameters:
@@ -572,7 +596,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -602,7 +628,8 @@ paths:
- user
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: application/json
x-accepts:
- application/json
/fake_classname_test:
patch:
description: To test class name in snake case
@@ -628,7 +655,8 @@ paths:
- fake_classname_tags 123#$%^
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake:
delete:
description: Fake endpoint to test group parameters (optional)
@@ -677,7 +705,8 @@ paths:
tags:
- fake
x-group-parameters: true
x-accepts: application/json
x-accepts:
- application/json
get:
description: To test enum parameters
operationId: testEnumParameters
@@ -762,7 +791,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
patch:
description: To test "client" model
operationId: testClientModel
@@ -785,7 +815,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
post:
description: |-
Fake endpoint for testing various parameters
@@ -816,7 +847,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/outer/number:
post:
description: Test serialization of outer number types
@@ -839,7 +871,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/string:
post:
description: Test serialization of outer string types
@@ -862,7 +895,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/boolean:
post:
description: Test serialization of outer boolean types
@@ -885,7 +919,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/composite:
post:
description: Test serialization of object with outer number type
@@ -908,7 +943,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: '*/*'
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/jsonFormData:
get:
operationId: testJsonFormData
@@ -926,7 +962,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-additionalProperties:
post:
operationId: testInlineAdditionalProperties
@@ -948,7 +985,8 @@ paths:
- fake
x-codegen-request-body-name: param
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
@@ -972,7 +1010,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/create_xml_item:
post:
description: this route creates an XmlItem
@@ -1008,7 +1047,8 @@ paths:
- fake
x-codegen-request-body-name: XmlItem
x-content-type: application/xml
x-accepts: application/json
x-accepts:
- application/json
/another-fake/dummy:
patch:
description: To test special tags and operation ID starting with number
@@ -1040,7 +1080,8 @@ paths:
- $another-fake?
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-file-schema:
put:
description: "For this test, the body for this request much reference a schema\
@@ -1060,7 +1101,8 @@ paths:
- fake
x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/test-query-parameters:
put:
description: To test the collection format in query parameters
@@ -1114,7 +1156,8 @@ paths:
description: Success
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/{petId}/uploadImageWithRequiredFile:
post:
operationId: uploadFileWithRequiredFile
@@ -1147,7 +1190,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
components:
schemas:
Order:

View File

@@ -50,7 +50,8 @@ paths:
schema:
$ref: '#/components/schemas/_foo_get_default_response'
description: response
x-accepts: application/json
x-accepts:
- application/json
/pet:
post:
description: ""
@@ -70,7 +71,8 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
put:
description: ""
operationId: updatePet
@@ -94,7 +96,8 @@ paths:
- pet
x-webclient-blocking: true
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
servers:
- url: http://petstore.swagger.io/v2
- url: http://path-server-test.petstore.local/v2
@@ -158,7 +161,9 @@ paths:
tags:
- pet
x-webclient-blocking: true
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -203,7 +208,9 @@ paths:
tags:
- pet
x-webclient-blocking: true
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
description: ""
@@ -237,7 +244,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -271,7 +279,9 @@ paths:
tags:
- pet
x-webclient-blocking: true
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
description: ""
operationId: updatePetWithForm
@@ -303,7 +313,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
description: ""
@@ -338,7 +349,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -359,7 +371,8 @@ paths:
tags:
- store
x-webclient-blocking: false
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
description: ""
@@ -387,7 +400,9 @@ paths:
tags:
- store
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{order_id}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -410,7 +425,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -444,7 +460,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -463,7 +481,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
description: ""
@@ -477,7 +496,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
description: ""
@@ -491,7 +511,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
description: ""
@@ -543,7 +564,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
description: ""
@@ -554,7 +577,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -576,7 +600,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
description: ""
operationId: getUserByName
@@ -606,7 +631,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -635,7 +662,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake_classname_test:
patch:
description: To test class name in snake case
@@ -655,7 +683,8 @@ paths:
tags:
- fake_classname_tags 123#$%^
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake:
delete:
description: Fake endpoint to test group parameters (optional)
@@ -720,7 +749,8 @@ paths:
tags:
- fake
x-group-parameters: true
x-accepts: application/json
x-accepts:
- application/json
get:
description: To test enum parameters
operationId: testEnumParameters
@@ -826,7 +856,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
patch:
description: To test "client" model
operationId: testClientModel
@@ -843,7 +874,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
post:
description: |
Fake endpoint for testing various parameters
@@ -871,7 +903,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/outer/number:
post:
description: Test serialization of outer number types
@@ -892,7 +925,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/property/enum-int:
post:
description: Test serialization of enum (int) properties with examples
@@ -914,7 +948,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/string:
post:
description: Test serialization of outer string types
@@ -935,7 +970,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/boolean:
post:
description: Test serialization of outer boolean types
@@ -956,7 +992,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/composite:
post:
description: Test serialization of object with outer number type
@@ -977,7 +1014,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/BigDecimalMap:
get:
description: "for Java apache and Java native, test toUrlQueryString for maps\
@@ -992,7 +1030,8 @@ paths:
description: successful operation
tags:
- fake
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/jsonFormData:
get:
description: ""
@@ -1009,7 +1048,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/additionalProperties-reference:
post:
description: ""
@@ -1028,7 +1068,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/stringMap-reference:
post:
description: ""
@@ -1047,7 +1088,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-additionalProperties:
post:
description: ""
@@ -1068,7 +1110,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-freeform-additionalProperties:
post:
description: ""
@@ -1087,7 +1130,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/nullable:
post:
description: ""
@@ -1106,7 +1150,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
@@ -1130,7 +1175,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/another-fake/dummy:
patch:
description: To test special tags and operation ID starting with number
@@ -1148,7 +1194,8 @@ paths:
tags:
- $another-fake?
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-file-schema:
put:
description: "For this test, the body for this request must reference a schema\
@@ -1166,7 +1213,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-binary:
put:
description: "For this test, the body has to be a binary file."
@@ -1186,7 +1234,8 @@ paths:
tags:
- fake
x-content-type: image/png
x-accepts: application/json
x-accepts:
- application/json
/fake/test-query-parameters:
put:
description: To test the collection format in query parameters
@@ -1260,7 +1309,8 @@ paths:
description: Success
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/{petId}/uploadImageWithRequiredFile:
post:
description: ""
@@ -1295,7 +1345,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/fake/health:
get:
responses:
@@ -1308,7 +1359,8 @@ paths:
summary: Health check endpoint
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/http-signature-test:
get:
operationId: fake-http-signature-test
@@ -1340,7 +1392,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
components:
requestBodies:
UserArray:

View File

@@ -50,7 +50,8 @@ paths:
schema:
$ref: '#/components/schemas/_foo_get_default_response'
description: response
x-accepts: application/json
x-accepts:
- application/json
/pet:
post:
description: ""
@@ -70,7 +71,8 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
put:
description: ""
operationId: updatePet
@@ -94,7 +96,8 @@ paths:
- pet
x-webclient-blocking: true
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
servers:
- url: http://petstore.swagger.io/v2
- url: http://path-server-test.petstore.local/v2
@@ -158,7 +161,9 @@ paths:
tags:
- pet
x-webclient-blocking: true
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -203,7 +208,9 @@ paths:
tags:
- pet
x-webclient-blocking: true
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
description: ""
@@ -237,7 +244,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -271,7 +279,9 @@ paths:
tags:
- pet
x-webclient-blocking: true
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
description: ""
operationId: updatePetWithForm
@@ -303,7 +313,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
description: ""
@@ -338,7 +349,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -359,7 +371,8 @@ paths:
tags:
- store
x-webclient-blocking: false
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
description: ""
@@ -387,7 +400,9 @@ paths:
tags:
- store
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{order_id}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -410,7 +425,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -444,7 +460,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -463,7 +481,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
description: ""
@@ -477,7 +496,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
description: ""
@@ -491,7 +511,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
description: ""
@@ -543,7 +564,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
description: ""
@@ -554,7 +577,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -576,7 +600,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
description: ""
operationId: getUserByName
@@ -606,7 +631,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -635,7 +662,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake_classname_test:
patch:
description: To test class name in snake case
@@ -655,7 +683,8 @@ paths:
tags:
- fake_classname_tags 123#$%^
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake:
delete:
description: Fake endpoint to test group parameters (optional)
@@ -720,7 +749,8 @@ paths:
tags:
- fake
x-group-parameters: true
x-accepts: application/json
x-accepts:
- application/json
get:
description: To test enum parameters
operationId: testEnumParameters
@@ -826,7 +856,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
patch:
description: To test "client" model
operationId: testClientModel
@@ -843,7 +874,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
post:
description: |
Fake endpoint for testing various parameters
@@ -871,7 +903,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/outer/number:
post:
description: Test serialization of outer number types
@@ -892,7 +925,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/property/enum-int:
post:
description: Test serialization of enum (int) properties with examples
@@ -914,7 +948,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/string:
post:
description: Test serialization of outer string types
@@ -935,7 +970,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/boolean:
post:
description: Test serialization of outer boolean types
@@ -956,7 +992,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/composite:
post:
description: Test serialization of object with outer number type
@@ -977,7 +1014,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/BigDecimalMap:
get:
description: "for Java apache and Java native, test toUrlQueryString for maps\
@@ -992,7 +1030,8 @@ paths:
description: successful operation
tags:
- fake
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/jsonFormData:
get:
description: ""
@@ -1009,7 +1048,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/additionalProperties-reference:
post:
description: ""
@@ -1028,7 +1068,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/stringMap-reference:
post:
description: ""
@@ -1047,7 +1088,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-additionalProperties:
post:
description: ""
@@ -1068,7 +1110,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-freeform-additionalProperties:
post:
description: ""
@@ -1087,7 +1130,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/nullable:
post:
description: ""
@@ -1106,7 +1150,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
@@ -1130,7 +1175,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/another-fake/dummy:
patch:
description: To test special tags and operation ID starting with number
@@ -1148,7 +1194,8 @@ paths:
tags:
- $another-fake?
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-file-schema:
put:
description: "For this test, the body for this request must reference a schema\
@@ -1166,7 +1213,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-binary:
put:
description: "For this test, the body has to be a binary file."
@@ -1186,7 +1234,8 @@ paths:
tags:
- fake
x-content-type: image/png
x-accepts: application/json
x-accepts:
- application/json
/fake/test-query-parameters:
put:
description: To test the collection format in query parameters
@@ -1260,7 +1309,8 @@ paths:
description: Success
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/{petId}/uploadImageWithRequiredFile:
post:
description: ""
@@ -1295,7 +1345,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/fake/health:
get:
responses:
@@ -1308,7 +1359,8 @@ paths:
summary: Health check endpoint
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/http-signature-test:
get:
operationId: fake-http-signature-test
@@ -1340,7 +1392,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
components:
requestBodies:
UserArray:

View File

@@ -21,7 +21,8 @@ paths:
type: array
description: ""
summary: ""
x-accepts: application/json
x-accepts:
- application/json
components:
schemas:
ByteArrayObject:

View File

@@ -50,7 +50,8 @@ paths:
schema:
$ref: '#/components/schemas/_foo_get_default_response'
description: response
x-accepts: application/json
x-accepts:
- application/json
/pet:
post:
description: ""
@@ -70,7 +71,8 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
put:
description: ""
operationId: updatePet
@@ -94,7 +96,8 @@ paths:
- pet
x-webclient-blocking: true
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
servers:
- url: http://petstore.swagger.io/v2
- url: http://path-server-test.petstore.local/v2
@@ -158,7 +161,9 @@ paths:
tags:
- pet
x-webclient-blocking: true
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -203,7 +208,9 @@ paths:
tags:
- pet
x-webclient-blocking: true
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
description: ""
@@ -237,7 +244,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -271,7 +279,9 @@ paths:
tags:
- pet
x-webclient-blocking: true
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
description: ""
operationId: updatePetWithForm
@@ -303,7 +313,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
description: ""
@@ -338,7 +349,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -359,7 +371,8 @@ paths:
tags:
- store
x-webclient-blocking: false
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
description: ""
@@ -387,7 +400,9 @@ paths:
tags:
- store
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{order_id}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -410,7 +425,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -444,7 +460,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -463,7 +481,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
description: ""
@@ -477,7 +496,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
description: ""
@@ -491,7 +511,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
description: ""
@@ -543,7 +564,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
description: ""
@@ -554,7 +577,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -576,7 +600,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
description: ""
operationId: getUserByName
@@ -606,7 +631,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -635,7 +662,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake_classname_test:
patch:
description: To test class name in snake case
@@ -655,7 +683,8 @@ paths:
tags:
- fake_classname_tags 123#$%^
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake:
delete:
description: Fake endpoint to test group parameters (optional)
@@ -720,7 +749,8 @@ paths:
tags:
- fake
x-group-parameters: true
x-accepts: application/json
x-accepts:
- application/json
get:
description: To test enum parameters
operationId: testEnumParameters
@@ -826,7 +856,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
patch:
description: To test "client" model
operationId: testClientModel
@@ -843,7 +874,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
post:
description: |
Fake endpoint for testing various parameters
@@ -871,7 +903,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/outer/number:
post:
description: Test serialization of outer number types
@@ -892,7 +925,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/property/enum-int:
post:
description: Test serialization of enum (int) properties with examples
@@ -914,7 +948,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/string:
post:
description: Test serialization of outer string types
@@ -935,7 +970,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/boolean:
post:
description: Test serialization of outer boolean types
@@ -956,7 +992,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/composite:
post:
description: Test serialization of object with outer number type
@@ -977,7 +1014,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/BigDecimalMap:
get:
description: "for Java apache and Java native, test toUrlQueryString for maps\
@@ -992,7 +1030,8 @@ paths:
description: successful operation
tags:
- fake
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/jsonFormData:
get:
description: ""
@@ -1009,7 +1048,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/additionalProperties-reference:
post:
description: ""
@@ -1028,7 +1068,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/stringMap-reference:
post:
description: ""
@@ -1047,7 +1088,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-additionalProperties:
post:
description: ""
@@ -1068,7 +1110,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-freeform-additionalProperties:
post:
description: ""
@@ -1087,7 +1130,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/nullable:
post:
description: ""
@@ -1106,7 +1150,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
@@ -1130,7 +1175,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/another-fake/dummy:
patch:
description: To test special tags and operation ID starting with number
@@ -1148,7 +1194,8 @@ paths:
tags:
- $another-fake?
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-file-schema:
put:
description: "For this test, the body for this request must reference a schema\
@@ -1166,7 +1213,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-binary:
put:
description: "For this test, the body has to be a binary file."
@@ -1186,7 +1234,8 @@ paths:
tags:
- fake
x-content-type: image/png
x-accepts: application/json
x-accepts:
- application/json
/fake/test-query-parameters:
put:
description: To test the collection format in query parameters
@@ -1260,7 +1309,8 @@ paths:
description: Success
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/{petId}/uploadImageWithRequiredFile:
post:
description: ""
@@ -1295,7 +1345,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/fake/health:
get:
responses:
@@ -1308,7 +1359,8 @@ paths:
summary: Health check endpoint
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/http-signature-test:
get:
operationId: fake-http-signature-test
@@ -1340,7 +1392,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
components:
requestBodies:
UserArray:

View File

@@ -50,7 +50,8 @@ paths:
schema:
$ref: '#/components/schemas/_foo_get_default_response'
description: response
x-accepts: application/json
x-accepts:
- application/json
/pet:
post:
description: ""
@@ -70,7 +71,8 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
put:
description: ""
operationId: updatePet
@@ -94,7 +96,8 @@ paths:
- pet
x-webclient-blocking: true
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
servers:
- url: http://petstore.swagger.io/v2
- url: http://path-server-test.petstore.local/v2
@@ -158,7 +161,9 @@ paths:
tags:
- pet
x-webclient-blocking: true
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -203,7 +208,9 @@ paths:
tags:
- pet
x-webclient-blocking: true
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
description: ""
@@ -237,7 +244,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -271,7 +279,9 @@ paths:
tags:
- pet
x-webclient-blocking: true
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
description: ""
operationId: updatePetWithForm
@@ -303,7 +313,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
description: ""
@@ -338,7 +349,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -359,7 +371,8 @@ paths:
tags:
- store
x-webclient-blocking: false
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
description: ""
@@ -387,7 +400,9 @@ paths:
tags:
- store
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{order_id}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -410,7 +425,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -444,7 +460,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -463,7 +481,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
description: ""
@@ -477,7 +496,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
description: ""
@@ -491,7 +511,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
description: ""
@@ -543,7 +564,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
description: ""
@@ -554,7 +577,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -576,7 +600,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
description: ""
operationId: getUserByName
@@ -606,7 +631,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -635,7 +662,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake_classname_test:
patch:
description: To test class name in snake case
@@ -655,7 +683,8 @@ paths:
tags:
- fake_classname_tags 123#$%^
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake:
delete:
description: Fake endpoint to test group parameters (optional)
@@ -720,7 +749,8 @@ paths:
tags:
- fake
x-group-parameters: true
x-accepts: application/json
x-accepts:
- application/json
get:
description: To test enum parameters
operationId: testEnumParameters
@@ -826,7 +856,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
patch:
description: To test "client" model
operationId: testClientModel
@@ -843,7 +874,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
post:
description: |
Fake endpoint for testing various parameters
@@ -871,7 +903,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/outer/number:
post:
description: Test serialization of outer number types
@@ -892,7 +925,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/property/enum-int:
post:
description: Test serialization of enum (int) properties with examples
@@ -914,7 +948,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/string:
post:
description: Test serialization of outer string types
@@ -935,7 +970,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/boolean:
post:
description: Test serialization of outer boolean types
@@ -956,7 +992,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/composite:
post:
description: Test serialization of object with outer number type
@@ -977,7 +1014,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/BigDecimalMap:
get:
description: "for Java apache and Java native, test toUrlQueryString for maps\
@@ -992,7 +1030,8 @@ paths:
description: successful operation
tags:
- fake
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/jsonFormData:
get:
description: ""
@@ -1009,7 +1048,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/additionalProperties-reference:
post:
description: ""
@@ -1028,7 +1068,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/stringMap-reference:
post:
description: ""
@@ -1047,7 +1088,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-additionalProperties:
post:
description: ""
@@ -1068,7 +1110,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-freeform-additionalProperties:
post:
description: ""
@@ -1087,7 +1130,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/nullable:
post:
description: ""
@@ -1106,7 +1150,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
@@ -1130,7 +1175,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/another-fake/dummy:
patch:
description: To test special tags and operation ID starting with number
@@ -1148,7 +1194,8 @@ paths:
tags:
- $another-fake?
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-file-schema:
put:
description: "For this test, the body for this request must reference a schema\
@@ -1166,7 +1213,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-binary:
put:
description: "For this test, the body has to be a binary file."
@@ -1186,7 +1234,8 @@ paths:
tags:
- fake
x-content-type: image/png
x-accepts: application/json
x-accepts:
- application/json
/fake/test-query-parameters:
put:
description: To test the collection format in query parameters
@@ -1260,7 +1309,8 @@ paths:
description: Success
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/{petId}/uploadImageWithRequiredFile:
post:
description: ""
@@ -1295,7 +1345,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/fake/health:
get:
responses:
@@ -1308,7 +1359,8 @@ paths:
summary: Health check endpoint
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/http-signature-test:
get:
operationId: fake-http-signature-test
@@ -1340,7 +1392,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
components:
requestBodies:
UserArray:

View File

@@ -126,7 +126,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<List<Pet>> findPetsByStatus(
@@ -164,7 +164,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<List<Pet>> findPetsByTags(
@@ -201,7 +201,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<Pet> getPetById(
@@ -303,7 +303,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
produces = "application/json",
produces = { "application/json" },
consumes = "multipart/form-data"
)

View File

@@ -89,7 +89,7 @@ public interface StoreApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
produces = "application/json"
produces = { "application/json" }
)
ResponseEntity<Map<String, Integer>> getInventory(
@@ -123,7 +123,7 @@ public interface StoreApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{orderId}",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<Order> getOrderById(
@@ -155,7 +155,7 @@ public interface StoreApi {
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
produces = "application/json,application/xml",
produces = { "application/json", "application/xml" },
consumes = "application/json"
)

View File

@@ -185,7 +185,7 @@ public interface UserApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/user/{username}",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<User> getUserByName(
@@ -218,7 +218,7 @@ public interface UserApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/user/login",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<String> loginUser(

View File

@@ -56,7 +56,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.POST,
value = "/pet",
produces = "application/json,application/xml",
produces = { "application/json", "application/xml" },
consumes = "application/json"
)
@@ -127,7 +127,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<List<Pet>> findPetsByStatus(
@@ -165,7 +165,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<List<Pet>> findPetsByTags(
@@ -200,7 +200,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<Pet> getPetById(
@@ -242,7 +242,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.PUT,
value = "/pet",
produces = "application/json,application/xml",
produces = { "application/json", "application/xml" },
consumes = "application/json"
)
@@ -316,7 +316,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
produces = "application/json",
produces = { "application/json" },
consumes = "multipart/form-data"
)

View File

@@ -79,7 +79,7 @@ public interface StoreApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
produces = "application/json"
produces = { "application/json" }
)
ResponseEntity<Map<String, Integer>> getInventory(
@@ -111,7 +111,7 @@ public interface StoreApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{orderId}",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<Order> getOrderById(
@@ -141,7 +141,7 @@ public interface StoreApi {
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
produces = "application/json,application/xml",
produces = { "application/json", "application/xml" },
consumes = "application/json"
)

View File

@@ -173,7 +173,7 @@ public interface UserApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/user/{username}",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<User> getUserByName(
@@ -204,7 +204,7 @@ public interface UserApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/user/login",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<String> loginUser(

View File

@@ -124,7 +124,7 @@ public interface PetController {
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<List<Pet>> findPetsByStatus(
@@ -164,7 +164,7 @@ public interface PetController {
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<List<Pet>> findPetsByTags(
@@ -200,7 +200,7 @@ public interface PetController {
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<Pet> getPetById(
@@ -307,7 +307,7 @@ public interface PetController {
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
produces = "application/json",
produces = { "application/json" },
consumes = "multipart/form-data"
)

View File

@@ -79,7 +79,7 @@ public interface StoreController {
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
produces = "application/json"
produces = { "application/json" }
)
ResponseEntity<Map<String, Integer>> getInventory(
@@ -111,7 +111,7 @@ public interface StoreController {
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{orderId}",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<Order> getOrderById(
@@ -140,7 +140,7 @@ public interface StoreController {
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<Order> placeOrder(

View File

@@ -155,7 +155,7 @@ public interface UserController {
@RequestMapping(
method = RequestMethod.GET,
value = "/user/{username}",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<User> getUserByName(
@@ -185,7 +185,7 @@ public interface UserController {
@RequestMapping(
method = RequestMethod.GET,
value = "/user/login",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<String> loginUser(

View File

@@ -56,7 +56,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.POST,
value = "/pet",
produces = "application/json,application/xml",
produces = { "application/json", "application/xml" },
consumes = "application/json"
)
@@ -127,7 +127,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<List<Pet>> findPetsByStatus(
@@ -165,7 +165,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<List<Pet>> findPetsByTags(
@@ -200,7 +200,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<Pet> getPetById(
@@ -242,7 +242,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.PUT,
value = "/pet",
produces = "application/json,application/xml",
produces = { "application/json", "application/xml" },
consumes = "application/json"
)
@@ -316,7 +316,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
produces = "application/json",
produces = { "application/json" },
consumes = "multipart/form-data"
)

View File

@@ -79,7 +79,7 @@ public interface StoreApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
produces = "application/json"
produces = { "application/json" }
)
ResponseEntity<Map<String, Integer>> getInventory(
@@ -111,7 +111,7 @@ public interface StoreApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{orderId}",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<Order> getOrderById(
@@ -141,7 +141,7 @@ public interface StoreApi {
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
produces = "application/json,application/xml",
produces = { "application/json", "application/xml" },
consumes = "application/json"
)

View File

@@ -173,7 +173,7 @@ public interface UserApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/user/{username}",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<User> getUserByName(
@@ -204,7 +204,7 @@ public interface UserApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/user/login",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<String> loginUser(

View File

@@ -34,7 +34,7 @@ public interface AnotherFakeApi {
@HttpExchange(
method = "PATCH",
value = "/another-fake/dummy",
accept = "application/json",
accept = { "application/json" },
contentType = "application/json"
)
Mono<ResponseEntity<Client>> call123testSpecialTags(

View File

@@ -44,7 +44,7 @@ public interface FakeApi {
@HttpExchange(
method = "POST",
value = "/fake/create_xml_item",
accept = "application/json",
accept = { "application/json" },
contentType = "application/xml"
)
Mono<ResponseEntity<Void>> createXmlItem(
@@ -62,7 +62,7 @@ public interface FakeApi {
@HttpExchange(
method = "POST",
value = "/fake/outer/boolean",
accept = "*/*",
accept = { "*/*" },
contentType = "application/json"
)
Mono<ResponseEntity<Boolean>> fakeOuterBooleanSerialize(
@@ -80,7 +80,7 @@ public interface FakeApi {
@HttpExchange(
method = "POST",
value = "/fake/outer/composite",
accept = "*/*",
accept = { "*/*" },
contentType = "application/json"
)
Mono<ResponseEntity<OuterComposite>> fakeOuterCompositeSerialize(
@@ -98,7 +98,7 @@ public interface FakeApi {
@HttpExchange(
method = "POST",
value = "/fake/outer/number",
accept = "*/*",
accept = { "*/*" },
contentType = "application/json"
)
Mono<ResponseEntity<BigDecimal>> fakeOuterNumberSerialize(
@@ -116,7 +116,7 @@ public interface FakeApi {
@HttpExchange(
method = "POST",
value = "/fake/outer/string",
accept = "*/*",
accept = { "*/*" },
contentType = "application/json"
)
Mono<ResponseEntity<String>> fakeOuterStringSerialize(
@@ -134,7 +134,7 @@ public interface FakeApi {
@HttpExchange(
method = "PUT",
value = "/fake/body-with-file-schema",
accept = "application/json",
accept = { "application/json" },
contentType = "application/json"
)
Mono<ResponseEntity<Void>> testBodyWithFileSchema(
@@ -152,7 +152,7 @@ public interface FakeApi {
@HttpExchange(
method = "PUT",
value = "/fake/body-with-query-params",
accept = "application/json",
accept = { "application/json" },
contentType = "application/json"
)
Mono<ResponseEntity<Void>> testBodyWithQueryParams(
@@ -171,7 +171,7 @@ public interface FakeApi {
@HttpExchange(
method = "PATCH",
value = "/fake",
accept = "application/json",
accept = { "application/json" },
contentType = "application/json"
)
Mono<ResponseEntity<Client>> testClientModel(
@@ -203,7 +203,7 @@ public interface FakeApi {
@HttpExchange(
method = "POST",
value = "/fake",
accept = "application/json",
accept = { "application/json" },
contentType = "application/x-www-form-urlencoded"
)
Mono<ResponseEntity<Void>> testEndpointParameters(
@@ -242,7 +242,7 @@ public interface FakeApi {
@HttpExchange(
method = "GET",
value = "/fake",
accept = "application/json",
accept = { "application/json" },
contentType = "application/x-www-form-urlencoded"
)
Mono<ResponseEntity<Void>> testEnumParameters(
@@ -272,7 +272,7 @@ public interface FakeApi {
@HttpExchange(
method = "DELETE",
value = "/fake",
accept = "application/json"
accept = { "application/json" }
)
Mono<ResponseEntity<Void>> testGroupParameters(
@RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,
@@ -294,7 +294,7 @@ public interface FakeApi {
@HttpExchange(
method = "POST",
value = "/fake/inline-additionalProperties",
accept = "application/json",
accept = { "application/json" },
contentType = "application/json"
)
Mono<ResponseEntity<Void>> testInlineAdditionalProperties(
@@ -313,7 +313,7 @@ public interface FakeApi {
@HttpExchange(
method = "GET",
value = "/fake/jsonFormData",
accept = "application/json",
accept = { "application/json" },
contentType = "application/x-www-form-urlencoded"
)
Mono<ResponseEntity<Void>> testJsonFormData(
@@ -332,7 +332,7 @@ public interface FakeApi {
@HttpExchange(
method = "POST",
value = "/fake/nullable",
accept = "application/json",
accept = { "application/json" },
contentType = "application/json"
)
Mono<ResponseEntity<Void>> testNullable(
@@ -353,7 +353,7 @@ public interface FakeApi {
@HttpExchange(
method = "PUT",
value = "/fake/test-query-parameters",
accept = "application/json"
accept = { "application/json" }
)
Mono<ResponseEntity<Void>> testQueryParameterCollectionFormat(
@RequestParam(value = "pipe", required = true) List<String> pipe,
@@ -372,7 +372,7 @@ public interface FakeApi {
@HttpExchange(
method = "GET",
value = "/fake/response-with-example",
accept = "application/json"
accept = { "application/json" }
)
Mono<ResponseEntity<Integer>> testWithResultExample(

View File

@@ -34,7 +34,7 @@ public interface FakeClassnameTags123Api {
@HttpExchange(
method = "PATCH",
value = "/fake_classname_test",
accept = "application/json",
accept = { "application/json" },
contentType = "application/json"
)
Mono<ResponseEntity<Client>> testClassname(

View File

@@ -38,7 +38,7 @@ public interface PetApi {
@HttpExchange(
method = "POST",
value = "/pet",
accept = "application/json",
accept = { "application/json" },
contentType = "application/json"
)
Mono<ResponseEntity<Void>> addPet(
@@ -58,7 +58,7 @@ public interface PetApi {
@HttpExchange(
method = "DELETE",
value = "/pet/{petId}",
accept = "application/json"
accept = { "application/json" }
)
Mono<ResponseEntity<Void>> deletePet(
@PathVariable("petId") Long petId,
@@ -77,7 +77,7 @@ public interface PetApi {
@HttpExchange(
method = "GET",
value = "/pet/findByStatus",
accept = "application/json,application/xml"
accept = { "application/json", "application/xml" }
)
Mono<ResponseEntity<Flux<Pet>>> findPetsByStatus(
@RequestParam(value = "status", required = true) List<String> status
@@ -97,7 +97,7 @@ public interface PetApi {
@HttpExchange(
method = "GET",
value = "/pet/findByTags",
accept = "application/json,application/xml"
accept = { "application/json", "application/xml" }
)
Mono<ResponseEntity<Flux<Pet>>> findPetsByTags(
@RequestParam(value = "tags", required = true) Set<String> tags
@@ -116,7 +116,7 @@ public interface PetApi {
@HttpExchange(
method = "GET",
value = "/pet/{petId}",
accept = "application/json,application/xml"
accept = { "application/json", "application/xml" }
)
Mono<ResponseEntity<Pet>> getPetById(
@PathVariable("petId") Long petId
@@ -132,7 +132,7 @@ public interface PetApi {
@HttpExchange(
method = "GET",
value = "/fake/{petId}/response-object-different-names",
accept = "application/json"
accept = { "application/json" }
)
Mono<ResponseEntity<ResponseObjectWithDifferentFieldNames>> responseObjectDifferentNames(
@PathVariable("petId") Long petId
@@ -152,7 +152,7 @@ public interface PetApi {
@HttpExchange(
method = "PUT",
value = "/pet",
accept = "application/json",
accept = { "application/json" },
contentType = "application/json"
)
Mono<ResponseEntity<Void>> updatePet(
@@ -172,7 +172,7 @@ public interface PetApi {
@HttpExchange(
method = "POST",
value = "/pet/{petId}",
accept = "application/json",
accept = { "application/json" },
contentType = "application/x-www-form-urlencoded"
)
Mono<ResponseEntity<Void>> updatePetWithForm(
@@ -194,7 +194,7 @@ public interface PetApi {
@HttpExchange(
method = "POST",
value = "/pet/{petId}/uploadImage",
accept = "application/json",
accept = { "application/json" },
contentType = "multipart/form-data"
)
Mono<ResponseEntity<ModelApiResponse>> uploadFile(
@@ -216,7 +216,7 @@ public interface PetApi {
@HttpExchange(
method = "POST",
value = "/fake/{petId}/uploadImageWithRequiredFile",
accept = "application/json",
accept = { "application/json" },
contentType = "multipart/form-data"
)
Mono<ResponseEntity<ModelApiResponse>> uploadFileWithRequiredFile(

View File

@@ -36,7 +36,7 @@ public interface StoreApi {
@HttpExchange(
method = "DELETE",
value = "/store/order/{order_id}",
accept = "application/json"
accept = { "application/json" }
)
Mono<ResponseEntity<Void>> deleteOrder(
@PathVariable("order_id") String orderId
@@ -52,7 +52,7 @@ public interface StoreApi {
@HttpExchange(
method = "GET",
value = "/store/inventory",
accept = "application/json"
accept = { "application/json" }
)
Mono<ResponseEntity<Map<String, Integer>>> getInventory(
@@ -71,7 +71,7 @@ public interface StoreApi {
@HttpExchange(
method = "GET",
value = "/store/order/{order_id}",
accept = "application/json,application/xml"
accept = { "application/json", "application/xml" }
)
Mono<ResponseEntity<Order>> getOrderById(
@PathVariable("order_id") Long orderId
@@ -89,7 +89,7 @@ public interface StoreApi {
@HttpExchange(
method = "POST",
value = "/store/order",
accept = "application/json,application/xml",
accept = { "application/json", "application/xml" },
contentType = "application/json"
)
Mono<ResponseEntity<Order>> placeOrder(

View File

@@ -35,7 +35,7 @@ public interface UserApi {
@HttpExchange(
method = "POST",
value = "/user",
accept = "application/json",
accept = { "application/json" },
contentType = "application/json"
)
Mono<ResponseEntity<Void>> createUser(
@@ -53,7 +53,7 @@ public interface UserApi {
@HttpExchange(
method = "POST",
value = "/user/createWithArray",
accept = "application/json",
accept = { "application/json" },
contentType = "application/json"
)
Mono<ResponseEntity<Void>> createUsersWithArrayInput(
@@ -71,7 +71,7 @@ public interface UserApi {
@HttpExchange(
method = "POST",
value = "/user/createWithList",
accept = "application/json",
accept = { "application/json" },
contentType = "application/json"
)
Mono<ResponseEntity<Void>> createUsersWithListInput(
@@ -90,7 +90,7 @@ public interface UserApi {
@HttpExchange(
method = "DELETE",
value = "/user/{username}",
accept = "application/json"
accept = { "application/json" }
)
Mono<ResponseEntity<Void>> deleteUser(
@PathVariable("username") String username
@@ -109,7 +109,7 @@ public interface UserApi {
@HttpExchange(
method = "GET",
value = "/user/{username}",
accept = "application/json,application/xml"
accept = { "application/json", "application/xml" }
)
Mono<ResponseEntity<User>> getUserByName(
@PathVariable("username") String username
@@ -128,7 +128,7 @@ public interface UserApi {
@HttpExchange(
method = "GET",
value = "/user/login",
accept = "application/json,application/xml"
accept = { "application/json", "application/xml" }
)
Mono<ResponseEntity<String>> loginUser(
@RequestParam(value = "username", required = true) String username,
@@ -145,7 +145,7 @@ public interface UserApi {
@HttpExchange(
method = "GET",
value = "/user/logout",
accept = "application/json"
accept = { "application/json" }
)
Mono<ResponseEntity<Void>> logoutUser(
@@ -164,7 +164,7 @@ public interface UserApi {
@HttpExchange(
method = "PUT",
value = "/user/{username}",
accept = "application/json",
accept = { "application/json" },
contentType = "application/json"
)
Mono<ResponseEntity<Void>> updateUser(

View File

@@ -30,7 +30,7 @@ public interface AnotherFakeApi {
@HttpExchange(
method = "PATCH",
value = "/another-fake/dummy",
accept = "application/json",
accept = { "application/json" },
contentType = "application/json"
)
ResponseEntity<ClientDto> call123testSpecialTags(

View File

@@ -40,7 +40,7 @@ public interface FakeApi {
@HttpExchange(
method = "POST",
value = "/fake/create_xml_item",
accept = "application/json",
accept = { "application/json" },
contentType = "application/xml"
)
ResponseEntity<Void> createXmlItem(
@@ -58,7 +58,7 @@ public interface FakeApi {
@HttpExchange(
method = "POST",
value = "/fake/outer/boolean",
accept = "*/*",
accept = { "*/*" },
contentType = "application/json"
)
ResponseEntity<Boolean> fakeOuterBooleanSerialize(
@@ -76,7 +76,7 @@ public interface FakeApi {
@HttpExchange(
method = "POST",
value = "/fake/outer/composite",
accept = "*/*",
accept = { "*/*" },
contentType = "application/json"
)
ResponseEntity<OuterCompositeDto> fakeOuterCompositeSerialize(
@@ -94,7 +94,7 @@ public interface FakeApi {
@HttpExchange(
method = "POST",
value = "/fake/outer/number",
accept = "*/*",
accept = { "*/*" },
contentType = "application/json"
)
ResponseEntity<BigDecimal> fakeOuterNumberSerialize(
@@ -112,7 +112,7 @@ public interface FakeApi {
@HttpExchange(
method = "POST",
value = "/fake/outer/string",
accept = "*/*",
accept = { "*/*" },
contentType = "application/json"
)
ResponseEntity<String> fakeOuterStringSerialize(
@@ -130,7 +130,7 @@ public interface FakeApi {
@HttpExchange(
method = "PUT",
value = "/fake/body-with-file-schema",
accept = "application/json",
accept = { "application/json" },
contentType = "application/json"
)
ResponseEntity<Void> testBodyWithFileSchema(
@@ -148,7 +148,7 @@ public interface FakeApi {
@HttpExchange(
method = "PUT",
value = "/fake/body-with-query-params",
accept = "application/json",
accept = { "application/json" },
contentType = "application/json"
)
ResponseEntity<Void> testBodyWithQueryParams(
@@ -167,7 +167,7 @@ public interface FakeApi {
@HttpExchange(
method = "PATCH",
value = "/fake",
accept = "application/json",
accept = { "application/json" },
contentType = "application/json"
)
ResponseEntity<ClientDto> testClientModel(
@@ -199,7 +199,7 @@ public interface FakeApi {
@HttpExchange(
method = "POST",
value = "/fake",
accept = "application/json",
accept = { "application/json" },
contentType = "application/x-www-form-urlencoded"
)
ResponseEntity<Void> testEndpointParameters(
@@ -238,7 +238,7 @@ public interface FakeApi {
@HttpExchange(
method = "GET",
value = "/fake",
accept = "application/json",
accept = { "application/json" },
contentType = "application/x-www-form-urlencoded"
)
ResponseEntity<Void> testEnumParameters(
@@ -268,7 +268,7 @@ public interface FakeApi {
@HttpExchange(
method = "DELETE",
value = "/fake",
accept = "application/json"
accept = { "application/json" }
)
ResponseEntity<Void> testGroupParameters(
@RequestParam(value = "required_string_group", required = true) Integer requiredStringGroup,
@@ -290,7 +290,7 @@ public interface FakeApi {
@HttpExchange(
method = "POST",
value = "/fake/inline-additionalProperties",
accept = "application/json",
accept = { "application/json" },
contentType = "application/json"
)
ResponseEntity<Void> testInlineAdditionalProperties(
@@ -309,7 +309,7 @@ public interface FakeApi {
@HttpExchange(
method = "GET",
value = "/fake/jsonFormData",
accept = "application/json",
accept = { "application/json" },
contentType = "application/x-www-form-urlencoded"
)
ResponseEntity<Void> testJsonFormData(
@@ -328,7 +328,7 @@ public interface FakeApi {
@HttpExchange(
method = "POST",
value = "/fake/nullable",
accept = "application/json",
accept = { "application/json" },
contentType = "application/json"
)
ResponseEntity<Void> testNullable(
@@ -349,7 +349,7 @@ public interface FakeApi {
@HttpExchange(
method = "PUT",
value = "/fake/test-query-parameters",
accept = "application/json"
accept = { "application/json" }
)
ResponseEntity<Void> testQueryParameterCollectionFormat(
@RequestParam(value = "pipe", required = true) List<String> pipe,
@@ -368,7 +368,7 @@ public interface FakeApi {
@HttpExchange(
method = "GET",
value = "/fake/response-with-example",
accept = "application/json"
accept = { "application/json" }
)
ResponseEntity<Integer> testWithResultExample(

View File

@@ -30,7 +30,7 @@ public interface FakeClassnameTags123Api {
@HttpExchange(
method = "PATCH",
value = "/fake_classname_test",
accept = "application/json",
accept = { "application/json" },
contentType = "application/json"
)
ResponseEntity<ClientDto> testClassname(

View File

@@ -34,7 +34,7 @@ public interface PetApi {
@HttpExchange(
method = "POST",
value = "/pet",
accept = "application/json",
accept = { "application/json" },
contentType = "application/json"
)
ResponseEntity<Void> addPet(
@@ -54,7 +54,7 @@ public interface PetApi {
@HttpExchange(
method = "DELETE",
value = "/pet/{petId}",
accept = "application/json"
accept = { "application/json" }
)
ResponseEntity<Void> deletePet(
@PathVariable("petId") Long petId,
@@ -73,7 +73,7 @@ public interface PetApi {
@HttpExchange(
method = "GET",
value = "/pet/findByStatus",
accept = "application/json,application/xml"
accept = { "application/json", "application/xml" }
)
ResponseEntity<List<PetDto>> findPetsByStatus(
@RequestParam(value = "status", required = true) List<String> status
@@ -93,7 +93,7 @@ public interface PetApi {
@HttpExchange(
method = "GET",
value = "/pet/findByTags",
accept = "application/json,application/xml"
accept = { "application/json", "application/xml" }
)
ResponseEntity<Set<PetDto>> findPetsByTags(
@RequestParam(value = "tags", required = true) Set<String> tags
@@ -112,7 +112,7 @@ public interface PetApi {
@HttpExchange(
method = "GET",
value = "/pet/{petId}",
accept = "application/json,application/xml"
accept = { "application/json", "application/xml" }
)
ResponseEntity<PetDto> getPetById(
@PathVariable("petId") Long petId
@@ -128,7 +128,7 @@ public interface PetApi {
@HttpExchange(
method = "GET",
value = "/fake/{petId}/response-object-different-names",
accept = "application/json"
accept = { "application/json" }
)
ResponseEntity<ResponseObjectWithDifferentFieldNamesDto> responseObjectDifferentNames(
@PathVariable("petId") Long petId
@@ -148,7 +148,7 @@ public interface PetApi {
@HttpExchange(
method = "PUT",
value = "/pet",
accept = "application/json",
accept = { "application/json" },
contentType = "application/json"
)
ResponseEntity<Void> updatePet(
@@ -168,7 +168,7 @@ public interface PetApi {
@HttpExchange(
method = "POST",
value = "/pet/{petId}",
accept = "application/json",
accept = { "application/json" },
contentType = "application/x-www-form-urlencoded"
)
ResponseEntity<Void> updatePetWithForm(
@@ -190,7 +190,7 @@ public interface PetApi {
@HttpExchange(
method = "POST",
value = "/pet/{petId}/uploadImage",
accept = "application/json",
accept = { "application/json" },
contentType = "multipart/form-data"
)
ResponseEntity<ApiResponseDto> uploadFile(
@@ -212,7 +212,7 @@ public interface PetApi {
@HttpExchange(
method = "POST",
value = "/fake/{petId}/uploadImageWithRequiredFile",
accept = "application/json",
accept = { "application/json" },
contentType = "multipart/form-data"
)
ResponseEntity<ApiResponseDto> uploadFileWithRequiredFile(

View File

@@ -32,7 +32,7 @@ public interface StoreApi {
@HttpExchange(
method = "DELETE",
value = "/store/order/{order_id}",
accept = "application/json"
accept = { "application/json" }
)
ResponseEntity<Void> deleteOrder(
@PathVariable("order_id") String orderId
@@ -48,7 +48,7 @@ public interface StoreApi {
@HttpExchange(
method = "GET",
value = "/store/inventory",
accept = "application/json"
accept = { "application/json" }
)
ResponseEntity<Map<String, Integer>> getInventory(
@@ -67,7 +67,7 @@ public interface StoreApi {
@HttpExchange(
method = "GET",
value = "/store/order/{order_id}",
accept = "application/json,application/xml"
accept = { "application/json", "application/xml" }
)
ResponseEntity<OrderDto> getOrderById(
@PathVariable("order_id") Long orderId
@@ -85,7 +85,7 @@ public interface StoreApi {
@HttpExchange(
method = "POST",
value = "/store/order",
accept = "application/json,application/xml",
accept = { "application/json", "application/xml" },
contentType = "application/json"
)
ResponseEntity<OrderDto> placeOrder(

View File

@@ -31,7 +31,7 @@ public interface UserApi {
@HttpExchange(
method = "POST",
value = "/user",
accept = "application/json",
accept = { "application/json" },
contentType = "application/json"
)
ResponseEntity<Void> createUser(
@@ -49,7 +49,7 @@ public interface UserApi {
@HttpExchange(
method = "POST",
value = "/user/createWithArray",
accept = "application/json",
accept = { "application/json" },
contentType = "application/json"
)
ResponseEntity<Void> createUsersWithArrayInput(
@@ -67,7 +67,7 @@ public interface UserApi {
@HttpExchange(
method = "POST",
value = "/user/createWithList",
accept = "application/json",
accept = { "application/json" },
contentType = "application/json"
)
ResponseEntity<Void> createUsersWithListInput(
@@ -86,7 +86,7 @@ public interface UserApi {
@HttpExchange(
method = "DELETE",
value = "/user/{username}",
accept = "application/json"
accept = { "application/json" }
)
ResponseEntity<Void> deleteUser(
@PathVariable("username") String username
@@ -105,7 +105,7 @@ public interface UserApi {
@HttpExchange(
method = "GET",
value = "/user/{username}",
accept = "application/json,application/xml"
accept = { "application/json", "application/xml" }
)
ResponseEntity<UserDto> getUserByName(
@PathVariable("username") String username
@@ -124,7 +124,7 @@ public interface UserApi {
@HttpExchange(
method = "GET",
value = "/user/login",
accept = "application/json,application/xml"
accept = { "application/json", "application/xml" }
)
ResponseEntity<String> loginUser(
@RequestParam(value = "username", required = true) String username,
@@ -141,7 +141,7 @@ public interface UserApi {
@HttpExchange(
method = "GET",
value = "/user/logout",
accept = "application/json"
accept = { "application/json" }
)
ResponseEntity<Void> logoutUser(
@@ -160,7 +160,7 @@ public interface UserApi {
@HttpExchange(
method = "PUT",
value = "/user/{username}",
accept = "application/json",
accept = { "application/json" },
contentType = "application/json"
)
ResponseEntity<Void> updateUser(

View File

@@ -51,7 +51,8 @@ paths:
summary: Use both API keys
tags:
- usage
x-accepts: application/json
x-accepts:
- application/json
/any:
get:
description: Use any API key
@@ -69,7 +70,8 @@ paths:
summary: Use any API key
tags:
- usage
x-accepts: application/json
x-accepts:
- application/json
/query:
get:
description: Use API key in query
@@ -86,7 +88,8 @@ paths:
summary: Use API key in query
tags:
- usage
x-accepts: application/json
x-accepts:
- application/json
/header:
get:
description: Use API key in header
@@ -103,7 +106,8 @@ paths:
summary: Use API key in header
tags:
- usage
x-accepts: application/json
x-accepts:
- application/json
components:
schemas: {}
securitySchemes:

View File

@@ -21,7 +21,8 @@ paths:
$ref: '#/components/schemas/MySchemaName._-Characters'
description: the response
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
components:
schemas:
Parent:

View File

@@ -46,7 +46,9 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: ""
externalDocs:
@@ -79,7 +81,9 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByStatus:
get:
description: Multiple status values can be provided with comma separated strings
@@ -123,7 +127,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -163,7 +169,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
description: ""
@@ -195,7 +203,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -228,7 +237,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
description: ""
operationId: updatePetWithForm
@@ -258,7 +269,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
description: ""
@@ -293,7 +305,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -313,7 +326,8 @@ paths:
summary: Returns pet inventories by status
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
description: ""
@@ -341,7 +355,9 @@ paths:
tags:
- store
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{orderId}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -364,7 +380,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -398,7 +415,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -419,7 +438,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
description: ""
@@ -435,7 +455,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
description: ""
@@ -451,7 +472,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
description: ""
@@ -512,7 +534,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
description: ""
@@ -525,7 +549,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -549,7 +574,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
description: ""
operationId: getUserByName
@@ -579,7 +605,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -610,7 +638,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
components:
requestBodies:
UserArray:

View File

@@ -46,7 +46,9 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: ""
externalDocs:
@@ -79,7 +81,9 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByStatus:
get:
description: Multiple status values can be provided with comma separated strings
@@ -123,7 +127,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -163,7 +169,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
description: ""
@@ -195,7 +203,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -228,7 +237,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
description: ""
operationId: updatePetWithForm
@@ -258,7 +269,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
description: ""
@@ -293,7 +305,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -313,7 +326,8 @@ paths:
summary: Returns pet inventories by status
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
description: ""
@@ -341,7 +355,9 @@ paths:
tags:
- store
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{orderId}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -364,7 +380,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -398,7 +415,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -419,7 +438,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
description: ""
@@ -435,7 +455,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
description: ""
@@ -451,7 +472,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
description: ""
@@ -512,7 +534,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
description: ""
@@ -525,7 +549,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -549,7 +574,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
description: ""
operationId: getUserByName
@@ -579,7 +605,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -610,7 +638,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
components:
requestBodies:
UserArray:

View File

@@ -50,7 +50,8 @@ paths:
schema:
$ref: '#/components/schemas/_foo_get_default_response'
description: response
x-accepts: application/json
x-accepts:
- application/json
/pet:
post:
description: ""
@@ -69,7 +70,8 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
put:
description: ""
operationId: updatePet
@@ -91,7 +93,8 @@ paths:
tags:
- pet
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
servers:
- url: http://petstore.swagger.io/v2
- url: http://path-server-test.petstore.local/v2
@@ -140,7 +143,9 @@ paths:
summary: Finds Pets by status
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/findByTags:
get:
deprecated: true
@@ -182,7 +187,9 @@ paths:
summary: Finds Pets by tags
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/pet/{petId}:
delete:
description: ""
@@ -214,7 +221,8 @@ paths:
summary: Deletes a pet
tags:
- pet
x-accepts: application/json
x-accepts:
- application/json
get:
description: Returns a single pet
operationId: getPetById
@@ -247,7 +255,9 @@ paths:
summary: Find pet by ID
tags:
- pet
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
post:
description: ""
operationId: updatePetWithForm
@@ -277,7 +287,8 @@ paths:
tags:
- pet
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/pet/{petId}/uploadImage:
post:
description: ""
@@ -312,7 +323,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/store/inventory:
get:
description: Returns a map of status codes to quantities
@@ -332,7 +344,8 @@ paths:
summary: Returns pet inventories by status
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
/store/order:
post:
description: ""
@@ -360,7 +373,9 @@ paths:
tags:
- store
x-content-type: application/json
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/store/order/{order_id}:
delete:
description: For valid response try integer IDs with value < 1000. Anything
@@ -383,7 +398,8 @@ paths:
summary: Delete purchase order by ID
tags:
- store
x-accepts: application/json
x-accepts:
- application/json
get:
description: For valid response try integer IDs with value <= 5 or > 10. Other
values will generate exceptions
@@ -417,7 +433,9 @@ paths:
summary: Find purchase order by ID
tags:
- store
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user:
post:
description: This can only be done by the logged in user.
@@ -436,7 +454,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithArray:
post:
description: ""
@@ -450,7 +469,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/createWithList:
post:
description: ""
@@ -464,7 +484,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/user/login:
get:
description: ""
@@ -516,7 +537,9 @@ paths:
summary: Logs user into the system
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
/user/logout:
get:
description: ""
@@ -527,7 +550,8 @@ paths:
summary: Logs out current logged in user session
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
/user/{username}:
delete:
description: This can only be done by the logged in user.
@@ -549,7 +573,8 @@ paths:
summary: Delete user
tags:
- user
x-accepts: application/json
x-accepts:
- application/json
get:
description: ""
operationId: getUserByName
@@ -579,7 +604,9 @@ paths:
summary: Get user by user name
tags:
- user
x-accepts: "application/json,application/xml"
x-accepts:
- application/json
- application/xml
put:
description: This can only be done by the logged in user.
operationId: updateUser
@@ -608,7 +635,8 @@ paths:
tags:
- user
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake_classname_test:
patch:
description: To test class name in snake case
@@ -628,7 +656,8 @@ paths:
tags:
- fake_classname_tags 123#$%^
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake:
delete:
description: Fake endpoint to test group parameters (optional)
@@ -693,7 +722,8 @@ paths:
tags:
- fake
x-group-parameters: true
x-accepts: application/json
x-accepts:
- application/json
get:
description: To test enum parameters
operationId: testEnumParameters
@@ -790,7 +820,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
patch:
description: To test "client" model
operationId: testClientModel
@@ -807,7 +838,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
post:
description: |
Fake endpoint for testing various parameters
@@ -835,7 +867,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/outer/number:
post:
description: Test serialization of outer number types
@@ -856,7 +889,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/string:
post:
description: Test serialization of outer string types
@@ -877,7 +911,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/boolean:
post:
description: Test serialization of outer boolean types
@@ -898,7 +933,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/outer/composite:
post:
description: Test serialization of object with outer number type
@@ -919,7 +955,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: '*/*'
x-accepts:
- '*/*'
/fake/jsonFormData:
get:
description: ""
@@ -936,7 +973,8 @@ paths:
tags:
- fake
x-content-type: application/x-www-form-urlencoded
x-accepts: application/json
x-accepts:
- application/json
/fake/additionalProperties-reference:
post:
description: ""
@@ -955,7 +993,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/stringMap-reference:
post:
description: ""
@@ -974,7 +1013,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-additionalProperties:
post:
description: ""
@@ -995,7 +1035,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/inline-freeform-additionalProperties:
post:
description: ""
@@ -1014,7 +1055,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
@@ -1038,7 +1080,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/another-fake/dummy:
patch:
description: To test special tags and operation ID starting with number
@@ -1056,7 +1099,8 @@ paths:
tags:
- $another-fake?
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/body-with-file-schema:
put:
description: "For this test, the body for this request much reference a schema\
@@ -1074,7 +1118,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
/fake/test-query-parameters:
put:
description: To test the collection format in query parameters
@@ -1130,7 +1175,8 @@ paths:
description: Success
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/{petId}/uploadImageWithRequiredFile:
post:
description: ""
@@ -1165,7 +1211,8 @@ paths:
tags:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
x-accepts:
- application/json
/fake/health:
get:
responses:
@@ -1178,7 +1225,8 @@ paths:
summary: Health check endpoint
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/array-of-enums:
get:
operationId: getArrayOfEnums
@@ -1192,7 +1240,8 @@ paths:
summary: Array of Enums
tags:
- fake
x-accepts: application/json
x-accepts:
- application/json
/fake/request-array-string:
post:
operationId: postArrayOfString
@@ -1211,7 +1260,8 @@ paths:
tags:
- fake
x-content-type: application/json
x-accepts: application/json
x-accepts:
- application/json
components:
requestBodies:
UserArray:

View File

@@ -37,7 +37,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.POST,
value = "/pet",
produces = "application/json,application/xml",
produces = { "application/json", "application/xml" },
consumes = "application/json"
)
@@ -76,7 +76,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<List<Pet>> findPetsByStatus(
@@ -97,7 +97,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<List<Pet>> findPetsByTags(
@@ -117,7 +117,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<Pet> getPetById(
@@ -140,7 +140,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.PUT,
value = "/pet",
produces = "application/json,application/xml",
produces = { "application/json", "application/xml" },
consumes = "application/json"
)
@@ -183,7 +183,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
produces = "application/json",
produces = { "application/json" },
consumes = "multipart/form-data"
)

View File

@@ -53,7 +53,7 @@ public interface StoreApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
produces = "application/json"
produces = { "application/json" }
)
ResponseEntity<Map<String, Integer>> getInventory(
@@ -73,7 +73,7 @@ public interface StoreApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{orderId}",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<Order> getOrderById(
@@ -92,7 +92,7 @@ public interface StoreApi {
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
produces = "application/json,application/xml",
produces = { "application/json", "application/xml" },
consumes = "application/json"
)

View File

@@ -110,7 +110,7 @@ public interface UserApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/user/{username}",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<User> getUserByName(
@@ -130,7 +130,7 @@ public interface UserApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/user/login",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<String> loginUser(

View File

@@ -65,7 +65,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.POST,
value = "/pet",
produces = "application/json,application/xml",
produces = { "application/json", "application/xml" },
consumes = "application/json"
)
@@ -132,7 +132,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<List<Pet>> findPetsByStatus(
@@ -170,7 +170,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<List<Pet>> findPetsByTags(
@@ -207,7 +207,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<Pet> getPetById(
@@ -249,7 +249,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.PUT,
value = "/pet",
produces = "application/json,application/xml",
produces = { "application/json", "application/xml" },
consumes = "application/json"
)
@@ -318,7 +318,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
produces = "application/json",
produces = { "application/json" },
consumes = "multipart/form-data"
)

View File

@@ -89,7 +89,7 @@ public interface StoreApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
produces = "application/json"
produces = { "application/json" }
)
ResponseEntity<Map<String, Integer>> getInventory(
@@ -123,7 +123,7 @@ public interface StoreApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{orderId}",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<Order> getOrderById(
@@ -155,7 +155,7 @@ public interface StoreApi {
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
produces = "application/json,application/xml",
produces = { "application/json", "application/xml" },
consumes = "application/json"
)

View File

@@ -185,7 +185,7 @@ public interface UserApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/user/{username}",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<User> getUserByName(
@@ -218,7 +218,7 @@ public interface UserApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/user/login",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<String> loginUser(

View File

@@ -66,7 +66,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.POST,
value = "/pet",
produces = "application/json,application/xml",
produces = { "application/json", "application/xml" },
consumes = "application/json"
)
@@ -133,7 +133,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
CompletableFuture<ResponseEntity<List<Pet>>> findPetsByStatus(
@@ -171,7 +171,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
CompletableFuture<ResponseEntity<List<Pet>>> findPetsByTags(
@@ -208,7 +208,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
CompletableFuture<ResponseEntity<Pet>> getPetById(
@@ -250,7 +250,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.PUT,
value = "/pet",
produces = "application/json,application/xml",
produces = { "application/json", "application/xml" },
consumes = "application/json"
)
@@ -319,7 +319,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
produces = "application/json",
produces = { "application/json" },
consumes = "multipart/form-data"
)

View File

@@ -90,7 +90,7 @@ public interface StoreApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
produces = "application/json"
produces = { "application/json" }
)
CompletableFuture<ResponseEntity<Map<String, Integer>>> getInventory(
@@ -124,7 +124,7 @@ public interface StoreApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{orderId}",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
CompletableFuture<ResponseEntity<Order>> getOrderById(
@@ -156,7 +156,7 @@ public interface StoreApi {
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
produces = "application/json,application/xml",
produces = { "application/json", "application/xml" },
consumes = "application/json"
)

View File

@@ -186,7 +186,7 @@ public interface UserApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/user/{username}",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
CompletableFuture<ResponseEntity<User>> getUserByName(
@@ -219,7 +219,7 @@ public interface UserApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/user/login",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
CompletableFuture<ResponseEntity<String>> loginUser(

View File

@@ -64,7 +64,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.POST,
value = "/pet",
produces = "application/json,application/xml",
produces = { "application/json", "application/xml" },
consumes = "application/json"
)

View File

@@ -58,7 +58,7 @@ public interface AnotherFakeApi {
@RequestMapping(
method = RequestMethod.PATCH,
value = "/another-fake/dummy",
produces = "application/json",
produces = { "application/json" },
consumes = "application/json"
)

View File

@@ -94,7 +94,7 @@ public interface FakeApi {
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/boolean",
produces = "*/*",
produces = { "*/*" },
consumes = "application/json"
)
@@ -123,7 +123,7 @@ public interface FakeApi {
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/composite",
produces = "*/*",
produces = { "*/*" },
consumes = "application/json"
)
@@ -152,7 +152,7 @@ public interface FakeApi {
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/number",
produces = "*/*",
produces = { "*/*" },
consumes = "application/json"
)
@@ -181,7 +181,7 @@ public interface FakeApi {
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/string",
produces = "*/*",
produces = { "*/*" },
consumes = "application/json"
)
@@ -263,7 +263,7 @@ public interface FakeApi {
@RequestMapping(
method = RequestMethod.PATCH,
value = "/fake",
produces = "application/json",
produces = { "application/json" },
consumes = "application/json"
)
@@ -542,7 +542,7 @@ public interface FakeApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/fake/response-with-example",
produces = "application/json"
produces = { "application/json" }
)
ResponseEntity<Integer> testWithResultExample(

View File

@@ -61,7 +61,7 @@ public interface FakeClassnameTags123Api {
@RequestMapping(
method = RequestMethod.PATCH,
value = "/fake_classname_test",
produces = "application/json",
produces = { "application/json" },
consumes = "application/json"
)

View File

@@ -132,7 +132,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<List<Pet>> findPetsByStatus(
@@ -170,7 +170,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<Set<Pet>> findPetsByTags(
@@ -207,7 +207,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<Pet> getPetById(
@@ -233,7 +233,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/fake/{petId}/response-object-different-names",
produces = "application/json"
produces = { "application/json" }
)
ResponseEntity<ResponseObjectWithDifferentFieldNames> responseObjectDifferentNames(
@@ -337,7 +337,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
produces = "application/json",
produces = { "application/json" },
consumes = "multipart/form-data"
)
@@ -374,7 +374,7 @@ public interface PetApi {
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/{petId}/uploadImageWithRequiredFile",
produces = "application/json",
produces = { "application/json" },
consumes = "multipart/form-data"
)

View File

@@ -89,7 +89,7 @@ public interface StoreApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
produces = "application/json"
produces = { "application/json" }
)
ResponseEntity<Map<String, Integer>> getInventory(
@@ -123,7 +123,7 @@ public interface StoreApi {
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{order_id}",
produces = "application/json,application/xml"
produces = { "application/json", "application/xml" }
)
ResponseEntity<Order> getOrderById(
@@ -155,7 +155,7 @@ public interface StoreApi {
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
produces = "application/json,application/xml",
produces = { "application/json", "application/xml" },
consumes = "application/json"
)

Some files were not shown because too many files have changed in this diff Show More