forked from loafle/openapi-generator-original
Fix scopes generation for multiple oauth flows (#7615)
* Fixed generation of oauth2 scopes for multiple oauth2 flows * Fixed locale in string format Co-authored-by: Jim Schubert <james.schubert@gmail.com>
This commit is contained in:
@@ -5569,10 +5569,10 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
codegenSecurity.tokenUrl = flow.getTokenUrl();
|
codegenSecurity.tokenUrl = flow.getTokenUrl();
|
||||||
|
|
||||||
if (flow.getScopes() != null && !flow.getScopes().isEmpty()) {
|
if (flow.getScopes() != null && !flow.getScopes().isEmpty()) {
|
||||||
List<Map<String, Object>> scopes = new ArrayList<Map<String, Object>>();
|
List<Map<String, Object>> scopes = new ArrayList<>();
|
||||||
int count = 0, numScopes = flow.getScopes().size();
|
int count = 0, numScopes = flow.getScopes().size();
|
||||||
for (Map.Entry<String, String> scopeEntry : flow.getScopes().entrySet()) {
|
for (Map.Entry<String, String> scopeEntry : flow.getScopes().entrySet()) {
|
||||||
Map<String, Object> scope = new HashMap<String, Object>();
|
Map<String, Object> scope = new HashMap<>();
|
||||||
scope.put("scope", scopeEntry.getKey());
|
scope.put("scope", scopeEntry.getKey());
|
||||||
scope.put("description", escapeText(scopeEntry.getValue()));
|
scope.put("description", escapeText(scopeEntry.getValue()));
|
||||||
|
|
||||||
|
|||||||
@@ -1359,8 +1359,10 @@ public class DefaultGenerator implements Generator {
|
|||||||
private static OAuthFlow cloneOAuthFlow(OAuthFlow originFlow, List<String> operationScopes) {
|
private static OAuthFlow cloneOAuthFlow(OAuthFlow originFlow, List<String> operationScopes) {
|
||||||
Scopes newScopes = new Scopes();
|
Scopes newScopes = new Scopes();
|
||||||
for (String operationScope : operationScopes) {
|
for (String operationScope : operationScopes) {
|
||||||
|
if (originFlow.getScopes().containsKey(operationScope)) {
|
||||||
newScopes.put(operationScope, originFlow.getScopes().get(operationScope));
|
newScopes.put(operationScope, originFlow.getScopes().get(operationScope));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return new OAuthFlow()
|
return new OAuthFlow()
|
||||||
.authorizationUrl(originFlow.getAuthorizationUrl())
|
.authorizationUrl(originFlow.getAuthorizationUrl())
|
||||||
|
|||||||
@@ -45,12 +45,11 @@ public class {{classname}} {
|
|||||||
{{#hasConsumes}}@Consumes({ {{#consumes}}"{{{mediaType}}}"{{#hasMore}}, {{/hasMore}}{{/consumes}} }){{/hasConsumes}}
|
{{#hasConsumes}}@Consumes({ {{#consumes}}"{{{mediaType}}}"{{#hasMore}}, {{/hasMore}}{{/consumes}} }){{/hasConsumes}}
|
||||||
{{#hasProduces}}@Produces({ {{#produces}}"{{{mediaType}}}"{{#hasMore}}, {{/hasMore}}{{/produces}} }){{/hasProduces}}
|
{{#hasProduces}}@Produces({ {{#produces}}"{{{mediaType}}}"{{#hasMore}}, {{/hasMore}}{{/produces}} }){{/hasProduces}}
|
||||||
@ApiOperation(value = "{{{summary}}}", notes = "{{{notes}}}", response = {{{returnBaseType}}}.class{{#returnContainer}}, responseContainer = "{{{returnContainer}}}"{{/returnContainer}}{{#hasAuthMethods}}, authorizations = {
|
@ApiOperation(value = "{{{summary}}}", notes = "{{{notes}}}", response = {{{returnBaseType}}}.class{{#returnContainer}}, responseContainer = "{{{returnContainer}}}"{{/returnContainer}}{{#hasAuthMethods}}, authorizations = {
|
||||||
{{#authMethods}}@Authorization(value = "{{name}}"{{#isOAuth}}, scopes = {
|
{{#authMethods}}{{#isOAuth}}@Authorization(value = "{{name}}", scopes = {
|
||||||
{{#scopes}}@AuthorizationScope(scope = "{{scope}}", description = "{{description}}"){{#hasMore}},
|
{{#scopes}}@AuthorizationScope(scope = "{{scope}}", description = "{{description}}"){{#hasMore}},
|
||||||
{{/hasMore}}{{/scopes}}
|
{{/hasMore}}{{/scopes}} }){{#hasMore}},{{/hasMore}}{{/isOAuth}}
|
||||||
}{{/isOAuth}}){{#hasMore}},
|
{{^isOAuth}}@Authorization(value = "{{name}}"){{#hasMore}},{{/hasMore}}
|
||||||
{{/hasMore}}{{/authMethods}}
|
{{/isOAuth}}{{/authMethods}} }{{/hasAuthMethods}}, tags={ {{#vendorExtensions.x-tags}}"{{tag}}"{{#hasMore}}, {{/hasMore}}{{/vendorExtensions.x-tags}} })
|
||||||
}{{/hasAuthMethods}}, tags={ {{#vendorExtensions.x-tags}}"{{tag}}"{{#hasMore}}, {{/hasMore}}{{/vendorExtensions.x-tags}} })
|
|
||||||
@ApiResponses(value = { {{#responses}}
|
@ApiResponses(value = { {{#responses}}
|
||||||
@ApiResponse(code = {{{code}}}, message = "{{{message}}}", response = {{{baseType}}}.class{{#containerType}}, responseContainer = "{{{containerType}}}"{{/containerType}}){{#hasMore}},{{/hasMore}}{{/responses}} })
|
@ApiResponse(code = {{{code}}}, message = "{{{message}}}", response = {{{baseType}}}.class{{#containerType}}, responseContainer = "{{{containerType}}}"{{/containerType}}){{#hasMore}},{{/hasMore}}{{/responses}} })
|
||||||
public Response {{nickname}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) {
|
public Response {{nickname}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) {
|
||||||
|
|||||||
@@ -3,12 +3,11 @@
|
|||||||
@Consumes({ {{#consumes}}"{{{mediaType}}}"{{#hasMore}}, {{/hasMore}}{{/consumes}} }){{/hasConsumes}}{{#hasProduces}}
|
@Consumes({ {{#consumes}}"{{{mediaType}}}"{{#hasMore}}, {{/hasMore}}{{/consumes}} }){{/hasConsumes}}{{#hasProduces}}
|
||||||
@Produces({ {{#produces}}"{{{mediaType}}}"{{#hasMore}}, {{/hasMore}}{{/produces}} }){{/hasProduces}}{{#useSwaggerAnnotations}}
|
@Produces({ {{#produces}}"{{{mediaType}}}"{{#hasMore}}, {{/hasMore}}{{/produces}} }){{/hasProduces}}{{#useSwaggerAnnotations}}
|
||||||
@ApiOperation(value = "{{{summary}}}", notes = "{{{notes}}}"{{#hasAuthMethods}}, authorizations = {
|
@ApiOperation(value = "{{{summary}}}", notes = "{{{notes}}}"{{#hasAuthMethods}}, authorizations = {
|
||||||
{{#authMethods}}@Authorization(value = "{{name}}"{{#isOAuth}}, scopes = {
|
{{#authMethods}}{{#isOAuth}}@Authorization(value = "{{name}}", scopes = {
|
||||||
{{#scopes}}@AuthorizationScope(scope = "{{scope}}", description = "{{description}}"){{#hasMore}},
|
{{#scopes}}@AuthorizationScope(scope = "{{scope}}", description = "{{description}}"){{#hasMore}},
|
||||||
{{/hasMore}}{{/scopes}}
|
{{/hasMore}}{{/scopes}} }){{#hasMore}},{{/hasMore}}{{/isOAuth}}
|
||||||
}{{/isOAuth}}){{#hasMore}},
|
{{^isOAuth}}@Authorization(value = "{{name}}"){{#hasMore}},{{/hasMore}}
|
||||||
{{/hasMore}}{{/authMethods}}
|
{{/isOAuth}}{{/authMethods}} }{{/hasAuthMethods}}, tags={ {{#vendorExtensions.x-tags}}"{{tag}}"{{#hasMore}}, {{/hasMore}}{{/vendorExtensions.x-tags}} })
|
||||||
}{{/hasAuthMethods}}, tags={ {{#vendorExtensions.x-tags}}"{{tag}}"{{#hasMore}}, {{/hasMore}}{{/vendorExtensions.x-tags}} })
|
|
||||||
@ApiResponses(value = { {{#responses}}
|
@ApiResponses(value = { {{#responses}}
|
||||||
@ApiResponse(code = {{{code}}}, message = "{{{message}}}", response = {{{baseType}}}.class{{#returnContainer}}, responseContainer = "{{{returnContainer}}}"{{/returnContainer}}){{#hasMore}},{{/hasMore}}{{/responses}} }){{/useSwaggerAnnotations}}
|
@ApiResponse(code = {{{code}}}, message = "{{{message}}}", response = {{{baseType}}}.class{{#returnContainer}}, responseContainer = "{{{returnContainer}}}"{{/returnContainer}}){{#hasMore}},{{/hasMore}}{{/responses}} }){{/useSwaggerAnnotations}}
|
||||||
{{#returnResponse}}Response{{/returnResponse}}{{^returnResponse}}{{>returnTypeInterface}}{{/returnResponse}} {{nickname}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{#hasMore}},{{/hasMore}}{{/allParams}});
|
{{#returnResponse}}Response{{/returnResponse}}{{^returnResponse}}{{>returnTypeInterface}}{{/returnResponse}} {{nickname}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{#hasMore}},{{/hasMore}}{{/allParams}});
|
||||||
@@ -3,12 +3,11 @@
|
|||||||
@Consumes({ {{#consumes}}"{{{mediaType}}}"{{#hasMore}}, {{/hasMore}}{{/consumes}} }){{/hasConsumes}}{{#hasProduces}}
|
@Consumes({ {{#consumes}}"{{{mediaType}}}"{{#hasMore}}, {{/hasMore}}{{/consumes}} }){{/hasConsumes}}{{#hasProduces}}
|
||||||
@Produces({ {{#produces}}"{{{mediaType}}}"{{#hasMore}}, {{/hasMore}}{{/produces}} }){{/hasProduces}}{{#useSwaggerAnnotations}}
|
@Produces({ {{#produces}}"{{{mediaType}}}"{{#hasMore}}, {{/hasMore}}{{/produces}} }){{/hasProduces}}{{#useSwaggerAnnotations}}
|
||||||
@ApiOperation(value = "{{{summary}}}", notes = "{{{notes}}}", response = {{{returnBaseType}}}.class{{#returnContainer}}, responseContainer = "{{{returnContainer}}}"{{/returnContainer}}{{#hasAuthMethods}}, authorizations = {
|
@ApiOperation(value = "{{{summary}}}", notes = "{{{notes}}}", response = {{{returnBaseType}}}.class{{#returnContainer}}, responseContainer = "{{{returnContainer}}}"{{/returnContainer}}{{#hasAuthMethods}}, authorizations = {
|
||||||
{{#authMethods}}@Authorization(value = "{{name}}"{{#isOAuth}}, scopes = {
|
{{#authMethods}}{{#isOAuth}}@Authorization(value = "{{name}}", scopes = {
|
||||||
{{#scopes}}@AuthorizationScope(scope = "{{scope}}", description = "{{description}}"){{#hasMore}},
|
{{#scopes}}@AuthorizationScope(scope = "{{scope}}", description = "{{description}}"){{#hasMore}},
|
||||||
{{/hasMore}}{{/scopes}}
|
{{/hasMore}}{{/scopes}} }){{#hasMore}},{{/hasMore}}{{/isOAuth}}
|
||||||
}{{/isOAuth}}){{#hasMore}},
|
{{^isOAuth}}@Authorization(value = "{{name}}"){{#hasMore}},{{/hasMore}}
|
||||||
{{/hasMore}}{{/authMethods}}
|
{{/isOAuth}}{{/authMethods}} }{{/hasAuthMethods}}, tags={ {{#vendorExtensions.x-tags}}"{{tag}}"{{#hasMore}}, {{/hasMore}}{{/vendorExtensions.x-tags}} })
|
||||||
}{{/hasAuthMethods}}, tags={ {{#vendorExtensions.x-tags}}"{{tag}}"{{#hasMore}}, {{/hasMore}}{{/vendorExtensions.x-tags}} })
|
|
||||||
@ApiResponses(value = { {{#responses}}
|
@ApiResponses(value = { {{#responses}}
|
||||||
@ApiResponse(code = {{{code}}}, message = "{{{message}}}", response = {{{baseType}}}.class{{#containerType}}, responseContainer = "{{{containerType}}}"{{/containerType}}){{#hasMore}},{{/hasMore}}{{/responses}}
|
@ApiResponse(code = {{{code}}}, message = "{{{message}}}", response = {{{baseType}}}.class{{#containerType}}, responseContainer = "{{{containerType}}}"{{/containerType}}){{#hasMore}},{{/hasMore}}{{/responses}}
|
||||||
}){{/useSwaggerAnnotations}}
|
}){{/useSwaggerAnnotations}}
|
||||||
|
|||||||
@@ -104,12 +104,11 @@ public interface {{classname}} {
|
|||||||
@ApiVirtual
|
@ApiVirtual
|
||||||
{{/virtualService}}
|
{{/virtualService}}
|
||||||
@ApiOperation(value = "{{{summary}}}", nickname = "{{{operationId}}}", notes = "{{{notes}}}"{{#returnBaseType}}, response = {{{returnBaseType}}}.class{{/returnBaseType}}{{#returnContainer}}, responseContainer = "{{{returnContainer}}}"{{/returnContainer}}{{#hasAuthMethods}}, authorizations = {
|
@ApiOperation(value = "{{{summary}}}", nickname = "{{{operationId}}}", notes = "{{{notes}}}"{{#returnBaseType}}, response = {{{returnBaseType}}}.class{{/returnBaseType}}{{#returnContainer}}, responseContainer = "{{{returnContainer}}}"{{/returnContainer}}{{#hasAuthMethods}}, authorizations = {
|
||||||
{{#authMethods}}@Authorization(value = "{{name}}"{{#isOAuth}}, scopes = {
|
{{#authMethods}}{{#isOAuth}}@Authorization(value = "{{name}}", scopes = {
|
||||||
{{#scopes}}@AuthorizationScope(scope = "{{scope}}", description = "{{description}}"){{#hasMore}},
|
{{#scopes}}@AuthorizationScope(scope = "{{scope}}", description = "{{description}}"){{#hasMore}},
|
||||||
{{/hasMore}}{{/scopes}}
|
{{/hasMore}}{{/scopes}} }){{#hasMore}},{{/hasMore}}{{/isOAuth}}
|
||||||
}{{/isOAuth}}){{#hasMore}},
|
{{^isOAuth}}@Authorization(value = "{{name}}"){{#hasMore}},{{/hasMore}}
|
||||||
{{/hasMore}}{{/authMethods}}
|
{{/isOAuth}}{{/authMethods}} }{{/hasAuthMethods}}, tags={ {{#vendorExtensions.x-tags}}"{{tag}}",{{/vendorExtensions.x-tags}} })
|
||||||
}{{/hasAuthMethods}}, tags={ {{#vendorExtensions.x-tags}}"{{tag}}",{{/vendorExtensions.x-tags}} })
|
|
||||||
@ApiResponses(value = { {{#responses}}
|
@ApiResponses(value = { {{#responses}}
|
||||||
@ApiResponse(code = {{{code}}}, message = "{{{message}}}"{{#baseType}}, response = {{{baseType}}}.class{{/baseType}}{{#containerType}}, responseContainer = "{{{containerType}}}"{{/containerType}}){{#hasMore}},{{/hasMore}}{{/responses}} })
|
@ApiResponse(code = {{{code}}}, message = "{{{message}}}"{{#baseType}}, response = {{{baseType}}}.class{{/baseType}}{{#containerType}}, responseContainer = "{{{containerType}}}"{{/containerType}}){{#hasMore}},{{/hasMore}}{{/responses}} })
|
||||||
{{#implicitHeaders}}
|
{{#implicitHeaders}}
|
||||||
|
|||||||
@@ -43,12 +43,11 @@ public interface {{classname}} {
|
|||||||
{{#operation}}
|
{{#operation}}
|
||||||
|
|
||||||
@ApiOperation(value = "{{{summary}}}", notes = "{{{notes}}}", response = {{{returnType}}}.class{{#returnContainer}}, responseContainer = "{{{returnContainer}}}"{{/returnContainer}}{{#hasAuthMethods}}, authorizations = {
|
@ApiOperation(value = "{{{summary}}}", notes = "{{{notes}}}", response = {{{returnType}}}.class{{#returnContainer}}, responseContainer = "{{{returnContainer}}}"{{/returnContainer}}{{#hasAuthMethods}}, authorizations = {
|
||||||
{{#authMethods}}@Authorization(value = "{{name}}"{{#isOAuth}}, scopes = {
|
{{#authMethods}}{{#isOAuth}}@Authorization(value = "{{name}}", scopes = {
|
||||||
{{#scopes}}@AuthorizationScope(scope = "{{scope}}", description = "{{description}}"){{#hasMore}},
|
{{#scopes}}@AuthorizationScope(scope = "{{scope}}", description = "{{description}}"){{#hasMore}},
|
||||||
{{/hasMore}}{{/scopes}}
|
{{/hasMore}}{{/scopes}} }){{#hasMore}},{{/hasMore}}{{/isOAuth}}
|
||||||
}{{/isOAuth}}){{#hasMore}},
|
{{^isOAuth}}@Authorization(value = "{{name}}"){{#hasMore}},{{/hasMore}}
|
||||||
{{/hasMore}}{{/authMethods}}
|
{{/isOAuth}}{{/authMethods}} }{{/hasAuthMethods}}, tags={ {{#vendorExtensions.x-tags}}"{{tag}}",{{/vendorExtensions.x-tags}} })
|
||||||
}{{/hasAuthMethods}}, tags={ {{#vendorExtensions.x-tags}}"{{tag}}",{{/vendorExtensions.x-tags}} })
|
|
||||||
@ApiResponses(value = { {{#responses}}
|
@ApiResponses(value = { {{#responses}}
|
||||||
@ApiResponse(code = {{{code}}}, message = "{{{message}}}"{{#baseType}}, response = {{{baseType}}}.class{{/baseType}}{{#containerType}}, responseContainer = "{{{containerType}}}"{{/containerType}}){{#hasMore}},{{/hasMore}}{{/responses}} })
|
@ApiResponse(code = {{{code}}}, message = "{{{message}}}"{{#baseType}}, response = {{{baseType}}}.class{{/baseType}}{{#containerType}}, responseContainer = "{{{containerType}}}"{{/containerType}}){{#hasMore}},{{/hasMore}}{{/responses}} })
|
||||||
{{#implicitHeaders}}
|
{{#implicitHeaders}}
|
||||||
|
|||||||
@@ -17,20 +17,9 @@
|
|||||||
|
|
||||||
package org.openapitools.codegen.java;
|
package org.openapitools.codegen.java;
|
||||||
|
|
||||||
import com.google.common.collect.ImmutableMap;
|
import static org.openapitools.codegen.TestUtils.validateJavaSourceFiles;
|
||||||
|
import static org.testng.Assert.assertEquals;
|
||||||
import io.swagger.v3.oas.models.OpenAPI;
|
import static org.testng.Assert.assertTrue;
|
||||||
import io.swagger.v3.oas.models.Operation;
|
|
||||||
import io.swagger.v3.oas.models.media.*;
|
|
||||||
import io.swagger.v3.oas.models.parameters.RequestBody;
|
|
||||||
import io.swagger.v3.oas.models.responses.ApiResponse;
|
|
||||||
import io.swagger.v3.parser.util.SchemaTypeUtil;
|
|
||||||
import org.openapitools.codegen.*;
|
|
||||||
import org.openapitools.codegen.config.CodegenConfigurator;
|
|
||||||
import org.openapitools.codegen.languages.AbstractJavaCodegen;
|
|
||||||
import org.openapitools.codegen.languages.JavaClientCodegen;
|
|
||||||
import org.testng.Assert;
|
|
||||||
import org.testng.annotations.Test;
|
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@@ -38,14 +27,51 @@ import java.nio.charset.StandardCharsets;
|
|||||||
import java.nio.file.Files;
|
import java.nio.file.Files;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import java.nio.file.Paths;
|
import java.nio.file.Paths;
|
||||||
import java.util.*;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Collection;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Locale;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Optional;
|
||||||
|
import java.util.function.Predicate;
|
||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import static org.openapitools.codegen.TestUtils.validateJavaSourceFiles;
|
import org.openapitools.codegen.ClientOptInput;
|
||||||
import static org.testng.Assert.assertEquals;
|
import org.openapitools.codegen.CodegenConstants;
|
||||||
import static org.testng.Assert.assertTrue;
|
import org.openapitools.codegen.CodegenModel;
|
||||||
|
import org.openapitools.codegen.CodegenOperation;
|
||||||
|
import org.openapitools.codegen.CodegenParameter;
|
||||||
|
import org.openapitools.codegen.CodegenProperty;
|
||||||
|
import org.openapitools.codegen.CodegenResponse;
|
||||||
|
import org.openapitools.codegen.CodegenSecurity;
|
||||||
|
import org.openapitools.codegen.DefaultGenerator;
|
||||||
|
import org.openapitools.codegen.TestUtils;
|
||||||
|
import org.openapitools.codegen.config.CodegenConfigurator;
|
||||||
|
import org.openapitools.codegen.languages.AbstractJavaCodegen;
|
||||||
|
import org.openapitools.codegen.languages.JavaClientCodegen;
|
||||||
|
import org.testng.Assert;
|
||||||
|
import org.testng.annotations.Test;
|
||||||
|
|
||||||
|
import com.google.common.collect.ImmutableMap;
|
||||||
|
import io.swagger.v3.oas.models.OpenAPI;
|
||||||
|
import io.swagger.v3.oas.models.Operation;
|
||||||
|
import io.swagger.v3.oas.models.media.ArraySchema;
|
||||||
|
import io.swagger.v3.oas.models.media.ComposedSchema;
|
||||||
|
import io.swagger.v3.oas.models.media.Content;
|
||||||
|
import io.swagger.v3.oas.models.media.IntegerSchema;
|
||||||
|
import io.swagger.v3.oas.models.media.MediaType;
|
||||||
|
import io.swagger.v3.oas.models.media.ObjectSchema;
|
||||||
|
import io.swagger.v3.oas.models.media.Schema;
|
||||||
|
import io.swagger.v3.oas.models.media.StringSchema;
|
||||||
|
import io.swagger.v3.oas.models.parameters.RequestBody;
|
||||||
|
import io.swagger.v3.oas.models.responses.ApiResponse;
|
||||||
|
import io.swagger.v3.parser.util.SchemaTypeUtil;
|
||||||
|
|
||||||
public class JavaClientCodegenTest {
|
public class JavaClientCodegenTest {
|
||||||
|
|
||||||
@@ -1003,4 +1029,54 @@ public class JavaClientCodegenTest {
|
|||||||
"formParams.add(\"file\", file);"
|
"formParams.add(\"file\", file);"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testNotDuplicateOauth2FlowsScopes() {
|
||||||
|
final OpenAPI openAPI = TestUtils.parseFlattenSpec("src/test/resources/3_0/issue_7614.yaml");
|
||||||
|
|
||||||
|
final ClientOptInput clientOptInput = new ClientOptInput()
|
||||||
|
.openAPI(openAPI)
|
||||||
|
.config(new JavaClientCodegen());
|
||||||
|
|
||||||
|
final DefaultGenerator defaultGenerator = new DefaultGenerator();
|
||||||
|
defaultGenerator.opts(clientOptInput);
|
||||||
|
|
||||||
|
final Map<String, List<CodegenOperation>> paths = defaultGenerator.processPaths(openAPI.getPaths());
|
||||||
|
final List<CodegenOperation> codegenOperations = paths.values().stream().flatMap(Collection::stream).collect(Collectors.toList());
|
||||||
|
|
||||||
|
final CodegenOperation getWithBasicAuthAndOauth = getByOperationId(codegenOperations, "getWithBasicAuthAndOauth");
|
||||||
|
assertEquals(getWithBasicAuthAndOauth.authMethods.size(), 3);
|
||||||
|
assertEquals(getWithBasicAuthAndOauth.authMethods.get(0).name, "basic_auth");
|
||||||
|
final Map<String, Object> passwordFlowScope = getWithBasicAuthAndOauth.authMethods.get(1).scopes.get(0);
|
||||||
|
assertEquals(passwordFlowScope.get("scope"), "something:create");
|
||||||
|
assertEquals(passwordFlowScope.get("description"), "create from password flow");
|
||||||
|
final Map<String, Object> clientCredentialsFlow = getWithBasicAuthAndOauth.authMethods.get(2).scopes.get(0);
|
||||||
|
assertEquals(clientCredentialsFlow.get("scope"), "something:create");
|
||||||
|
assertEquals(clientCredentialsFlow.get("description"), "create from client credentials flow");
|
||||||
|
|
||||||
|
final CodegenOperation getWithOauthAuth = getByOperationId(codegenOperations, "getWithOauthAuth");
|
||||||
|
assertEquals(getWithOauthAuth.authMethods.size(), 2);
|
||||||
|
final Map<String, Object> passwordFlow = getWithOauthAuth.authMethods.get(0).scopes.get(0);
|
||||||
|
assertEquals(passwordFlow.get("scope"), "something:create");
|
||||||
|
assertEquals(passwordFlow.get("description"), "create from password flow");
|
||||||
|
|
||||||
|
final Map<String, Object> clientCredentialsCreateFlow = getWithOauthAuth.authMethods.get(1).scopes.get(0);
|
||||||
|
assertEquals(clientCredentialsCreateFlow.get("scope"), "something:create");
|
||||||
|
assertEquals(clientCredentialsCreateFlow.get("description"), "create from client credentials flow");
|
||||||
|
|
||||||
|
final Map<String, Object> clientCredentialsProcessFlow = getWithOauthAuth.authMethods.get(1).scopes.get(1);
|
||||||
|
assertEquals(clientCredentialsProcessFlow.get("scope"), "something:process");
|
||||||
|
assertEquals(clientCredentialsProcessFlow.get("description"), "process from client credentials flow");
|
||||||
|
}
|
||||||
|
|
||||||
|
private CodegenOperation getByOperationId(List<CodegenOperation> codegenOperations, String operationId) {
|
||||||
|
return getByCriteria(codegenOperations, (co) -> co.operationId.equals(operationId))
|
||||||
|
.orElseThrow(() -> new IllegalStateException(String.format(Locale.ROOT, "Operation with id [%s] does not exist", operationId)));
|
||||||
|
}
|
||||||
|
|
||||||
|
private Optional<CodegenOperation> getByCriteria(List<CodegenOperation> codegenOperations, Predicate<CodegenOperation> filter){
|
||||||
|
return codegenOperations.stream()
|
||||||
|
.filter(filter)
|
||||||
|
.findFirst();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ paths:
|
|||||||
200:
|
200:
|
||||||
description: State changed
|
description: State changed
|
||||||
security:
|
security:
|
||||||
- oauht_auth:
|
- oauth_auth:
|
||||||
- import:process
|
- import:process
|
||||||
components:
|
components:
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
|
|||||||
@@ -0,0 +1,62 @@
|
|||||||
|
openapi: 3.0.0
|
||||||
|
info:
|
||||||
|
title: test api
|
||||||
|
version: 0.0.1
|
||||||
|
tags:
|
||||||
|
- name: examples
|
||||||
|
description: examples tag
|
||||||
|
paths:
|
||||||
|
/examples/onlybasicauth:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- examples
|
||||||
|
summary: Get with basic auth
|
||||||
|
operationId: getWithBasicAuth
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: some result
|
||||||
|
security:
|
||||||
|
- basic_auth: []
|
||||||
|
/examples/basicauthwithoauth:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- examples
|
||||||
|
summary: get with basic auth and oauth
|
||||||
|
operationId: getWithBasicAuthAndOauth
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: some result
|
||||||
|
security:
|
||||||
|
- basic_auth: []
|
||||||
|
- oauth_auth:
|
||||||
|
- something:create
|
||||||
|
/examples/onlyoauthauth:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- examples
|
||||||
|
summary: get with oauth
|
||||||
|
operationId: getWithOauthAuth
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: some result
|
||||||
|
security:
|
||||||
|
- oauth_auth:
|
||||||
|
- something:create
|
||||||
|
- something:process
|
||||||
|
components:
|
||||||
|
securitySchemes:
|
||||||
|
oauth_auth:
|
||||||
|
type: oauth2
|
||||||
|
flows:
|
||||||
|
password:
|
||||||
|
tokenUrl: "../auth/realms/master/protocol/openid-connect/token"
|
||||||
|
scopes:
|
||||||
|
something:create: create from password flow
|
||||||
|
clientCredentials:
|
||||||
|
tokenUrl: "../auth/realms/master/protocol/openid-connect/token"
|
||||||
|
scopes:
|
||||||
|
something:create: create from client credentials flow
|
||||||
|
something:process: process from client credentials flow
|
||||||
|
basic_auth:
|
||||||
|
type: http
|
||||||
|
scheme: basic
|
||||||
@@ -39,8 +39,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input") })
|
@ApiResponse(code = 405, message = "Invalid input") })
|
||||||
@@ -61,8 +60,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 400, message = "Invalid pet value") })
|
@ApiResponse(code = 400, message = "Invalid pet value") })
|
||||||
@@ -83,8 +81,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -108,8 +105,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -131,6 +127,7 @@ public interface PetApi {
|
|||||||
* or Pet not found (status code 404)
|
* or Pet not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -155,8 +152,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 400, message = "Invalid ID supplied"),
|
@ApiResponse(code = 400, message = "Invalid ID supplied"),
|
||||||
@@ -180,8 +176,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input") })
|
@ApiResponse(code = 405, message = "Invalid input") })
|
||||||
@@ -203,8 +198,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ public interface StoreApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "store", })
|
}, tags={ "store", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -38,8 +38,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input") })
|
@ApiResponse(code = 405, message = "Invalid input") })
|
||||||
@@ -60,8 +59,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 400, message = "Invalid pet value") })
|
@ApiResponse(code = 400, message = "Invalid pet value") })
|
||||||
@@ -82,8 +80,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -107,8 +104,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -130,6 +126,7 @@ public interface PetApi {
|
|||||||
* or Pet not found (status code 404)
|
* or Pet not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -154,8 +151,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 400, message = "Invalid ID supplied"),
|
@ApiResponse(code = 400, message = "Invalid ID supplied"),
|
||||||
@@ -179,8 +175,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input") })
|
@ApiResponse(code = 405, message = "Invalid input") })
|
||||||
@@ -202,8 +197,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ public interface StoreApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "store", })
|
}, tags={ "store", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -38,8 +38,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input") })
|
@ApiResponse(code = 405, message = "Invalid input") })
|
||||||
@@ -60,8 +59,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 400, message = "Invalid pet value") })
|
@ApiResponse(code = 400, message = "Invalid pet value") })
|
||||||
@@ -82,8 +80,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -107,8 +104,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -130,6 +126,7 @@ public interface PetApi {
|
|||||||
* or Pet not found (status code 404)
|
* or Pet not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -154,8 +151,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 400, message = "Invalid ID supplied"),
|
@ApiResponse(code = 400, message = "Invalid ID supplied"),
|
||||||
@@ -179,8 +175,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input") })
|
@ApiResponse(code = 405, message = "Invalid input") })
|
||||||
@@ -202,8 +197,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ public interface StoreApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "store", })
|
}, tags={ "store", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -38,8 +38,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input") })
|
@ApiResponse(code = 405, message = "Invalid input") })
|
||||||
@@ -60,8 +59,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 400, message = "Invalid pet value") })
|
@ApiResponse(code = 400, message = "Invalid pet value") })
|
||||||
@@ -82,8 +80,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -107,8 +104,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -130,6 +126,7 @@ public interface PetApi {
|
|||||||
* or Pet not found (status code 404)
|
* or Pet not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -154,8 +151,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 400, message = "Invalid ID supplied"),
|
@ApiResponse(code = 400, message = "Invalid ID supplied"),
|
||||||
@@ -179,8 +175,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input") })
|
@ApiResponse(code = 405, message = "Invalid input") })
|
||||||
@@ -202,8 +197,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ public interface StoreApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "store", })
|
}, tags={ "store", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -42,8 +42,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input") })
|
@ApiResponse(code = 405, message = "Invalid input") })
|
||||||
@@ -67,8 +66,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 400, message = "Invalid pet value") })
|
@ApiResponse(code = 400, message = "Invalid pet value") })
|
||||||
@@ -92,8 +90,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -134,8 +131,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -174,6 +170,7 @@ public interface PetApi {
|
|||||||
* or Pet not found (status code 404)
|
* or Pet not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -215,8 +212,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 400, message = "Invalid ID supplied"),
|
@ApiResponse(code = 400, message = "Invalid ID supplied"),
|
||||||
@@ -243,8 +239,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input") })
|
@ApiResponse(code = 405, message = "Invalid input") })
|
||||||
@@ -269,8 +264,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ public interface StoreApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "store", })
|
}, tags={ "store", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -44,8 +44,7 @@ public class PetApi {
|
|||||||
@ApiOperation(value = "Add a new pet to the store", notes = "", response = Void.class, authorizations = {
|
@ApiOperation(value = "Add a new pet to the store", notes = "", response = Void.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input", response = Void.class) })
|
@ApiResponse(code = 405, message = "Invalid input", response = Void.class) })
|
||||||
@@ -60,8 +59,7 @@ public class PetApi {
|
|||||||
@ApiOperation(value = "Deletes a pet", notes = "", response = Void.class, authorizations = {
|
@ApiOperation(value = "Deletes a pet", notes = "", response = Void.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 400, message = "Invalid pet value", response = Void.class) })
|
@ApiResponse(code = 400, message = "Invalid pet value", response = Void.class) })
|
||||||
@@ -76,8 +74,7 @@ public class PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by status", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by status", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -93,8 +90,7 @@ public class PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by tags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by tags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -108,6 +104,7 @@ public class PetApi {
|
|||||||
|
|
||||||
@Produces({ "application/xml", "application/json" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
@ApiOperation(value = "Find pet by ID", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
@ApiOperation(value = "Find pet by ID", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -125,8 +122,7 @@ public class PetApi {
|
|||||||
@ApiOperation(value = "Update an existing pet", notes = "", response = Void.class, authorizations = {
|
@ApiOperation(value = "Update an existing pet", notes = "", response = Void.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class),
|
@ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class),
|
||||||
@@ -143,8 +139,7 @@ public class PetApi {
|
|||||||
@ApiOperation(value = "Updates a pet in the store with form data", notes = "", response = Void.class, authorizations = {
|
@ApiOperation(value = "Updates a pet in the store with form data", notes = "", response = Void.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input", response = Void.class) })
|
@ApiResponse(code = 405, message = "Invalid input", response = Void.class) })
|
||||||
@@ -159,8 +154,7 @@ public class PetApi {
|
|||||||
@ApiOperation(value = "uploads an image", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet" })
|
}, tags={ "pet" })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ public class StoreApi {
|
|||||||
|
|
||||||
@Produces({ "application/json" })
|
@Produces({ "application/json" })
|
||||||
@ApiOperation(value = "Returns pet inventories by status", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
@ApiOperation(value = "Returns pet inventories by status", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "store", })
|
}, tags={ "store", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -94,6 +94,7 @@ import javax.validation.Valid;
|
|||||||
@POST
|
@POST
|
||||||
@Consumes({ "application/x-www-form-urlencoded" })
|
@Consumes({ "application/x-www-form-urlencoded" })
|
||||||
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "http_basic_test")
|
@Authorization(value = "http_basic_test")
|
||||||
}, tags={ "fake", })
|
}, tags={ "fake", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -145,8 +146,7 @@ import javax.validation.Valid;
|
|||||||
@ApiOperation(value = "uploads an image (required)", notes = "", authorizations = {
|
@ApiOperation(value = "uploads an image (required)", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet" })
|
}, tags={ "pet" })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ import javax.validation.Valid;
|
|||||||
@Consumes({ "application/json" })
|
@Consumes({ "application/json" })
|
||||||
@Produces({ "application/json" })
|
@Produces({ "application/json" })
|
||||||
@ApiOperation(value = "To test class name in snake case", notes = "To test class name in snake case", authorizations = {
|
@ApiOperation(value = "To test class name in snake case", notes = "To test class name in snake case", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key_query")
|
@Authorization(value = "api_key_query")
|
||||||
}, tags={ "fake_classname_tags 123#$%^" })
|
}, tags={ "fake_classname_tags 123#$%^" })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -25,8 +25,7 @@ import javax.validation.Valid;
|
|||||||
@ApiOperation(value = "Add a new pet to the store", notes = "", authorizations = {
|
@ApiOperation(value = "Add a new pet to the store", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Void.class),
|
@ApiResponse(code = 200, message = "successful operation", response = Void.class),
|
||||||
@@ -38,8 +37,7 @@ import javax.validation.Valid;
|
|||||||
@ApiOperation(value = "Deletes a pet", notes = "", authorizations = {
|
@ApiOperation(value = "Deletes a pet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Void.class),
|
@ApiResponse(code = 200, message = "successful operation", response = Void.class),
|
||||||
@@ -52,8 +50,7 @@ import javax.validation.Valid;
|
|||||||
@ApiOperation(value = "Finds Pets by status", notes = "Multiple status values can be provided with comma separated strings", authorizations = {
|
@ApiOperation(value = "Finds Pets by status", notes = "Multiple status values can be provided with comma separated strings", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -66,8 +63,7 @@ import javax.validation.Valid;
|
|||||||
@ApiOperation(value = "Finds Pets by tags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", authorizations = {
|
@ApiOperation(value = "Finds Pets by tags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"),
|
||||||
@@ -78,6 +74,7 @@ import javax.validation.Valid;
|
|||||||
@Path("/{petId}")
|
@Path("/{petId}")
|
||||||
@Produces({ "application/xml", "application/json" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
@ApiOperation(value = "Find pet by ID", notes = "Returns a single pet", authorizations = {
|
@ApiOperation(value = "Find pet by ID", notes = "Returns a single pet", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -91,8 +88,7 @@ import javax.validation.Valid;
|
|||||||
@ApiOperation(value = "Update an existing pet", notes = "", authorizations = {
|
@ApiOperation(value = "Update an existing pet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Void.class),
|
@ApiResponse(code = 200, message = "successful operation", response = Void.class),
|
||||||
@@ -107,8 +103,7 @@ import javax.validation.Valid;
|
|||||||
@ApiOperation(value = "Updates a pet in the store with form data", notes = "", authorizations = {
|
@ApiOperation(value = "Updates a pet in the store with form data", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input", response = Void.class) })
|
@ApiResponse(code = 405, message = "Invalid input", response = Void.class) })
|
||||||
@@ -121,8 +116,7 @@ import javax.validation.Valid;
|
|||||||
@ApiOperation(value = "uploads an image", notes = "", authorizations = {
|
@ApiOperation(value = "uploads an image", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet" })
|
}, tags={ "pet" })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ import javax.validation.Valid;
|
|||||||
@Path("/inventory")
|
@Path("/inventory")
|
||||||
@Produces({ "application/json" })
|
@Produces({ "application/json" })
|
||||||
@ApiOperation(value = "Returns pet inventories by status", notes = "Returns a map of status codes to quantities", authorizations = {
|
@ApiOperation(value = "Returns pet inventories by status", notes = "Returns a map of status codes to quantities", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "store", })
|
}, tags={ "store", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -118,6 +118,7 @@ import javax.validation.Valid;
|
|||||||
@POST
|
@POST
|
||||||
@Consumes({ "application/x-www-form-urlencoded" })
|
@Consumes({ "application/x-www-form-urlencoded" })
|
||||||
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", response = Void.class, authorizations = {
|
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", response = Void.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "http_basic_test")
|
@Authorization(value = "http_basic_test")
|
||||||
}, tags={ "fake", })
|
}, tags={ "fake", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -187,8 +188,7 @@ import javax.validation.Valid;
|
|||||||
@ApiOperation(value = "uploads an image (required)", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image (required)", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet" })
|
}, tags={ "pet" })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class)
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class)
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ import javax.validation.Valid;
|
|||||||
@Consumes({ "application/json" })
|
@Consumes({ "application/json" })
|
||||||
@Produces({ "application/json" })
|
@Produces({ "application/json" })
|
||||||
@ApiOperation(value = "To test class name in snake case", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
@ApiOperation(value = "To test class name in snake case", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key_query")
|
@Authorization(value = "api_key_query")
|
||||||
}, tags={ "fake_classname_tags 123#$%^" })
|
}, tags={ "fake_classname_tags 123#$%^" })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -25,8 +25,7 @@ import javax.validation.Valid;
|
|||||||
@ApiOperation(value = "Add a new pet to the store", notes = "", response = Void.class, authorizations = {
|
@ApiOperation(value = "Add a new pet to the store", notes = "", response = Void.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Void.class),
|
@ApiResponse(code = 200, message = "successful operation", response = Void.class),
|
||||||
@@ -41,8 +40,7 @@ import javax.validation.Valid;
|
|||||||
@ApiOperation(value = "Deletes a pet", notes = "", response = Void.class, authorizations = {
|
@ApiOperation(value = "Deletes a pet", notes = "", response = Void.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Void.class),
|
@ApiResponse(code = 200, message = "successful operation", response = Void.class),
|
||||||
@@ -58,8 +56,7 @@ import javax.validation.Valid;
|
|||||||
@ApiOperation(value = "Finds Pets by status", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by status", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -75,8 +72,7 @@ import javax.validation.Valid;
|
|||||||
@ApiOperation(value = "Finds Pets by tags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = {
|
@ApiOperation(value = "Finds Pets by tags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"),
|
||||||
@@ -90,6 +86,7 @@ import javax.validation.Valid;
|
|||||||
@Path("/{petId}")
|
@Path("/{petId}")
|
||||||
@Produces({ "application/xml", "application/json" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
@ApiOperation(value = "Find pet by ID", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
@ApiOperation(value = "Find pet by ID", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -106,8 +103,7 @@ import javax.validation.Valid;
|
|||||||
@ApiOperation(value = "Update an existing pet", notes = "", response = Void.class, authorizations = {
|
@ApiOperation(value = "Update an existing pet", notes = "", response = Void.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Void.class),
|
@ApiResponse(code = 200, message = "successful operation", response = Void.class),
|
||||||
@@ -125,8 +121,7 @@ import javax.validation.Valid;
|
|||||||
@ApiOperation(value = "Updates a pet in the store with form data", notes = "", response = Void.class, authorizations = {
|
@ApiOperation(value = "Updates a pet in the store with form data", notes = "", response = Void.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input", response = Void.class)
|
@ApiResponse(code = 405, message = "Invalid input", response = Void.class)
|
||||||
@@ -142,8 +137,7 @@ import javax.validation.Valid;
|
|||||||
@ApiOperation(value = "uploads an image", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet" })
|
}, tags={ "pet" })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class)
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class)
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ import javax.validation.Valid;
|
|||||||
@Path("/inventory")
|
@Path("/inventory")
|
||||||
@Produces({ "application/json" })
|
@Produces({ "application/json" })
|
||||||
@ApiOperation(value = "Returns pet inventories by status", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
@ApiOperation(value = "Returns pet inventories by status", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "store", })
|
}, tags={ "store", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -247,6 +247,7 @@ public interface FakeApi {
|
|||||||
* or User not found (status code 404)
|
* or User not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "http_basic_test")
|
@Authorization(value = "http_basic_test")
|
||||||
}, tags={ "fake", })
|
}, tags={ "fake", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -388,8 +389,7 @@ public interface FakeApi {
|
|||||||
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ public interface FakeClassnameTestApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key_query")
|
@Authorization(value = "api_key_query")
|
||||||
}, tags={ "fake_classname_tags 123#$%^", })
|
}, tags={ "fake_classname_tags 123#$%^", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -45,8 +45,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -72,8 +71,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -98,8 +96,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -142,8 +139,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = {
|
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"),
|
||||||
@@ -184,6 +180,7 @@ public interface PetApi {
|
|||||||
* or Pet not found (status code 404)
|
* or Pet not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -228,8 +225,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -257,8 +253,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input") })
|
@ApiResponse(code = 405, message = "Invalid input") })
|
||||||
@@ -283,8 +278,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ public interface StoreApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "store", })
|
}, tags={ "store", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -242,6 +242,7 @@ public interface FakeApi {
|
|||||||
* or User not found (status code 404)
|
* or User not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "http_basic_test")
|
@Authorization(value = "http_basic_test")
|
||||||
}, tags={ "fake", })
|
}, tags={ "fake", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -383,8 +384,7 @@ public interface FakeApi {
|
|||||||
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ public interface FakeClassnameTestApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key_query")
|
@Authorization(value = "api_key_query")
|
||||||
}, tags={ "fake_classname_tags 123#$%^", })
|
}, tags={ "fake_classname_tags 123#$%^", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -44,8 +44,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -71,8 +70,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -97,8 +95,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -139,8 +136,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = {
|
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"),
|
||||||
@@ -179,6 +175,7 @@ public interface PetApi {
|
|||||||
* or Pet not found (status code 404)
|
* or Pet not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -221,8 +218,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -250,8 +246,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input") })
|
@ApiResponse(code = 405, message = "Invalid input") })
|
||||||
@@ -276,8 +271,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ public interface StoreApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "store", })
|
}, tags={ "store", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -242,6 +242,7 @@ public interface FakeApi {
|
|||||||
* or User not found (status code 404)
|
* or User not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "http_basic_test")
|
@Authorization(value = "http_basic_test")
|
||||||
}, tags={ "fake", })
|
}, tags={ "fake", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -383,8 +384,7 @@ public interface FakeApi {
|
|||||||
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ public interface FakeClassnameTestApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key_query")
|
@Authorization(value = "api_key_query")
|
||||||
}, tags={ "fake_classname_tags 123#$%^", })
|
}, tags={ "fake_classname_tags 123#$%^", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -44,8 +44,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -71,8 +70,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -97,8 +95,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -139,8 +136,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = {
|
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"),
|
||||||
@@ -179,6 +175,7 @@ public interface PetApi {
|
|||||||
* or Pet not found (status code 404)
|
* or Pet not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -221,8 +218,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -250,8 +246,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input") })
|
@ApiResponse(code = 405, message = "Invalid input") })
|
||||||
@@ -276,8 +271,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ public interface StoreApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "store", })
|
}, tags={ "store", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -242,6 +242,7 @@ public interface FakeApi {
|
|||||||
* or User not found (status code 404)
|
* or User not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", authorizations = {
|
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "http_basic_test")
|
@Authorization(value = "http_basic_test")
|
||||||
}, tags={ "fake", })
|
}, tags={ "fake", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -383,8 +384,7 @@ public interface FakeApi {
|
|||||||
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ public interface FakeClassnameTestApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key_query")
|
@Authorization(value = "api_key_query")
|
||||||
}, tags={ "fake_classname_tags 123#$%^", })
|
}, tags={ "fake_classname_tags 123#$%^", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -43,8 +43,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -70,8 +69,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -96,8 +94,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -138,8 +135,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -178,6 +174,7 @@ public interface PetApi {
|
|||||||
* or Pet not found (status code 404)
|
* or Pet not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -220,8 +217,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -249,8 +245,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input") })
|
@ApiResponse(code = 405, message = "Invalid input") })
|
||||||
@@ -275,8 +270,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ public interface StoreApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "store", })
|
}, tags={ "store", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -242,6 +242,7 @@ public interface FakeApi {
|
|||||||
* or User not found (status code 404)
|
* or User not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "http_basic_test")
|
@Authorization(value = "http_basic_test")
|
||||||
}, tags={ "fake", })
|
}, tags={ "fake", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -383,8 +384,7 @@ public interface FakeApi {
|
|||||||
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ public interface FakeClassnameTestApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key_query")
|
@Authorization(value = "api_key_query")
|
||||||
}, tags={ "fake_classname_tags 123#$%^", })
|
}, tags={ "fake_classname_tags 123#$%^", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -44,8 +44,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -71,8 +70,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -97,8 +95,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -139,8 +136,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = {
|
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"),
|
||||||
@@ -179,6 +175,7 @@ public interface PetApi {
|
|||||||
* or Pet not found (status code 404)
|
* or Pet not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -221,8 +218,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -250,8 +246,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input") })
|
@ApiResponse(code = 405, message = "Invalid input") })
|
||||||
@@ -276,8 +271,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ public interface StoreApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "store", })
|
}, tags={ "store", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -192,6 +192,7 @@ public interface FakeApi {
|
|||||||
* or User not found (status code 404)
|
* or User not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "http_basic_test")
|
@Authorization(value = "http_basic_test")
|
||||||
}, tags={ "fake", })
|
}, tags={ "fake", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -315,8 +316,7 @@ public interface FakeApi {
|
|||||||
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ public interface FakeClassnameTestApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key_query")
|
@Authorization(value = "api_key_query")
|
||||||
}, tags={ "fake_classname_tags 123#$%^", })
|
}, tags={ "fake_classname_tags 123#$%^", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -36,8 +36,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -60,8 +59,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -83,8 +81,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -108,8 +105,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = {
|
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"),
|
||||||
@@ -131,6 +127,7 @@ public interface PetApi {
|
|||||||
* or Pet not found (status code 404)
|
* or Pet not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -156,8 +153,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -182,8 +178,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input") })
|
@ApiResponse(code = 405, message = "Invalid input") })
|
||||||
@@ -205,8 +200,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ public interface StoreApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "store", })
|
}, tags={ "store", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -242,6 +242,7 @@ public interface FakeApi {
|
|||||||
* or User not found (status code 404)
|
* or User not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "http_basic_test")
|
@Authorization(value = "http_basic_test")
|
||||||
}, tags={ "fake", })
|
}, tags={ "fake", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -383,8 +384,7 @@ public interface FakeApi {
|
|||||||
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ public interface FakeClassnameTestApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key_query")
|
@Authorization(value = "api_key_query")
|
||||||
}, tags={ "fake_classname_tags 123#$%^", })
|
}, tags={ "fake_classname_tags 123#$%^", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -44,8 +44,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -71,8 +70,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -97,8 +95,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -139,8 +136,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = {
|
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"),
|
||||||
@@ -179,6 +175,7 @@ public interface PetApi {
|
|||||||
* or Pet not found (status code 404)
|
* or Pet not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -221,8 +218,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -250,8 +246,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input") })
|
@ApiResponse(code = 405, message = "Invalid input") })
|
||||||
@@ -276,8 +271,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ public interface StoreApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "store", })
|
}, tags={ "store", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -212,6 +212,7 @@ public interface FakeApi {
|
|||||||
* or User not found (status code 404)
|
* or User not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "http_basic_test")
|
@Authorization(value = "http_basic_test")
|
||||||
}, tags={ "fake", })
|
}, tags={ "fake", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -347,8 +348,7 @@ public interface FakeApi {
|
|||||||
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ public interface FakeClassnameTestApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key_query")
|
@Authorization(value = "api_key_query")
|
||||||
}, tags={ "fake_classname_tags 123#$%^", })
|
}, tags={ "fake_classname_tags 123#$%^", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -40,8 +40,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -66,8 +65,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -91,8 +89,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -118,8 +115,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = {
|
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"),
|
||||||
@@ -143,6 +139,7 @@ public interface PetApi {
|
|||||||
* or Pet not found (status code 404)
|
* or Pet not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -170,8 +167,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -198,8 +194,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input") })
|
@ApiResponse(code = 405, message = "Invalid input") })
|
||||||
@@ -223,8 +218,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ public interface StoreApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "store", })
|
}, tags={ "store", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -212,6 +212,7 @@ public interface FakeApi {
|
|||||||
* or User not found (status code 404)
|
* or User not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "http_basic_test")
|
@Authorization(value = "http_basic_test")
|
||||||
}, tags={ "fake", })
|
}, tags={ "fake", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -347,8 +348,7 @@ public interface FakeApi {
|
|||||||
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ public interface FakeClassnameTestApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key_query")
|
@Authorization(value = "api_key_query")
|
||||||
}, tags={ "fake_classname_tags 123#$%^", })
|
}, tags={ "fake_classname_tags 123#$%^", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -40,8 +40,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -66,8 +65,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -91,8 +89,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -118,8 +115,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = {
|
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"),
|
||||||
@@ -143,6 +139,7 @@ public interface PetApi {
|
|||||||
* or Pet not found (status code 404)
|
* or Pet not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -170,8 +167,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -198,8 +194,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input") })
|
@ApiResponse(code = 405, message = "Invalid input") })
|
||||||
@@ -223,8 +218,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ public interface StoreApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "store", })
|
}, tags={ "store", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -258,6 +258,7 @@ public interface FakeApi {
|
|||||||
* or User not found (status code 404)
|
* or User not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "http_basic_test")
|
@Authorization(value = "http_basic_test")
|
||||||
}, tags={ "fake", })
|
}, tags={ "fake", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -411,8 +412,7 @@ public interface FakeApi {
|
|||||||
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ public interface FakeClassnameTestApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key_query")
|
@Authorization(value = "api_key_query")
|
||||||
}, tags={ "fake_classname_tags 123#$%^", })
|
}, tags={ "fake_classname_tags 123#$%^", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -44,8 +44,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -72,8 +71,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -101,8 +99,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -145,8 +142,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = {
|
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"),
|
||||||
@@ -187,6 +183,7 @@ public interface PetApi {
|
|||||||
* or Pet not found (status code 404)
|
* or Pet not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -231,8 +228,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -262,8 +258,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input") })
|
@ApiResponse(code = 405, message = "Invalid input") })
|
||||||
@@ -290,8 +285,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ public interface StoreApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "store", })
|
}, tags={ "store", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -216,6 +216,7 @@ public interface FakeApi {
|
|||||||
* or User not found (status code 404)
|
* or User not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "http_basic_test")
|
@Authorization(value = "http_basic_test")
|
||||||
}, tags={ "fake", })
|
}, tags={ "fake", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -351,8 +352,7 @@ public interface FakeApi {
|
|||||||
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ public interface FakeClassnameTestApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key_query")
|
@Authorization(value = "api_key_query")
|
||||||
}, tags={ "fake_classname_tags 123#$%^", })
|
}, tags={ "fake_classname_tags 123#$%^", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -44,8 +44,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -70,8 +69,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -95,8 +93,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -122,8 +119,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = {
|
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"),
|
||||||
@@ -147,6 +143,7 @@ public interface PetApi {
|
|||||||
* or Pet not found (status code 404)
|
* or Pet not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -174,8 +171,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -202,8 +198,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input") })
|
@ApiResponse(code = 405, message = "Invalid input") })
|
||||||
@@ -227,8 +222,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ public interface StoreApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "store", })
|
}, tags={ "store", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -192,6 +192,7 @@ public interface FakeApi {
|
|||||||
* or User not found (status code 404)
|
* or User not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", authorizations = {
|
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "http_basic_test")
|
@Authorization(value = "http_basic_test")
|
||||||
}, tags={ "fake", })
|
}, tags={ "fake", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -315,8 +316,7 @@ public interface FakeApi {
|
|||||||
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ public interface FakeClassnameTestApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key_query")
|
@Authorization(value = "api_key_query")
|
||||||
}, tags={ "fake_classname_tags 123#$%^", })
|
}, tags={ "fake_classname_tags 123#$%^", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -35,8 +35,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -59,8 +58,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -82,8 +80,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -107,8 +104,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -130,6 +126,7 @@ public interface PetApi {
|
|||||||
* or Pet not found (status code 404)
|
* or Pet not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -155,8 +152,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -181,8 +177,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input") })
|
@ApiResponse(code = 405, message = "Invalid input") })
|
||||||
@@ -204,8 +199,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ public interface StoreApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "store", })
|
}, tags={ "store", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -212,6 +212,7 @@ public interface FakeApi {
|
|||||||
* or User not found (status code 404)
|
* or User not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", authorizations = {
|
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "http_basic_test")
|
@Authorization(value = "http_basic_test")
|
||||||
}, tags={ "fake", })
|
}, tags={ "fake", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -347,8 +348,7 @@ public interface FakeApi {
|
|||||||
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ public interface FakeClassnameTestApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key_query")
|
@Authorization(value = "api_key_query")
|
||||||
}, tags={ "fake_classname_tags 123#$%^", })
|
}, tags={ "fake_classname_tags 123#$%^", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -39,8 +39,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -65,8 +64,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -90,8 +88,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -117,8 +114,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -142,6 +138,7 @@ public interface PetApi {
|
|||||||
* or Pet not found (status code 404)
|
* or Pet not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -169,8 +166,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -197,8 +193,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input") })
|
@ApiResponse(code = 405, message = "Invalid input") })
|
||||||
@@ -222,8 +217,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ public interface StoreApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "store", })
|
}, tags={ "store", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -192,6 +192,7 @@ public interface FakeApi {
|
|||||||
* or User not found (status code 404)
|
* or User not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", authorizations = {
|
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "http_basic_test")
|
@Authorization(value = "http_basic_test")
|
||||||
}, tags={ "fake", })
|
}, tags={ "fake", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -315,8 +316,7 @@ public interface FakeApi {
|
|||||||
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ public interface FakeClassnameTestApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key_query")
|
@Authorization(value = "api_key_query")
|
||||||
}, tags={ "fake_classname_tags 123#$%^", })
|
}, tags={ "fake_classname_tags 123#$%^", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -35,8 +35,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -59,8 +58,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -82,8 +80,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -107,8 +104,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -130,6 +126,7 @@ public interface PetApi {
|
|||||||
* or Pet not found (status code 404)
|
* or Pet not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -155,8 +152,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -181,8 +177,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input") })
|
@ApiResponse(code = 405, message = "Invalid input") })
|
||||||
@@ -204,8 +199,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ public interface StoreApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "store", })
|
}, tags={ "store", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -242,6 +242,7 @@ public interface FakeApi {
|
|||||||
* or User not found (status code 404)
|
* or User not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", authorizations = {
|
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "http_basic_test")
|
@Authorization(value = "http_basic_test")
|
||||||
}, tags={ "fake", })
|
}, tags={ "fake", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -383,8 +384,7 @@ public interface FakeApi {
|
|||||||
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ public interface FakeClassnameTestApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key_query")
|
@Authorization(value = "api_key_query")
|
||||||
}, tags={ "fake_classname_tags 123#$%^", })
|
}, tags={ "fake_classname_tags 123#$%^", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -43,8 +43,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -70,8 +69,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -96,8 +94,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -138,8 +135,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -178,6 +174,7 @@ public interface PetApi {
|
|||||||
* or Pet not found (status code 404)
|
* or Pet not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -220,8 +217,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -249,8 +245,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input") })
|
@ApiResponse(code = 405, message = "Invalid input") })
|
||||||
@@ -275,8 +270,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ public interface StoreApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "store", })
|
}, tags={ "store", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -242,6 +242,7 @@ public interface FakeApi {
|
|||||||
* or User not found (status code 404)
|
* or User not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "http_basic_test")
|
@Authorization(value = "http_basic_test")
|
||||||
}, tags={ "fake", })
|
}, tags={ "fake", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -383,8 +384,7 @@ public interface FakeApi {
|
|||||||
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ public interface FakeClassnameTestApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key_query")
|
@Authorization(value = "api_key_query")
|
||||||
}, tags={ "fake_classname_tags 123#$%^", })
|
}, tags={ "fake_classname_tags 123#$%^", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -44,8 +44,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -71,8 +70,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -97,8 +95,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -139,8 +136,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = {
|
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"),
|
||||||
@@ -179,6 +175,7 @@ public interface PetApi {
|
|||||||
* or Pet not found (status code 404)
|
* or Pet not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -221,8 +218,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -250,8 +246,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input") })
|
@ApiResponse(code = 405, message = "Invalid input") })
|
||||||
@@ -276,8 +271,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ public interface StoreApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "store", })
|
}, tags={ "store", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -254,6 +254,7 @@ public interface FakeApi {
|
|||||||
*/
|
*/
|
||||||
@ApiVirtual
|
@ApiVirtual
|
||||||
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "http_basic_test")
|
@Authorization(value = "http_basic_test")
|
||||||
}, tags={ "fake", })
|
}, tags={ "fake", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -401,8 +402,7 @@ public interface FakeApi {
|
|||||||
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ public interface FakeClassnameTestApi {
|
|||||||
*/
|
*/
|
||||||
@ApiVirtual
|
@ApiVirtual
|
||||||
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key_query")
|
@Authorization(value = "api_key_query")
|
||||||
}, tags={ "fake_classname_tags 123#$%^", })
|
}, tags={ "fake_classname_tags 123#$%^", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -48,8 +48,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
@ApiOperation(value = "Add a new pet to the store", nickname = "addPet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -76,8 +75,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
@ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -103,8 +101,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
@ApiOperation(value = "Finds Pets by status", nickname = "findPetsByStatus", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
@@ -146,8 +143,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = {
|
@ApiOperation(value = "Finds Pets by tags", nickname = "findPetsByTags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "Set", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"),
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"),
|
||||||
@@ -187,6 +183,7 @@ public interface PetApi {
|
|||||||
*/
|
*/
|
||||||
@ApiVirtual
|
@ApiVirtual
|
||||||
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
@ApiOperation(value = "Find pet by ID", nickname = "getPetById", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -230,8 +227,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
@ApiOperation(value = "Update an existing pet", nickname = "updatePet", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation"),
|
@ApiResponse(code = 200, message = "successful operation"),
|
||||||
@@ -260,8 +256,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
@ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 405, message = "Invalid input") })
|
@ApiResponse(code = 405, message = "Invalid input") })
|
||||||
@@ -287,8 +282,7 @@ public interface PetApi {
|
|||||||
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image", nickname = "uploadFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ public interface StoreApi {
|
|||||||
*/
|
*/
|
||||||
@ApiVirtual
|
@ApiVirtual
|
||||||
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
@ApiOperation(value = "Returns pet inventories by status", nickname = "getInventory", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key")
|
@Authorization(value = "api_key")
|
||||||
}, tags={ "store", })
|
}, tags={ "store", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
@@ -242,6 +242,7 @@ public interface FakeApi {
|
|||||||
* or User not found (status code 404)
|
* or User not found (status code 404)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "http_basic_test")
|
@Authorization(value = "http_basic_test")
|
||||||
}, tags={ "fake", })
|
}, tags={ "fake", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@@ -383,8 +384,7 @@ public interface FakeApi {
|
|||||||
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
@ApiOperation(value = "uploads an image (required)", nickname = "uploadFileWithRequiredFile", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Authorization(value = "petstore_auth", scopes = {
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@AuthorizationScope(scope = "read:pets", description = "read your pets") })
|
||||||
})
|
|
||||||
}, tags={ "pet", })
|
}, tags={ "pet", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ public interface FakeClassnameTestApi {
|
|||||||
* @return successful operation (status code 200)
|
* @return successful operation (status code 200)
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
@ApiOperation(value = "To test class name in snake case", nickname = "testClassname", notes = "To test class name in snake case", response = Client.class, authorizations = {
|
||||||
|
|
||||||
@Authorization(value = "api_key_query")
|
@Authorization(value = "api_key_query")
|
||||||
}, tags={ "fake_classname_tags 123#$%^", })
|
}, tags={ "fake_classname_tags 123#$%^", })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user