mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-04 14:40:53 +00:00
Update all samples.
This commit is contained in:
parent
784169bc3f
commit
5bb0f7a933
@ -2,9 +2,9 @@
|
|||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>io.swagger</groupId>
|
<groupId>io.swagger</groupId>
|
||||||
<artifactId>scala-akka-petstore-client</artifactId>
|
<artifactId>swagger-client</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>scala-akka-petstore-client</name>
|
<name>swagger-client</name>
|
||||||
<version>1.0.0</version>
|
<version>1.0.0</version>
|
||||||
<prerequisites>
|
<prerequisites>
|
||||||
<maven>2.2.0</maven>
|
<maven>2.2.0</maven>
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
# !
|
# !
|
||||||
# ! Based on: https://github.com/Valodim/zsh-curl-completion/blob/master/_curl
|
# ! Based on: https://github.com/Valodim/zsh-curl-completion/blob/master/_curl
|
||||||
# !
|
# !
|
||||||
# ! Generated on: 2017-03-13T20:38:05.746+01:00
|
# ! Generated on: 2017-03-15T16:43:11.743+01:00
|
||||||
# !
|
# !
|
||||||
# !
|
# !
|
||||||
# ! Installation:
|
# ! Installation:
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# ! swagger-codegen (https://github.com/swagger-api/swagger-codegen)
|
# ! swagger-codegen (https://github.com/swagger-api/swagger-codegen)
|
||||||
# ! FROM SWAGGER SPECIFICATION IN JSON.
|
# ! FROM SWAGGER SPECIFICATION IN JSON.
|
||||||
# !
|
# !
|
||||||
# ! Generated on: 2017-03-13T20:38:05.746+01:00
|
# ! Generated on: 2017-03-15T16:43:11.743+01:00
|
||||||
# !
|
# !
|
||||||
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# ! swagger-codegen (https://github.com/swagger-api/swagger-codegen)
|
# ! swagger-codegen (https://github.com/swagger-api/swagger-codegen)
|
||||||
# ! FROM SWAGGER SPECIFICATION IN JSON.
|
# ! FROM SWAGGER SPECIFICATION IN JSON.
|
||||||
# !
|
# !
|
||||||
# ! Generated on: 2017-03-13T20:38:05.746+01:00
|
# ! Generated on: 2017-03-15T16:43:11.743+01:00
|
||||||
# !
|
# !
|
||||||
# !
|
# !
|
||||||
# ! System wide installation:
|
# ! System wide installation:
|
||||||
|
@ -6,7 +6,7 @@ This C# SDK is automatically generated by the [Swagger Codegen](https://github.c
|
|||||||
|
|
||||||
- API version: 1.0.0
|
- API version: 1.0.0
|
||||||
- SDK version: 1.0.0
|
- SDK version: 1.0.0
|
||||||
- Build date: 2017-03-13T18:03:07.267+01:00
|
- Build date: 2017-03-15T16:43:14.410+01:00
|
||||||
- Build package: io.swagger.codegen.languages.CsharpDotNet2ClientCodegen
|
- Build package: io.swagger.codegen.languages.CsharpDotNet2ClientCodegen
|
||||||
|
|
||||||
<a name="frameworks-supported"></a>
|
<a name="frameworks-supported"></a>
|
||||||
|
@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
|||||||
# Visual Studio 2012
|
# Visual Studio 2012
|
||||||
VisualStudioVersion = 12.0.0.0
|
VisualStudioVersion = 12.0.0.0
|
||||||
MinimumVisualStudioVersion = 10.0.0.1
|
MinimumVisualStudioVersion = 10.0.0.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger", "src\IO.Swagger\IO.Swagger.csproj", "{1289047F-8FA6-4CE8-A8F2-90F14016B774}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger", "src\IO.Swagger\IO.Swagger.csproj", "{7A39FC83-4C85-4785-A7BC-D75E4413FC1C}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger.Test", "src\IO.Swagger.Test\IO.Swagger.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger.Test", "src\IO.Swagger.Test\IO.Swagger.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
|
||||||
EndProject
|
EndProject
|
||||||
@ -12,10 +12,10 @@ Debug|Any CPU = Debug|Any CPU
|
|||||||
Release|Any CPU = Release|Any CPU
|
Release|Any CPU = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{1289047F-8FA6-4CE8-A8F2-90F14016B774}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{7A39FC83-4C85-4785-A7BC-D75E4413FC1C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{1289047F-8FA6-4CE8-A8F2-90F14016B774}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{7A39FC83-4C85-4785-A7BC-D75E4413FC1C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{1289047F-8FA6-4CE8-A8F2-90F14016B774}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{7A39FC83-4C85-4785-A7BC-D75E4413FC1C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{1289047F-8FA6-4CE8-A8F2-90F14016B774}.Release|Any CPU.Build.0 = Release|Any CPU
|
{7A39FC83-4C85-4785-A7BC-D75E4413FC1C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
@ -11,7 +11,7 @@ Contact: apiteam@swagger.io
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
<ProjectGuid>{1289047F-8FA6-4CE8-A8F2-90F14016B774}</ProjectGuid>
|
<ProjectGuid>{7A39FC83-4C85-4785-A7BC-D75E4413FC1C}</ProjectGuid>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>IO.Swagger</RootNamespace>
|
<RootNamespace>IO.Swagger</RootNamespace>
|
||||||
|
@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
|||||||
# Visual Studio 2012
|
# Visual Studio 2012
|
||||||
VisualStudioVersion = 12.0.0.0
|
VisualStudioVersion = 12.0.0.0
|
||||||
MinimumVisualStudioVersion = 10.0.0.1
|
MinimumVisualStudioVersion = 10.0.0.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger", "src\IO.Swagger\IO.Swagger.csproj", "{9BBF43FA-576F-4571-99A7-9BDBB93F6B91}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger", "src\IO.Swagger\IO.Swagger.csproj", "{2E45FB6E-03CA-4975-94BB-8A38A03A1DB7}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger.Test", "src\IO.Swagger.Test\IO.Swagger.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger.Test", "src\IO.Swagger.Test\IO.Swagger.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
|
||||||
EndProject
|
EndProject
|
||||||
@ -12,10 +12,10 @@ Debug|Any CPU = Debug|Any CPU
|
|||||||
Release|Any CPU = Release|Any CPU
|
Release|Any CPU = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{9BBF43FA-576F-4571-99A7-9BDBB93F6B91}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{2E45FB6E-03CA-4975-94BB-8A38A03A1DB7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{9BBF43FA-576F-4571-99A7-9BDBB93F6B91}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{2E45FB6E-03CA-4975-94BB-8A38A03A1DB7}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{9BBF43FA-576F-4571-99A7-9BDBB93F6B91}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{2E45FB6E-03CA-4975-94BB-8A38A03A1DB7}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{9BBF43FA-576F-4571-99A7-9BDBB93F6B91}.Release|Any CPU.Build.0 = Release|Any CPU
|
{2E45FB6E-03CA-4975-94BB-8A38A03A1DB7}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
@ -74,7 +74,7 @@ Contact: apiteam@swagger.io
|
|||||||
<Import Project="$(MsBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MsBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\IO.Swagger\IO.Swagger.csproj">
|
<ProjectReference Include="..\IO.Swagger\IO.Swagger.csproj">
|
||||||
<Project>{9BBF43FA-576F-4571-99A7-9BDBB93F6B91}</Project>
|
<Project>{2E45FB6E-03CA-4975-94BB-8A38A03A1DB7}</Project>
|
||||||
<Name>IO.Swagger</Name>
|
<Name>IO.Swagger</Name>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
@ -11,7 +11,7 @@ Contact: apiteam@swagger.io
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
<ProjectGuid>{9BBF43FA-576F-4571-99A7-9BDBB93F6B91}</ProjectGuid>
|
<ProjectGuid>{2E45FB6E-03CA-4975-94BB-8A38A03A1DB7}</ProjectGuid>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>IO.Swagger</RootNamespace>
|
<RootNamespace>IO.Swagger</RootNamespace>
|
||||||
|
@ -249,7 +249,7 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<properties>
|
<properties>
|
||||||
<swagger-core-version>1.5.9</swagger-core-version>
|
<swagger-core-version>1.5.12</swagger-core-version>
|
||||||
<jersey-version>2.22.2</jersey-version>
|
<jersey-version>2.22.2</jersey-version>
|
||||||
<commons_io_version>2.5</commons_io_version>
|
<commons_io_version>2.5</commons_io_version>
|
||||||
<commons_lang3_version>3.5</commons_lang3_version>
|
<commons_lang3_version>3.5</commons_lang3_version>
|
||||||
|
@ -53,7 +53,7 @@ public class FakeApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/fake".replaceAll("\\{format\\}","json");
|
String localVarPath = "/fake";
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
@ -121,7 +121,7 @@ public class FakeApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/fake".replaceAll("\\{format\\}","json");
|
String localVarPath = "/fake";
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
@ -191,7 +191,7 @@ if (paramCallback != null)
|
|||||||
Object localVarPostBody = null;
|
Object localVarPostBody = null;
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/fake".replaceAll("\\{format\\}","json");
|
String localVarPath = "/fake";
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
|
@ -50,7 +50,7 @@ public class FakeClassnameTags123Api {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/fake_classname_test".replaceAll("\\{format\\}","json");
|
String localVarPath = "/fake_classname_test";
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
|
@ -51,7 +51,7 @@ public class PetApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/pet".replaceAll("\\{format\\}","json");
|
String localVarPath = "/pet";
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
@ -92,7 +92,7 @@ public class PetApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/pet/{petId}".replaceAll("\\{format\\}","json")
|
String localVarPath = "/pet/{petId}"
|
||||||
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
|
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
@ -136,7 +136,7 @@ public class PetApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/pet/findByStatus".replaceAll("\\{format\\}","json");
|
String localVarPath = "/pet/findByStatus";
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
@ -178,7 +178,7 @@ public class PetApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/pet/findByTags".replaceAll("\\{format\\}","json");
|
String localVarPath = "/pet/findByTags";
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
@ -220,7 +220,7 @@ public class PetApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/pet/{petId}".replaceAll("\\{format\\}","json")
|
String localVarPath = "/pet/{petId}"
|
||||||
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
|
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
@ -261,7 +261,7 @@ public class PetApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/pet".replaceAll("\\{format\\}","json");
|
String localVarPath = "/pet";
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
@ -303,7 +303,7 @@ public class PetApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/pet/{petId}".replaceAll("\\{format\\}","json")
|
String localVarPath = "/pet/{petId}"
|
||||||
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
|
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
@ -351,7 +351,7 @@ if (status != null)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/pet/{petId}/uploadImage".replaceAll("\\{format\\}","json")
|
String localVarPath = "/pet/{petId}/uploadImage"
|
||||||
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
|
.replaceAll("\\{" + "petId" + "\\}", apiClient.escapeString(petId.toString()));
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
|
@ -49,7 +49,7 @@ public class StoreApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/store/order/{orderId}".replaceAll("\\{format\\}","json")
|
String localVarPath = "/store/order/{orderId}"
|
||||||
.replaceAll("\\{" + "orderId" + "\\}", apiClient.escapeString(orderId.toString()));
|
.replaceAll("\\{" + "orderId" + "\\}", apiClient.escapeString(orderId.toString()));
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
@ -85,7 +85,7 @@ public class StoreApi {
|
|||||||
Object localVarPostBody = null;
|
Object localVarPostBody = null;
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/store/inventory".replaceAll("\\{format\\}","json");
|
String localVarPath = "/store/inventory";
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
@ -126,7 +126,7 @@ public class StoreApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/store/order/{orderId}".replaceAll("\\{format\\}","json")
|
String localVarPath = "/store/order/{orderId}"
|
||||||
.replaceAll("\\{" + "orderId" + "\\}", apiClient.escapeString(orderId.toString()));
|
.replaceAll("\\{" + "orderId" + "\\}", apiClient.escapeString(orderId.toString()));
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
@ -168,7 +168,7 @@ public class StoreApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/store/order".replaceAll("\\{format\\}","json");
|
String localVarPath = "/store/order";
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
|
@ -49,7 +49,7 @@ public class UserApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/user".replaceAll("\\{format\\}","json");
|
String localVarPath = "/user";
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
@ -89,7 +89,7 @@ public class UserApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/user/createWithArray".replaceAll("\\{format\\}","json");
|
String localVarPath = "/user/createWithArray";
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
@ -129,7 +129,7 @@ public class UserApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/user/createWithList".replaceAll("\\{format\\}","json");
|
String localVarPath = "/user/createWithList";
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
@ -169,7 +169,7 @@ public class UserApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/user/{username}".replaceAll("\\{format\\}","json")
|
String localVarPath = "/user/{username}"
|
||||||
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
|
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
@ -211,7 +211,7 @@ public class UserApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/user/{username}".replaceAll("\\{format\\}","json")
|
String localVarPath = "/user/{username}"
|
||||||
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
|
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
@ -259,7 +259,7 @@ public class UserApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/user/login".replaceAll("\\{format\\}","json");
|
String localVarPath = "/user/login";
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
@ -295,7 +295,7 @@ public class UserApi {
|
|||||||
Object localVarPostBody = null;
|
Object localVarPostBody = null;
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/user/logout".replaceAll("\\{format\\}","json");
|
String localVarPath = "/user/logout";
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
@ -341,7 +341,7 @@ public class UserApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/user/{username}".replaceAll("\\{format\\}","json")
|
String localVarPath = "/user/{username}"
|
||||||
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
|
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
|
@ -47,7 +47,7 @@ public class AdditionalPropertiesClass {
|
|||||||
* Get mapProperty
|
* Get mapProperty
|
||||||
* @return mapProperty
|
* @return mapProperty
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Map<String, String> getMapProperty() {
|
public Map<String, String> getMapProperty() {
|
||||||
return mapProperty;
|
return mapProperty;
|
||||||
}
|
}
|
||||||
@ -70,7 +70,7 @@ public class AdditionalPropertiesClass {
|
|||||||
* Get mapOfMapProperty
|
* Get mapOfMapProperty
|
||||||
* @return mapOfMapProperty
|
* @return mapOfMapProperty
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Map<String, Map<String, String>> getMapOfMapProperty() {
|
public Map<String, Map<String, String>> getMapOfMapProperty() {
|
||||||
return mapOfMapProperty;
|
return mapOfMapProperty;
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,7 @@ public class Animal {
|
|||||||
* Get className
|
* Get className
|
||||||
* @return className
|
* @return className
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
public String getClassName() {
|
public String getClassName() {
|
||||||
return className;
|
return className;
|
||||||
}
|
}
|
||||||
@ -64,7 +64,7 @@ public class Animal {
|
|||||||
* Get color
|
* Get color
|
||||||
* @return color
|
* @return color
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getColor() {
|
public String getColor() {
|
||||||
return color;
|
return color;
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,7 @@ public class ArrayOfArrayOfNumberOnly {
|
|||||||
* Get arrayArrayNumber
|
* Get arrayArrayNumber
|
||||||
* @return arrayArrayNumber
|
* @return arrayArrayNumber
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public List<List<BigDecimal>> getArrayArrayNumber() {
|
public List<List<BigDecimal>> getArrayArrayNumber() {
|
||||||
return arrayArrayNumber;
|
return arrayArrayNumber;
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,7 @@ public class ArrayOfNumberOnly {
|
|||||||
* Get arrayNumber
|
* Get arrayNumber
|
||||||
* @return arrayNumber
|
* @return arrayNumber
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public List<BigDecimal> getArrayNumber() {
|
public List<BigDecimal> getArrayNumber() {
|
||||||
return arrayNumber;
|
return arrayNumber;
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ public class ArrayTest {
|
|||||||
* Get arrayOfString
|
* Get arrayOfString
|
||||||
* @return arrayOfString
|
* @return arrayOfString
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public List<String> getArrayOfString() {
|
public List<String> getArrayOfString() {
|
||||||
return arrayOfString;
|
return arrayOfString;
|
||||||
}
|
}
|
||||||
@ -73,7 +73,7 @@ public class ArrayTest {
|
|||||||
* Get arrayArrayOfInteger
|
* Get arrayArrayOfInteger
|
||||||
* @return arrayArrayOfInteger
|
* @return arrayArrayOfInteger
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public List<List<Long>> getArrayArrayOfInteger() {
|
public List<List<Long>> getArrayArrayOfInteger() {
|
||||||
return arrayArrayOfInteger;
|
return arrayArrayOfInteger;
|
||||||
}
|
}
|
||||||
@ -96,7 +96,7 @@ public class ArrayTest {
|
|||||||
* Get arrayArrayOfModel
|
* Get arrayArrayOfModel
|
||||||
* @return arrayArrayOfModel
|
* @return arrayArrayOfModel
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
|
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
|
||||||
return arrayArrayOfModel;
|
return arrayArrayOfModel;
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,7 @@ public class Capitalization {
|
|||||||
* Get smallCamel
|
* Get smallCamel
|
||||||
* @return smallCamel
|
* @return smallCamel
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getSmallCamel() {
|
public String getSmallCamel() {
|
||||||
return smallCamel;
|
return smallCamel;
|
||||||
}
|
}
|
||||||
@ -69,7 +69,7 @@ public class Capitalization {
|
|||||||
* Get capitalCamel
|
* Get capitalCamel
|
||||||
* @return capitalCamel
|
* @return capitalCamel
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getCapitalCamel() {
|
public String getCapitalCamel() {
|
||||||
return capitalCamel;
|
return capitalCamel;
|
||||||
}
|
}
|
||||||
@ -87,7 +87,7 @@ public class Capitalization {
|
|||||||
* Get smallSnake
|
* Get smallSnake
|
||||||
* @return smallSnake
|
* @return smallSnake
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getSmallSnake() {
|
public String getSmallSnake() {
|
||||||
return smallSnake;
|
return smallSnake;
|
||||||
}
|
}
|
||||||
@ -105,7 +105,7 @@ public class Capitalization {
|
|||||||
* Get capitalSnake
|
* Get capitalSnake
|
||||||
* @return capitalSnake
|
* @return capitalSnake
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getCapitalSnake() {
|
public String getCapitalSnake() {
|
||||||
return capitalSnake;
|
return capitalSnake;
|
||||||
}
|
}
|
||||||
@ -123,7 +123,7 @@ public class Capitalization {
|
|||||||
* Get scAETHFlowPoints
|
* Get scAETHFlowPoints
|
||||||
* @return scAETHFlowPoints
|
* @return scAETHFlowPoints
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getScAETHFlowPoints() {
|
public String getScAETHFlowPoints() {
|
||||||
return scAETHFlowPoints;
|
return scAETHFlowPoints;
|
||||||
}
|
}
|
||||||
@ -141,7 +141,7 @@ public class Capitalization {
|
|||||||
* Name of the pet
|
* Name of the pet
|
||||||
* @return ATT_NAME
|
* @return ATT_NAME
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "Name of the pet ")
|
@ApiModelProperty(value = "Name of the pet ")
|
||||||
public String getATTNAME() {
|
public String getATTNAME() {
|
||||||
return ATT_NAME;
|
return ATT_NAME;
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ public class Cat extends Animal {
|
|||||||
* Get declawed
|
* Get declawed
|
||||||
* @return declawed
|
* @return declawed
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Boolean getDeclawed() {
|
public Boolean getDeclawed() {
|
||||||
return declawed;
|
return declawed;
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ public class Category {
|
|||||||
* Get id
|
* Get id
|
||||||
* @return id
|
* @return id
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -57,7 +57,7 @@ public class Category {
|
|||||||
* Get name
|
* Get name
|
||||||
* @return name
|
* @return name
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ public class ClassModel {
|
|||||||
* Get propertyClass
|
* Get propertyClass
|
||||||
* @return propertyClass
|
* @return propertyClass
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getPropertyClass() {
|
public String getPropertyClass() {
|
||||||
return propertyClass;
|
return propertyClass;
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@ public class Client {
|
|||||||
* Get client
|
* Get client
|
||||||
* @return client
|
* @return client
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getClient() {
|
public String getClient() {
|
||||||
return client;
|
return client;
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ public class Dog extends Animal {
|
|||||||
* Get breed
|
* Get breed
|
||||||
* @return breed
|
* @return breed
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getBreed() {
|
public String getBreed() {
|
||||||
return breed;
|
return breed;
|
||||||
}
|
}
|
||||||
|
@ -101,7 +101,7 @@ public class EnumArrays {
|
|||||||
* Get justSymbol
|
* Get justSymbol
|
||||||
* @return justSymbol
|
* @return justSymbol
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public JustSymbolEnum getJustSymbol() {
|
public JustSymbolEnum getJustSymbol() {
|
||||||
return justSymbol;
|
return justSymbol;
|
||||||
}
|
}
|
||||||
@ -124,7 +124,7 @@ public class EnumArrays {
|
|||||||
* Get arrayEnum
|
* Get arrayEnum
|
||||||
* @return arrayEnum
|
* @return arrayEnum
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public List<ArrayEnumEnum> getArrayEnum() {
|
public List<ArrayEnumEnum> getArrayEnum() {
|
||||||
return arrayEnum;
|
return arrayEnum;
|
||||||
}
|
}
|
||||||
|
@ -138,7 +138,7 @@ public class EnumTest {
|
|||||||
* Get enumString
|
* Get enumString
|
||||||
* @return enumString
|
* @return enumString
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public EnumStringEnum getEnumString() {
|
public EnumStringEnum getEnumString() {
|
||||||
return enumString;
|
return enumString;
|
||||||
}
|
}
|
||||||
@ -156,7 +156,7 @@ public class EnumTest {
|
|||||||
* Get enumInteger
|
* Get enumInteger
|
||||||
* @return enumInteger
|
* @return enumInteger
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public EnumIntegerEnum getEnumInteger() {
|
public EnumIntegerEnum getEnumInteger() {
|
||||||
return enumInteger;
|
return enumInteger;
|
||||||
}
|
}
|
||||||
@ -174,7 +174,7 @@ public class EnumTest {
|
|||||||
* Get enumNumber
|
* Get enumNumber
|
||||||
* @return enumNumber
|
* @return enumNumber
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public EnumNumberEnum getEnumNumber() {
|
public EnumNumberEnum getEnumNumber() {
|
||||||
return enumNumber;
|
return enumNumber;
|
||||||
}
|
}
|
||||||
@ -192,7 +192,7 @@ public class EnumTest {
|
|||||||
* Get outerEnum
|
* Get outerEnum
|
||||||
* @return outerEnum
|
* @return outerEnum
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public OuterEnum getOuterEnum() {
|
public OuterEnum getOuterEnum() {
|
||||||
return outerEnum;
|
return outerEnum;
|
||||||
}
|
}
|
||||||
|
@ -78,7 +78,7 @@ public class FormatTest {
|
|||||||
* maximum: 100
|
* maximum: 100
|
||||||
* @return integer
|
* @return integer
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Integer getInteger() {
|
public Integer getInteger() {
|
||||||
return integer;
|
return integer;
|
||||||
}
|
}
|
||||||
@ -98,7 +98,7 @@ public class FormatTest {
|
|||||||
* maximum: 200
|
* maximum: 200
|
||||||
* @return int32
|
* @return int32
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Integer getInt32() {
|
public Integer getInt32() {
|
||||||
return int32;
|
return int32;
|
||||||
}
|
}
|
||||||
@ -116,7 +116,7 @@ public class FormatTest {
|
|||||||
* Get int64
|
* Get int64
|
||||||
* @return int64
|
* @return int64
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Long getInt64() {
|
public Long getInt64() {
|
||||||
return int64;
|
return int64;
|
||||||
}
|
}
|
||||||
@ -136,7 +136,7 @@ public class FormatTest {
|
|||||||
* maximum: 543.2
|
* maximum: 543.2
|
||||||
* @return number
|
* @return number
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
public BigDecimal getNumber() {
|
public BigDecimal getNumber() {
|
||||||
return number;
|
return number;
|
||||||
}
|
}
|
||||||
@ -156,7 +156,7 @@ public class FormatTest {
|
|||||||
* maximum: 987.6
|
* maximum: 987.6
|
||||||
* @return _float
|
* @return _float
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Float getFloat() {
|
public Float getFloat() {
|
||||||
return _float;
|
return _float;
|
||||||
}
|
}
|
||||||
@ -176,7 +176,7 @@ public class FormatTest {
|
|||||||
* maximum: 123.4
|
* maximum: 123.4
|
||||||
* @return _double
|
* @return _double
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Double getDouble() {
|
public Double getDouble() {
|
||||||
return _double;
|
return _double;
|
||||||
}
|
}
|
||||||
@ -194,7 +194,7 @@ public class FormatTest {
|
|||||||
* Get string
|
* Get string
|
||||||
* @return string
|
* @return string
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getString() {
|
public String getString() {
|
||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
@ -212,7 +212,7 @@ public class FormatTest {
|
|||||||
* Get _byte
|
* Get _byte
|
||||||
* @return _byte
|
* @return _byte
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
public byte[] getByte() {
|
public byte[] getByte() {
|
||||||
return _byte;
|
return _byte;
|
||||||
}
|
}
|
||||||
@ -230,7 +230,7 @@ public class FormatTest {
|
|||||||
* Get binary
|
* Get binary
|
||||||
* @return binary
|
* @return binary
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public byte[] getBinary() {
|
public byte[] getBinary() {
|
||||||
return binary;
|
return binary;
|
||||||
}
|
}
|
||||||
@ -248,7 +248,7 @@ public class FormatTest {
|
|||||||
* Get date
|
* Get date
|
||||||
* @return date
|
* @return date
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
public LocalDate getDate() {
|
public LocalDate getDate() {
|
||||||
return date;
|
return date;
|
||||||
}
|
}
|
||||||
@ -266,7 +266,7 @@ public class FormatTest {
|
|||||||
* Get dateTime
|
* Get dateTime
|
||||||
* @return dateTime
|
* @return dateTime
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public OffsetDateTime getDateTime() {
|
public OffsetDateTime getDateTime() {
|
||||||
return dateTime;
|
return dateTime;
|
||||||
}
|
}
|
||||||
@ -284,7 +284,7 @@ public class FormatTest {
|
|||||||
* Get uuid
|
* Get uuid
|
||||||
* @return uuid
|
* @return uuid
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public UUID getUuid() {
|
public UUID getUuid() {
|
||||||
return uuid;
|
return uuid;
|
||||||
}
|
}
|
||||||
@ -302,7 +302,7 @@ public class FormatTest {
|
|||||||
* Get password
|
* Get password
|
||||||
* @return password
|
* @return password
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
public String getPassword() {
|
public String getPassword() {
|
||||||
return password;
|
return password;
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@ public class HasOnlyReadOnly {
|
|||||||
* Get bar
|
* Get bar
|
||||||
* @return bar
|
* @return bar
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getBar() {
|
public String getBar() {
|
||||||
return bar;
|
return bar;
|
||||||
}
|
}
|
||||||
@ -43,7 +43,7 @@ public class HasOnlyReadOnly {
|
|||||||
* Get foo
|
* Get foo
|
||||||
* @return foo
|
* @return foo
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getFoo() {
|
public String getFoo() {
|
||||||
return foo;
|
return foo;
|
||||||
}
|
}
|
||||||
|
@ -77,7 +77,7 @@ public class MapTest {
|
|||||||
* Get mapMapOfString
|
* Get mapMapOfString
|
||||||
* @return mapMapOfString
|
* @return mapMapOfString
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Map<String, Map<String, String>> getMapMapOfString() {
|
public Map<String, Map<String, String>> getMapMapOfString() {
|
||||||
return mapMapOfString;
|
return mapMapOfString;
|
||||||
}
|
}
|
||||||
@ -100,7 +100,7 @@ public class MapTest {
|
|||||||
* Get mapOfEnumString
|
* Get mapOfEnumString
|
||||||
* @return mapOfEnumString
|
* @return mapOfEnumString
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Map<String, InnerEnum> getMapOfEnumString() {
|
public Map<String, InnerEnum> getMapOfEnumString() {
|
||||||
return mapOfEnumString;
|
return mapOfEnumString;
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
* Get uuid
|
* Get uuid
|
||||||
* @return uuid
|
* @return uuid
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public UUID getUuid() {
|
public UUID getUuid() {
|
||||||
return uuid;
|
return uuid;
|
||||||
}
|
}
|
||||||
@ -66,7 +66,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
* Get dateTime
|
* Get dateTime
|
||||||
* @return dateTime
|
* @return dateTime
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public OffsetDateTime getDateTime() {
|
public OffsetDateTime getDateTime() {
|
||||||
return dateTime;
|
return dateTime;
|
||||||
}
|
}
|
||||||
@ -89,7 +89,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
* Get map
|
* Get map
|
||||||
* @return map
|
* @return map
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Map<String, Animal> getMap() {
|
public Map<String, Animal> getMap() {
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@ public class Model200Response {
|
|||||||
* Get name
|
* Get name
|
||||||
* @return name
|
* @return name
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Integer getName() {
|
public Integer getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
@ -58,7 +58,7 @@ public class Model200Response {
|
|||||||
* Get propertyClass
|
* Get propertyClass
|
||||||
* @return propertyClass
|
* @return propertyClass
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getPropertyClass() {
|
public String getPropertyClass() {
|
||||||
return propertyClass;
|
return propertyClass;
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ public class ModelApiResponse {
|
|||||||
* Get code
|
* Get code
|
||||||
* @return code
|
* @return code
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Integer getCode() {
|
public Integer getCode() {
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
@ -60,7 +60,7 @@ public class ModelApiResponse {
|
|||||||
* Get type
|
* Get type
|
||||||
* @return type
|
* @return type
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getType() {
|
public String getType() {
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
@ -78,7 +78,7 @@ public class ModelApiResponse {
|
|||||||
* Get message
|
* Get message
|
||||||
* @return message
|
* @return message
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getMessage() {
|
public String getMessage() {
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ public class ModelReturn {
|
|||||||
* Get _return
|
* Get _return
|
||||||
* @return _return
|
* @return _return
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Integer getReturn() {
|
public Integer getReturn() {
|
||||||
return _return;
|
return _return;
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,7 @@ public class Name {
|
|||||||
* Get name
|
* Get name
|
||||||
* @return name
|
* @return name
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
public Integer getName() {
|
public Integer getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
@ -59,7 +59,7 @@ public class Name {
|
|||||||
* Get snakeCase
|
* Get snakeCase
|
||||||
* @return snakeCase
|
* @return snakeCase
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Integer getSnakeCase() {
|
public Integer getSnakeCase() {
|
||||||
return snakeCase;
|
return snakeCase;
|
||||||
}
|
}
|
||||||
@ -73,7 +73,7 @@ public class Name {
|
|||||||
* Get property
|
* Get property
|
||||||
* @return property
|
* @return property
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getProperty() {
|
public String getProperty() {
|
||||||
return property;
|
return property;
|
||||||
}
|
}
|
||||||
@ -86,7 +86,7 @@ public class Name {
|
|||||||
* Get _123Number
|
* Get _123Number
|
||||||
* @return _123Number
|
* @return _123Number
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Integer get123Number() {
|
public Integer get123Number() {
|
||||||
return _123Number;
|
return _123Number;
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ public class NumberOnly {
|
|||||||
* Get justNumber
|
* Get justNumber
|
||||||
* @return justNumber
|
* @return justNumber
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public BigDecimal getJustNumber() {
|
public BigDecimal getJustNumber() {
|
||||||
return justNumber;
|
return justNumber;
|
||||||
}
|
}
|
||||||
|
@ -84,7 +84,7 @@ public class Order {
|
|||||||
* Get id
|
* Get id
|
||||||
* @return id
|
* @return id
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -102,7 +102,7 @@ public class Order {
|
|||||||
* Get petId
|
* Get petId
|
||||||
* @return petId
|
* @return petId
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Long getPetId() {
|
public Long getPetId() {
|
||||||
return petId;
|
return petId;
|
||||||
}
|
}
|
||||||
@ -120,7 +120,7 @@ public class Order {
|
|||||||
* Get quantity
|
* Get quantity
|
||||||
* @return quantity
|
* @return quantity
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Integer getQuantity() {
|
public Integer getQuantity() {
|
||||||
return quantity;
|
return quantity;
|
||||||
}
|
}
|
||||||
@ -138,7 +138,7 @@ public class Order {
|
|||||||
* Get shipDate
|
* Get shipDate
|
||||||
* @return shipDate
|
* @return shipDate
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public OffsetDateTime getShipDate() {
|
public OffsetDateTime getShipDate() {
|
||||||
return shipDate;
|
return shipDate;
|
||||||
}
|
}
|
||||||
@ -156,7 +156,7 @@ public class Order {
|
|||||||
* Order Status
|
* Order Status
|
||||||
* @return status
|
* @return status
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "Order Status")
|
@ApiModelProperty(value = "Order Status")
|
||||||
public StatusEnum getStatus() {
|
public StatusEnum getStatus() {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
@ -174,7 +174,7 @@ public class Order {
|
|||||||
* Get complete
|
* Get complete
|
||||||
* @return complete
|
* @return complete
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Boolean getComplete() {
|
public Boolean getComplete() {
|
||||||
return complete;
|
return complete;
|
||||||
}
|
}
|
||||||
|
@ -87,7 +87,7 @@ public class Pet {
|
|||||||
* Get id
|
* Get id
|
||||||
* @return id
|
* @return id
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -105,7 +105,7 @@ public class Pet {
|
|||||||
* Get category
|
* Get category
|
||||||
* @return category
|
* @return category
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Category getCategory() {
|
public Category getCategory() {
|
||||||
return category;
|
return category;
|
||||||
}
|
}
|
||||||
@ -146,7 +146,7 @@ public class Pet {
|
|||||||
* Get photoUrls
|
* Get photoUrls
|
||||||
* @return photoUrls
|
* @return photoUrls
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
public List<String> getPhotoUrls() {
|
public List<String> getPhotoUrls() {
|
||||||
return photoUrls;
|
return photoUrls;
|
||||||
}
|
}
|
||||||
@ -169,7 +169,7 @@ public class Pet {
|
|||||||
* Get tags
|
* Get tags
|
||||||
* @return tags
|
* @return tags
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public List<Tag> getTags() {
|
public List<Tag> getTags() {
|
||||||
return tags;
|
return tags;
|
||||||
}
|
}
|
||||||
@ -187,7 +187,7 @@ public class Pet {
|
|||||||
* pet status in the store
|
* pet status in the store
|
||||||
* @return status
|
* @return status
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "pet status in the store")
|
@ApiModelProperty(value = "pet status in the store")
|
||||||
public StatusEnum getStatus() {
|
public StatusEnum getStatus() {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@ public class ReadOnlyFirst {
|
|||||||
* Get bar
|
* Get bar
|
||||||
* @return bar
|
* @return bar
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getBar() {
|
public String getBar() {
|
||||||
return bar;
|
return bar;
|
||||||
}
|
}
|
||||||
@ -48,7 +48,7 @@ public class ReadOnlyFirst {
|
|||||||
* Get baz
|
* Get baz
|
||||||
* @return baz
|
* @return baz
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getBaz() {
|
public String getBaz() {
|
||||||
return baz;
|
return baz;
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@ public class SpecialModelName {
|
|||||||
* Get specialPropertyName
|
* Get specialPropertyName
|
||||||
* @return specialPropertyName
|
* @return specialPropertyName
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Long getSpecialPropertyName() {
|
public Long getSpecialPropertyName() {
|
||||||
return specialPropertyName;
|
return specialPropertyName;
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ public class Tag {
|
|||||||
* Get id
|
* Get id
|
||||||
* @return id
|
* @return id
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -57,7 +57,7 @@ public class Tag {
|
|||||||
* Get name
|
* Get name
|
||||||
* @return name
|
* @return name
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,7 @@ public class User {
|
|||||||
* Get id
|
* Get id
|
||||||
* @return id
|
* @return id
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -75,7 +75,7 @@ public class User {
|
|||||||
* Get username
|
* Get username
|
||||||
* @return username
|
* @return username
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getUsername() {
|
public String getUsername() {
|
||||||
return username;
|
return username;
|
||||||
}
|
}
|
||||||
@ -93,7 +93,7 @@ public class User {
|
|||||||
* Get firstName
|
* Get firstName
|
||||||
* @return firstName
|
* @return firstName
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getFirstName() {
|
public String getFirstName() {
|
||||||
return firstName;
|
return firstName;
|
||||||
}
|
}
|
||||||
@ -111,7 +111,7 @@ public class User {
|
|||||||
* Get lastName
|
* Get lastName
|
||||||
* @return lastName
|
* @return lastName
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getLastName() {
|
public String getLastName() {
|
||||||
return lastName;
|
return lastName;
|
||||||
}
|
}
|
||||||
@ -129,7 +129,7 @@ public class User {
|
|||||||
* Get email
|
* Get email
|
||||||
* @return email
|
* @return email
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getEmail() {
|
public String getEmail() {
|
||||||
return email;
|
return email;
|
||||||
}
|
}
|
||||||
@ -147,7 +147,7 @@ public class User {
|
|||||||
* Get password
|
* Get password
|
||||||
* @return password
|
* @return password
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getPassword() {
|
public String getPassword() {
|
||||||
return password;
|
return password;
|
||||||
}
|
}
|
||||||
@ -165,7 +165,7 @@ public class User {
|
|||||||
* Get phone
|
* Get phone
|
||||||
* @return phone
|
* @return phone
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getPhone() {
|
public String getPhone() {
|
||||||
return phone;
|
return phone;
|
||||||
}
|
}
|
||||||
@ -183,7 +183,7 @@ public class User {
|
|||||||
* User Status
|
* User Status
|
||||||
* @return userStatus
|
* @return userStatus
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "User Status")
|
@ApiModelProperty(value = "User Status")
|
||||||
public Integer getUserStatus() {
|
public Integer getUserStatus() {
|
||||||
return userStatus;
|
return userStatus;
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ public class FakeClassnameTags123Api {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/fake_classname_test".replaceAll("\\{format\\}","json");
|
String localVarPath = "/fake_classname_test";
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
|
@ -63,7 +63,7 @@
|
|||||||
var postBody = body;
|
var postBody = body;
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'body' is set
|
||||||
if (body == undefined || body == null) {
|
if (body === undefined || body === null) {
|
||||||
throw new Error("Missing the required parameter 'body' when calling testClassname");
|
throw new Error("Missing the required parameter 'body' when calling testClassname");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,9 +60,6 @@ NSInteger kSWGPetApiMissingParamErrorCode = 234513;
|
|||||||
completionHandler: (void (^)(NSError* error)) handler {
|
completionHandler: (void (^)(NSError* error)) handler {
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/pet"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/pet"];
|
||||||
|
|
||||||
// remove format in URL if needed
|
|
||||||
[resourcePath replaceOccurrencesOfString:@".{format}" withString:@".json" options:0 range:NSMakeRange(0,resourcePath.length)];
|
|
||||||
|
|
||||||
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
||||||
|
|
||||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||||
@ -132,9 +129,6 @@ NSInteger kSWGPetApiMissingParamErrorCode = 234513;
|
|||||||
|
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/pet/{petId}"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/pet/{petId}"];
|
||||||
|
|
||||||
// remove format in URL if needed
|
|
||||||
[resourcePath replaceOccurrencesOfString:@".{format}" withString:@".json" options:0 range:NSMakeRange(0,resourcePath.length)];
|
|
||||||
|
|
||||||
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
||||||
if (petId != nil) {
|
if (petId != nil) {
|
||||||
pathParams[@"petId"] = petId;
|
pathParams[@"petId"] = petId;
|
||||||
@ -195,9 +189,6 @@ NSInteger kSWGPetApiMissingParamErrorCode = 234513;
|
|||||||
completionHandler: (void (^)(NSArray<SWGPet>* output, NSError* error)) handler {
|
completionHandler: (void (^)(NSArray<SWGPet>* output, NSError* error)) handler {
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/pet/findByStatus"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/pet/findByStatus"];
|
||||||
|
|
||||||
// remove format in URL if needed
|
|
||||||
[resourcePath replaceOccurrencesOfString:@".{format}" withString:@".json" options:0 range:NSMakeRange(0,resourcePath.length)];
|
|
||||||
|
|
||||||
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
||||||
|
|
||||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||||
@ -256,9 +247,6 @@ NSInteger kSWGPetApiMissingParamErrorCode = 234513;
|
|||||||
completionHandler: (void (^)(NSArray<SWGPet>* output, NSError* error)) handler {
|
completionHandler: (void (^)(NSArray<SWGPet>* output, NSError* error)) handler {
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/pet/findByTags"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/pet/findByTags"];
|
||||||
|
|
||||||
// remove format in URL if needed
|
|
||||||
[resourcePath replaceOccurrencesOfString:@".{format}" withString:@".json" options:0 range:NSMakeRange(0,resourcePath.length)];
|
|
||||||
|
|
||||||
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
||||||
|
|
||||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||||
@ -328,9 +316,6 @@ NSInteger kSWGPetApiMissingParamErrorCode = 234513;
|
|||||||
|
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/pet/{petId}"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/pet/{petId}"];
|
||||||
|
|
||||||
// remove format in URL if needed
|
|
||||||
[resourcePath replaceOccurrencesOfString:@".{format}" withString:@".json" options:0 range:NSMakeRange(0,resourcePath.length)];
|
|
||||||
|
|
||||||
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
||||||
if (petId != nil) {
|
if (petId != nil) {
|
||||||
pathParams[@"petId"] = petId;
|
pathParams[@"petId"] = petId;
|
||||||
@ -388,9 +373,6 @@ NSInteger kSWGPetApiMissingParamErrorCode = 234513;
|
|||||||
completionHandler: (void (^)(NSError* error)) handler {
|
completionHandler: (void (^)(NSError* error)) handler {
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/pet"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/pet"];
|
||||||
|
|
||||||
// remove format in URL if needed
|
|
||||||
[resourcePath replaceOccurrencesOfString:@".{format}" withString:@".json" options:0 range:NSMakeRange(0,resourcePath.length)];
|
|
||||||
|
|
||||||
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
||||||
|
|
||||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||||
@ -463,9 +445,6 @@ NSInteger kSWGPetApiMissingParamErrorCode = 234513;
|
|||||||
|
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/pet/{petId}"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/pet/{petId}"];
|
||||||
|
|
||||||
// remove format in URL if needed
|
|
||||||
[resourcePath replaceOccurrencesOfString:@".{format}" withString:@".json" options:0 range:NSMakeRange(0,resourcePath.length)];
|
|
||||||
|
|
||||||
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
||||||
if (petId != nil) {
|
if (petId != nil) {
|
||||||
pathParams[@"petId"] = petId;
|
pathParams[@"petId"] = petId;
|
||||||
@ -546,9 +525,6 @@ NSInteger kSWGPetApiMissingParamErrorCode = 234513;
|
|||||||
|
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/pet/{petId}/uploadImage"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/pet/{petId}/uploadImage"];
|
||||||
|
|
||||||
// remove format in URL if needed
|
|
||||||
[resourcePath replaceOccurrencesOfString:@".{format}" withString:@".json" options:0 range:NSMakeRange(0,resourcePath.length)];
|
|
||||||
|
|
||||||
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
||||||
if (petId != nil) {
|
if (petId != nil) {
|
||||||
pathParams[@"petId"] = petId;
|
pathParams[@"petId"] = petId;
|
||||||
|
@ -71,9 +71,6 @@ NSInteger kSWGStoreApiMissingParamErrorCode = 234513;
|
|||||||
|
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/store/order/{orderId}"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/store/order/{orderId}"];
|
||||||
|
|
||||||
// remove format in URL if needed
|
|
||||||
[resourcePath replaceOccurrencesOfString:@".{format}" withString:@".json" options:0 range:NSMakeRange(0,resourcePath.length)];
|
|
||||||
|
|
||||||
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
||||||
if (orderId != nil) {
|
if (orderId != nil) {
|
||||||
pathParams[@"orderId"] = orderId;
|
pathParams[@"orderId"] = orderId;
|
||||||
@ -129,9 +126,6 @@ NSInteger kSWGStoreApiMissingParamErrorCode = 234513;
|
|||||||
(void (^)(NSDictionary<NSString*, NSNumber*>* output, NSError* error)) handler {
|
(void (^)(NSDictionary<NSString*, NSNumber*>* output, NSError* error)) handler {
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/store/inventory"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/store/inventory"];
|
||||||
|
|
||||||
// remove format in URL if needed
|
|
||||||
[resourcePath replaceOccurrencesOfString:@".{format}" withString:@".json" options:0 range:NSMakeRange(0,resourcePath.length)];
|
|
||||||
|
|
||||||
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
||||||
|
|
||||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||||
@ -197,9 +191,6 @@ NSInteger kSWGStoreApiMissingParamErrorCode = 234513;
|
|||||||
|
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/store/order/{orderId}"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/store/order/{orderId}"];
|
||||||
|
|
||||||
// remove format in URL if needed
|
|
||||||
[resourcePath replaceOccurrencesOfString:@".{format}" withString:@".json" options:0 range:NSMakeRange(0,resourcePath.length)];
|
|
||||||
|
|
||||||
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
||||||
if (orderId != nil) {
|
if (orderId != nil) {
|
||||||
pathParams[@"orderId"] = orderId;
|
pathParams[@"orderId"] = orderId;
|
||||||
@ -257,9 +248,6 @@ NSInteger kSWGStoreApiMissingParamErrorCode = 234513;
|
|||||||
completionHandler: (void (^)(SWGOrder* output, NSError* error)) handler {
|
completionHandler: (void (^)(SWGOrder* output, NSError* error)) handler {
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/store/order"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/store/order"];
|
||||||
|
|
||||||
// remove format in URL if needed
|
|
||||||
[resourcePath replaceOccurrencesOfString:@".{format}" withString:@".json" options:0 range:NSMakeRange(0,resourcePath.length)];
|
|
||||||
|
|
||||||
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
||||||
|
|
||||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||||
|
@ -60,9 +60,6 @@ NSInteger kSWGUserApiMissingParamErrorCode = 234513;
|
|||||||
completionHandler: (void (^)(NSError* error)) handler {
|
completionHandler: (void (^)(NSError* error)) handler {
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/user"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/user"];
|
||||||
|
|
||||||
// remove format in URL if needed
|
|
||||||
[resourcePath replaceOccurrencesOfString:@".{format}" withString:@".json" options:0 range:NSMakeRange(0,resourcePath.length)];
|
|
||||||
|
|
||||||
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
||||||
|
|
||||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||||
@ -118,9 +115,6 @@ NSInteger kSWGUserApiMissingParamErrorCode = 234513;
|
|||||||
completionHandler: (void (^)(NSError* error)) handler {
|
completionHandler: (void (^)(NSError* error)) handler {
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/user/createWithArray"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/user/createWithArray"];
|
||||||
|
|
||||||
// remove format in URL if needed
|
|
||||||
[resourcePath replaceOccurrencesOfString:@".{format}" withString:@".json" options:0 range:NSMakeRange(0,resourcePath.length)];
|
|
||||||
|
|
||||||
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
||||||
|
|
||||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||||
@ -176,9 +170,6 @@ NSInteger kSWGUserApiMissingParamErrorCode = 234513;
|
|||||||
completionHandler: (void (^)(NSError* error)) handler {
|
completionHandler: (void (^)(NSError* error)) handler {
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/user/createWithList"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/user/createWithList"];
|
||||||
|
|
||||||
// remove format in URL if needed
|
|
||||||
[resourcePath replaceOccurrencesOfString:@".{format}" withString:@".json" options:0 range:NSMakeRange(0,resourcePath.length)];
|
|
||||||
|
|
||||||
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
||||||
|
|
||||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||||
@ -245,9 +236,6 @@ NSInteger kSWGUserApiMissingParamErrorCode = 234513;
|
|||||||
|
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/user/{username}"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/user/{username}"];
|
||||||
|
|
||||||
// remove format in URL if needed
|
|
||||||
[resourcePath replaceOccurrencesOfString:@".{format}" withString:@".json" options:0 range:NSMakeRange(0,resourcePath.length)];
|
|
||||||
|
|
||||||
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
||||||
if (username != nil) {
|
if (username != nil) {
|
||||||
pathParams[@"username"] = username;
|
pathParams[@"username"] = username;
|
||||||
@ -316,9 +304,6 @@ NSInteger kSWGUserApiMissingParamErrorCode = 234513;
|
|||||||
|
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/user/{username}"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/user/{username}"];
|
||||||
|
|
||||||
// remove format in URL if needed
|
|
||||||
[resourcePath replaceOccurrencesOfString:@".{format}" withString:@".json" options:0 range:NSMakeRange(0,resourcePath.length)];
|
|
||||||
|
|
||||||
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
||||||
if (username != nil) {
|
if (username != nil) {
|
||||||
pathParams[@"username"] = username;
|
pathParams[@"username"] = username;
|
||||||
@ -379,9 +364,6 @@ NSInteger kSWGUserApiMissingParamErrorCode = 234513;
|
|||||||
completionHandler: (void (^)(NSString* output, NSError* error)) handler {
|
completionHandler: (void (^)(NSString* output, NSError* error)) handler {
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/user/login"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/user/login"];
|
||||||
|
|
||||||
// remove format in URL if needed
|
|
||||||
[resourcePath replaceOccurrencesOfString:@".{format}" withString:@".json" options:0 range:NSMakeRange(0,resourcePath.length)];
|
|
||||||
|
|
||||||
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
||||||
|
|
||||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||||
@ -440,9 +422,6 @@ NSInteger kSWGUserApiMissingParamErrorCode = 234513;
|
|||||||
(void (^)(NSError* error)) handler {
|
(void (^)(NSError* error)) handler {
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/user/logout"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/user/logout"];
|
||||||
|
|
||||||
// remove format in URL if needed
|
|
||||||
[resourcePath replaceOccurrencesOfString:@".{format}" withString:@".json" options:0 range:NSMakeRange(0,resourcePath.length)];
|
|
||||||
|
|
||||||
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
||||||
|
|
||||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||||
@ -511,9 +490,6 @@ NSInteger kSWGUserApiMissingParamErrorCode = 234513;
|
|||||||
|
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/user/{username}"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/user/{username}"];
|
||||||
|
|
||||||
// remove format in URL if needed
|
|
||||||
[resourcePath replaceOccurrencesOfString:@".{format}" withString:@".json" options:0 range:NSMakeRange(0,resourcePath.length)];
|
|
||||||
|
|
||||||
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *pathParams = [[NSMutableDictionary alloc] init];
|
||||||
if (username != nil) {
|
if (username != nil) {
|
||||||
pathParams[@"username"] = username;
|
pathParams[@"username"] = username;
|
||||||
|
@ -83,7 +83,6 @@ sub test_classname {
|
|||||||
|
|
||||||
# parse inputs
|
# parse inputs
|
||||||
my $_resource_path = '/fake_classname_test';
|
my $_resource_path = '/fake_classname_test';
|
||||||
$_resource_path =~ s/{format}/json/; # default format to json
|
|
||||||
|
|
||||||
my $_method = 'PATCH';
|
my $_method = 'PATCH';
|
||||||
my $query_params = {};
|
my $query_params = {};
|
||||||
|
@ -106,7 +106,6 @@ class FakeClassnameTags123Api(object):
|
|||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
|
|
||||||
resource_path = '/fake_classname_test'.replace('{format}', 'json')
|
|
||||||
path_params = {}
|
path_params = {}
|
||||||
|
|
||||||
query_params = {}
|
query_params = {}
|
||||||
@ -130,7 +129,7 @@ class FakeClassnameTags123Api(object):
|
|||||||
# Authentication setting
|
# Authentication setting
|
||||||
auth_settings = []
|
auth_settings = []
|
||||||
|
|
||||||
return self.api_client.call_api(resource_path, 'PATCH',
|
return self.api_client.call_api('/fake_classname_test', 'PATCH',
|
||||||
path_params,
|
path_params,
|
||||||
query_params,
|
query_params,
|
||||||
header_params,
|
header_params,
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QJsonArray>
|
#include <QJsonArray>
|
||||||
#include <QJsonValue>
|
#include <QJsonValue>
|
||||||
|
#include <QDateTime>
|
||||||
|
|
||||||
namespace Swagger {
|
namespace Swagger {
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ module Petstore
|
|||||||
# verify the required parameter 'body' is set
|
# verify the required parameter 'body' is set
|
||||||
fail ArgumentError, "Missing the required parameter 'body' when calling FakeClassnameTags123Api.test_classname" if body.nil?
|
fail ArgumentError, "Missing the required parameter 'body' when calling FakeClassnameTags123Api.test_classname" if body.nil?
|
||||||
# resource path
|
# resource path
|
||||||
local_var_path = "/fake_classname_test".sub('{format}','json')
|
local_var_path = "/fake_classname_test"
|
||||||
|
|
||||||
# query parameters
|
# query parameters
|
||||||
query_params = {}
|
query_params = {}
|
||||||
|
@ -210,7 +210,7 @@
|
|||||||
<joda-version>1.2</joda-version>
|
<joda-version>1.2</joda-version>
|
||||||
<joda-time-version>2.2</joda-time-version>
|
<joda-time-version>2.2</joda-time-version>
|
||||||
<jersey-version>1.19</jersey-version>
|
<jersey-version>1.19</jersey-version>
|
||||||
<swagger-core-version>1.5.9</swagger-core-version>
|
<swagger-core-version>1.5.12</swagger-core-version>
|
||||||
<jersey-async-version>1.0.5</jersey-async-version>
|
<jersey-async-version>1.0.5</jersey-async-version>
|
||||||
<maven-plugin.version>1.0.0</maven-plugin.version>
|
<maven-plugin.version>1.0.0</maven-plugin.version>
|
||||||
<jackson-version>2.4.2</jackson-version>
|
<jackson-version>2.4.2</jackson-version>
|
||||||
|
@ -166,16 +166,16 @@ public class PetAPI: APIBase {
|
|||||||
- examples: [{contentType=application/json, example=[ {
|
- examples: [{contentType=application/json, example=[ {
|
||||||
"photoUrls" : [ "aeiou" ],
|
"photoUrls" : [ "aeiou" ],
|
||||||
"name" : "doggie",
|
"name" : "doggie",
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 123456789
|
"id" : 6
|
||||||
},
|
},
|
||||||
"tags" : [ {
|
"tags" : [ {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 123456789
|
"id" : 1
|
||||||
} ],
|
} ],
|
||||||
"status" : "aeiou"
|
"status" : "available"
|
||||||
} ]}, {contentType=application/xml, example=<Pet>
|
} ]}, {contentType=application/xml, example=<Pet>
|
||||||
<id>123456789</id>
|
<id>123456789</id>
|
||||||
<name>doggie</name>
|
<name>doggie</name>
|
||||||
@ -189,16 +189,16 @@ public class PetAPI: APIBase {
|
|||||||
- examples: [{contentType=application/json, example=[ {
|
- examples: [{contentType=application/json, example=[ {
|
||||||
"photoUrls" : [ "aeiou" ],
|
"photoUrls" : [ "aeiou" ],
|
||||||
"name" : "doggie",
|
"name" : "doggie",
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 123456789
|
"id" : 6
|
||||||
},
|
},
|
||||||
"tags" : [ {
|
"tags" : [ {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 123456789
|
"id" : 1
|
||||||
} ],
|
} ],
|
||||||
"status" : "aeiou"
|
"status" : "available"
|
||||||
} ]}, {contentType=application/xml, example=<Pet>
|
} ]}, {contentType=application/xml, example=<Pet>
|
||||||
<id>123456789</id>
|
<id>123456789</id>
|
||||||
<name>doggie</name>
|
<name>doggie</name>
|
||||||
@ -257,16 +257,16 @@ public class PetAPI: APIBase {
|
|||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"photoUrls" : [ "aeiou" ],
|
"photoUrls" : [ "aeiou" ],
|
||||||
"name" : "doggie",
|
"name" : "doggie",
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 123456789
|
"id" : 6
|
||||||
},
|
},
|
||||||
"tags" : [ {
|
"tags" : [ {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 123456789
|
"id" : 1
|
||||||
} ],
|
} ],
|
||||||
"status" : "aeiou"
|
"status" : "available"
|
||||||
}}, {contentType=application/xml, example=<Pet>
|
}}, {contentType=application/xml, example=<Pet>
|
||||||
<id>123456789</id>
|
<id>123456789</id>
|
||||||
<name>doggie</name>
|
<name>doggie</name>
|
||||||
@ -280,16 +280,16 @@ public class PetAPI: APIBase {
|
|||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"photoUrls" : [ "aeiou" ],
|
"photoUrls" : [ "aeiou" ],
|
||||||
"name" : "doggie",
|
"name" : "doggie",
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 123456789
|
"id" : 6
|
||||||
},
|
},
|
||||||
"tags" : [ {
|
"tags" : [ {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 123456789
|
"id" : 1
|
||||||
} ],
|
} ],
|
||||||
"status" : "aeiou"
|
"status" : "available"
|
||||||
}}, {contentType=application/xml, example=<Pet>
|
}}, {contentType=application/xml, example=<Pet>
|
||||||
<id>123456789</id>
|
<id>123456789</id>
|
||||||
<name>doggie</name>
|
<name>doggie</name>
|
||||||
|
@ -68,10 +68,10 @@ public class StoreAPI: APIBase {
|
|||||||
- type: apiKey api_key
|
- type: apiKey api_key
|
||||||
- name: api_key
|
- name: api_key
|
||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"key" : 123
|
"key" : 0
|
||||||
}}, {contentType=application/xml, example=}]
|
}}, {contentType=application/xml, example=}]
|
||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"key" : 123
|
"key" : 0
|
||||||
}}, {contentType=application/xml, example=}]
|
}}, {contentType=application/xml, example=}]
|
||||||
|
|
||||||
- returns: RequestBuilder<[String:Int32]>
|
- returns: RequestBuilder<[String:Int32]>
|
||||||
@ -109,12 +109,12 @@ public class StoreAPI: APIBase {
|
|||||||
- GET /store/order/{orderId}
|
- GET /store/order/{orderId}
|
||||||
- For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
- For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"petId" : 123456789,
|
"petId" : 6,
|
||||||
"quantity" : 123,
|
"quantity" : 1,
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
||||||
"complete" : true,
|
"complete" : true,
|
||||||
"status" : "aeiou"
|
"status" : "placed"
|
||||||
}}, {contentType=application/xml, example=<Order>
|
}}, {contentType=application/xml, example=<Order>
|
||||||
<id>123456789</id>
|
<id>123456789</id>
|
||||||
<petId>123456789</petId>
|
<petId>123456789</petId>
|
||||||
@ -124,12 +124,12 @@ public class StoreAPI: APIBase {
|
|||||||
<complete>true</complete>
|
<complete>true</complete>
|
||||||
</Order>}]
|
</Order>}]
|
||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"petId" : 123456789,
|
"petId" : 6,
|
||||||
"quantity" : 123,
|
"quantity" : 1,
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
||||||
"complete" : true,
|
"complete" : true,
|
||||||
"status" : "aeiou"
|
"status" : "placed"
|
||||||
}}, {contentType=application/xml, example=<Order>
|
}}, {contentType=application/xml, example=<Order>
|
||||||
<id>123456789</id>
|
<id>123456789</id>
|
||||||
<petId>123456789</petId>
|
<petId>123456789</petId>
|
||||||
@ -177,12 +177,12 @@ public class StoreAPI: APIBase {
|
|||||||
- POST /store/order
|
- POST /store/order
|
||||||
-
|
-
|
||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"petId" : 123456789,
|
"petId" : 6,
|
||||||
"quantity" : 123,
|
"quantity" : 1,
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
||||||
"complete" : true,
|
"complete" : true,
|
||||||
"status" : "aeiou"
|
"status" : "placed"
|
||||||
}}, {contentType=application/xml, example=<Order>
|
}}, {contentType=application/xml, example=<Order>
|
||||||
<id>123456789</id>
|
<id>123456789</id>
|
||||||
<petId>123456789</petId>
|
<petId>123456789</petId>
|
||||||
@ -192,12 +192,12 @@ public class StoreAPI: APIBase {
|
|||||||
<complete>true</complete>
|
<complete>true</complete>
|
||||||
</Order>}]
|
</Order>}]
|
||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"petId" : 123456789,
|
"petId" : 6,
|
||||||
"quantity" : 123,
|
"quantity" : 1,
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
||||||
"complete" : true,
|
"complete" : true,
|
||||||
"status" : "aeiou"
|
"status" : "placed"
|
||||||
}}, {contentType=application/xml, example=<Order>
|
}}, {contentType=application/xml, example=<Order>
|
||||||
<id>123456789</id>
|
<id>123456789</id>
|
||||||
<petId>123456789</petId>
|
<petId>123456789</petId>
|
||||||
|
@ -171,9 +171,9 @@ public class UserAPI: APIBase {
|
|||||||
"firstName" : "aeiou",
|
"firstName" : "aeiou",
|
||||||
"lastName" : "aeiou",
|
"lastName" : "aeiou",
|
||||||
"password" : "aeiou",
|
"password" : "aeiou",
|
||||||
"userStatus" : 123,
|
"userStatus" : 6,
|
||||||
"phone" : "aeiou",
|
"phone" : "aeiou",
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"email" : "aeiou",
|
"email" : "aeiou",
|
||||||
"username" : "aeiou"
|
"username" : "aeiou"
|
||||||
}}, {contentType=application/xml, example=<User>
|
}}, {contentType=application/xml, example=<User>
|
||||||
@ -190,9 +190,9 @@ public class UserAPI: APIBase {
|
|||||||
"firstName" : "aeiou",
|
"firstName" : "aeiou",
|
||||||
"lastName" : "aeiou",
|
"lastName" : "aeiou",
|
||||||
"password" : "aeiou",
|
"password" : "aeiou",
|
||||||
"userStatus" : 123,
|
"userStatus" : 6,
|
||||||
"phone" : "aeiou",
|
"phone" : "aeiou",
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"email" : "aeiou",
|
"email" : "aeiou",
|
||||||
"username" : "aeiou"
|
"username" : "aeiou"
|
||||||
}}, {contentType=application/xml, example=<User>
|
}}, {contentType=application/xml, example=<User>
|
||||||
|
@ -236,16 +236,16 @@ public class PetAPI: APIBase {
|
|||||||
- examples: [{contentType=application/json, example=[ {
|
- examples: [{contentType=application/json, example=[ {
|
||||||
"photoUrls" : [ "aeiou" ],
|
"photoUrls" : [ "aeiou" ],
|
||||||
"name" : "doggie",
|
"name" : "doggie",
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 123456789
|
"id" : 6
|
||||||
},
|
},
|
||||||
"tags" : [ {
|
"tags" : [ {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 123456789
|
"id" : 1
|
||||||
} ],
|
} ],
|
||||||
"status" : "aeiou"
|
"status" : "available"
|
||||||
} ]}, {contentType=application/xml, example=<Pet>
|
} ]}, {contentType=application/xml, example=<Pet>
|
||||||
<id>123456789</id>
|
<id>123456789</id>
|
||||||
<name>doggie</name>
|
<name>doggie</name>
|
||||||
@ -259,16 +259,16 @@ public class PetAPI: APIBase {
|
|||||||
- examples: [{contentType=application/json, example=[ {
|
- examples: [{contentType=application/json, example=[ {
|
||||||
"photoUrls" : [ "aeiou" ],
|
"photoUrls" : [ "aeiou" ],
|
||||||
"name" : "doggie",
|
"name" : "doggie",
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 123456789
|
"id" : 6
|
||||||
},
|
},
|
||||||
"tags" : [ {
|
"tags" : [ {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 123456789
|
"id" : 1
|
||||||
} ],
|
} ],
|
||||||
"status" : "aeiou"
|
"status" : "available"
|
||||||
} ]}, {contentType=application/xml, example=<Pet>
|
} ]}, {contentType=application/xml, example=<Pet>
|
||||||
<id>123456789</id>
|
<id>123456789</id>
|
||||||
<name>doggie</name>
|
<name>doggie</name>
|
||||||
@ -344,16 +344,16 @@ public class PetAPI: APIBase {
|
|||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"photoUrls" : [ "aeiou" ],
|
"photoUrls" : [ "aeiou" ],
|
||||||
"name" : "doggie",
|
"name" : "doggie",
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 123456789
|
"id" : 6
|
||||||
},
|
},
|
||||||
"tags" : [ {
|
"tags" : [ {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 123456789
|
"id" : 1
|
||||||
} ],
|
} ],
|
||||||
"status" : "aeiou"
|
"status" : "available"
|
||||||
}}, {contentType=application/xml, example=<Pet>
|
}}, {contentType=application/xml, example=<Pet>
|
||||||
<id>123456789</id>
|
<id>123456789</id>
|
||||||
<name>doggie</name>
|
<name>doggie</name>
|
||||||
@ -367,16 +367,16 @@ public class PetAPI: APIBase {
|
|||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"photoUrls" : [ "aeiou" ],
|
"photoUrls" : [ "aeiou" ],
|
||||||
"name" : "doggie",
|
"name" : "doggie",
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 123456789
|
"id" : 6
|
||||||
},
|
},
|
||||||
"tags" : [ {
|
"tags" : [ {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 123456789
|
"id" : 1
|
||||||
} ],
|
} ],
|
||||||
"status" : "aeiou"
|
"status" : "available"
|
||||||
}}, {contentType=application/xml, example=<Pet>
|
}}, {contentType=application/xml, example=<Pet>
|
||||||
<id>123456789</id>
|
<id>123456789</id>
|
||||||
<name>doggie</name>
|
<name>doggie</name>
|
||||||
|
@ -102,10 +102,10 @@ public class StoreAPI: APIBase {
|
|||||||
- type: apiKey api_key
|
- type: apiKey api_key
|
||||||
- name: api_key
|
- name: api_key
|
||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"key" : 123
|
"key" : 0
|
||||||
}}, {contentType=application/xml, example=}]
|
}}, {contentType=application/xml, example=}]
|
||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"key" : 123
|
"key" : 0
|
||||||
}}, {contentType=application/xml, example=}]
|
}}, {contentType=application/xml, example=}]
|
||||||
|
|
||||||
- returns: RequestBuilder<[String:Int32]>
|
- returns: RequestBuilder<[String:Int32]>
|
||||||
@ -160,12 +160,12 @@ public class StoreAPI: APIBase {
|
|||||||
- GET /store/order/{orderId}
|
- GET /store/order/{orderId}
|
||||||
- For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
- For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"petId" : 123456789,
|
"petId" : 6,
|
||||||
"quantity" : 123,
|
"quantity" : 1,
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
||||||
"complete" : true,
|
"complete" : true,
|
||||||
"status" : "aeiou"
|
"status" : "placed"
|
||||||
}}, {contentType=application/xml, example=<Order>
|
}}, {contentType=application/xml, example=<Order>
|
||||||
<id>123456789</id>
|
<id>123456789</id>
|
||||||
<petId>123456789</petId>
|
<petId>123456789</petId>
|
||||||
@ -175,12 +175,12 @@ public class StoreAPI: APIBase {
|
|||||||
<complete>true</complete>
|
<complete>true</complete>
|
||||||
</Order>}]
|
</Order>}]
|
||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"petId" : 123456789,
|
"petId" : 6,
|
||||||
"quantity" : 123,
|
"quantity" : 1,
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
||||||
"complete" : true,
|
"complete" : true,
|
||||||
"status" : "aeiou"
|
"status" : "placed"
|
||||||
}}, {contentType=application/xml, example=<Order>
|
}}, {contentType=application/xml, example=<Order>
|
||||||
<id>123456789</id>
|
<id>123456789</id>
|
||||||
<petId>123456789</petId>
|
<petId>123456789</petId>
|
||||||
@ -245,12 +245,12 @@ public class StoreAPI: APIBase {
|
|||||||
- POST /store/order
|
- POST /store/order
|
||||||
-
|
-
|
||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"petId" : 123456789,
|
"petId" : 6,
|
||||||
"quantity" : 123,
|
"quantity" : 1,
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
||||||
"complete" : true,
|
"complete" : true,
|
||||||
"status" : "aeiou"
|
"status" : "placed"
|
||||||
}}, {contentType=application/xml, example=<Order>
|
}}, {contentType=application/xml, example=<Order>
|
||||||
<id>123456789</id>
|
<id>123456789</id>
|
||||||
<petId>123456789</petId>
|
<petId>123456789</petId>
|
||||||
@ -260,12 +260,12 @@ public class StoreAPI: APIBase {
|
|||||||
<complete>true</complete>
|
<complete>true</complete>
|
||||||
</Order>}]
|
</Order>}]
|
||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"petId" : 123456789,
|
"petId" : 6,
|
||||||
"quantity" : 123,
|
"quantity" : 1,
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
||||||
"complete" : true,
|
"complete" : true,
|
||||||
"status" : "aeiou"
|
"status" : "placed"
|
||||||
}}, {contentType=application/xml, example=<Order>
|
}}, {contentType=application/xml, example=<Order>
|
||||||
<id>123456789</id>
|
<id>123456789</id>
|
||||||
<petId>123456789</petId>
|
<petId>123456789</petId>
|
||||||
|
@ -257,9 +257,9 @@ public class UserAPI: APIBase {
|
|||||||
"firstName" : "aeiou",
|
"firstName" : "aeiou",
|
||||||
"lastName" : "aeiou",
|
"lastName" : "aeiou",
|
||||||
"password" : "aeiou",
|
"password" : "aeiou",
|
||||||
"userStatus" : 123,
|
"userStatus" : 6,
|
||||||
"phone" : "aeiou",
|
"phone" : "aeiou",
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"email" : "aeiou",
|
"email" : "aeiou",
|
||||||
"username" : "aeiou"
|
"username" : "aeiou"
|
||||||
}}, {contentType=application/xml, example=<User>
|
}}, {contentType=application/xml, example=<User>
|
||||||
@ -276,9 +276,9 @@ public class UserAPI: APIBase {
|
|||||||
"firstName" : "aeiou",
|
"firstName" : "aeiou",
|
||||||
"lastName" : "aeiou",
|
"lastName" : "aeiou",
|
||||||
"password" : "aeiou",
|
"password" : "aeiou",
|
||||||
"userStatus" : 123,
|
"userStatus" : 6,
|
||||||
"phone" : "aeiou",
|
"phone" : "aeiou",
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"email" : "aeiou",
|
"email" : "aeiou",
|
||||||
"username" : "aeiou"
|
"username" : "aeiou"
|
||||||
}}, {contentType=application/xml, example=<User>
|
}}, {contentType=application/xml, example=<User>
|
||||||
|
@ -244,16 +244,16 @@ public class PetAPI: APIBase {
|
|||||||
- examples: [{contentType=application/json, example=[ {
|
- examples: [{contentType=application/json, example=[ {
|
||||||
"photoUrls" : [ "aeiou" ],
|
"photoUrls" : [ "aeiou" ],
|
||||||
"name" : "doggie",
|
"name" : "doggie",
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 123456789
|
"id" : 6
|
||||||
},
|
},
|
||||||
"tags" : [ {
|
"tags" : [ {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 123456789
|
"id" : 1
|
||||||
} ],
|
} ],
|
||||||
"status" : "aeiou"
|
"status" : "available"
|
||||||
} ]}, {contentType=application/xml, example=<Pet>
|
} ]}, {contentType=application/xml, example=<Pet>
|
||||||
<id>123456789</id>
|
<id>123456789</id>
|
||||||
<name>doggie</name>
|
<name>doggie</name>
|
||||||
@ -267,16 +267,16 @@ public class PetAPI: APIBase {
|
|||||||
- examples: [{contentType=application/json, example=[ {
|
- examples: [{contentType=application/json, example=[ {
|
||||||
"photoUrls" : [ "aeiou" ],
|
"photoUrls" : [ "aeiou" ],
|
||||||
"name" : "doggie",
|
"name" : "doggie",
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 123456789
|
"id" : 6
|
||||||
},
|
},
|
||||||
"tags" : [ {
|
"tags" : [ {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 123456789
|
"id" : 1
|
||||||
} ],
|
} ],
|
||||||
"status" : "aeiou"
|
"status" : "available"
|
||||||
} ]}, {contentType=application/xml, example=<Pet>
|
} ]}, {contentType=application/xml, example=<Pet>
|
||||||
<id>123456789</id>
|
<id>123456789</id>
|
||||||
<name>doggie</name>
|
<name>doggie</name>
|
||||||
@ -354,16 +354,16 @@ public class PetAPI: APIBase {
|
|||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"photoUrls" : [ "aeiou" ],
|
"photoUrls" : [ "aeiou" ],
|
||||||
"name" : "doggie",
|
"name" : "doggie",
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 123456789
|
"id" : 6
|
||||||
},
|
},
|
||||||
"tags" : [ {
|
"tags" : [ {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 123456789
|
"id" : 1
|
||||||
} ],
|
} ],
|
||||||
"status" : "aeiou"
|
"status" : "available"
|
||||||
}}, {contentType=application/xml, example=<Pet>
|
}}, {contentType=application/xml, example=<Pet>
|
||||||
<id>123456789</id>
|
<id>123456789</id>
|
||||||
<name>doggie</name>
|
<name>doggie</name>
|
||||||
@ -377,16 +377,16 @@ public class PetAPI: APIBase {
|
|||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"photoUrls" : [ "aeiou" ],
|
"photoUrls" : [ "aeiou" ],
|
||||||
"name" : "doggie",
|
"name" : "doggie",
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 123456789
|
"id" : 6
|
||||||
},
|
},
|
||||||
"tags" : [ {
|
"tags" : [ {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 123456789
|
"id" : 1
|
||||||
} ],
|
} ],
|
||||||
"status" : "aeiou"
|
"status" : "available"
|
||||||
}}, {contentType=application/xml, example=<Pet>
|
}}, {contentType=application/xml, example=<Pet>
|
||||||
<id>123456789</id>
|
<id>123456789</id>
|
||||||
<name>doggie</name>
|
<name>doggie</name>
|
||||||
|
@ -106,10 +106,10 @@ public class StoreAPI: APIBase {
|
|||||||
- type: apiKey api_key
|
- type: apiKey api_key
|
||||||
- name: api_key
|
- name: api_key
|
||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"key" : 123
|
"key" : 0
|
||||||
}}, {contentType=application/xml, example=}]
|
}}, {contentType=application/xml, example=}]
|
||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"key" : 123
|
"key" : 0
|
||||||
}}, {contentType=application/xml, example=}]
|
}}, {contentType=application/xml, example=}]
|
||||||
|
|
||||||
- returns: RequestBuilder<[String:Int32]>
|
- returns: RequestBuilder<[String:Int32]>
|
||||||
@ -166,12 +166,12 @@ public class StoreAPI: APIBase {
|
|||||||
- GET /store/order/{orderId}
|
- GET /store/order/{orderId}
|
||||||
- For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
- For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"petId" : 123456789,
|
"petId" : 6,
|
||||||
"quantity" : 123,
|
"quantity" : 1,
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
||||||
"complete" : true,
|
"complete" : true,
|
||||||
"status" : "aeiou"
|
"status" : "placed"
|
||||||
}}, {contentType=application/xml, example=<Order>
|
}}, {contentType=application/xml, example=<Order>
|
||||||
<id>123456789</id>
|
<id>123456789</id>
|
||||||
<petId>123456789</petId>
|
<petId>123456789</petId>
|
||||||
@ -181,12 +181,12 @@ public class StoreAPI: APIBase {
|
|||||||
<complete>true</complete>
|
<complete>true</complete>
|
||||||
</Order>}]
|
</Order>}]
|
||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"petId" : 123456789,
|
"petId" : 6,
|
||||||
"quantity" : 123,
|
"quantity" : 1,
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
||||||
"complete" : true,
|
"complete" : true,
|
||||||
"status" : "aeiou"
|
"status" : "placed"
|
||||||
}}, {contentType=application/xml, example=<Order>
|
}}, {contentType=application/xml, example=<Order>
|
||||||
<id>123456789</id>
|
<id>123456789</id>
|
||||||
<petId>123456789</petId>
|
<petId>123456789</petId>
|
||||||
@ -253,12 +253,12 @@ public class StoreAPI: APIBase {
|
|||||||
- POST /store/order
|
- POST /store/order
|
||||||
-
|
-
|
||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"petId" : 123456789,
|
"petId" : 6,
|
||||||
"quantity" : 123,
|
"quantity" : 1,
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
||||||
"complete" : true,
|
"complete" : true,
|
||||||
"status" : "aeiou"
|
"status" : "placed"
|
||||||
}}, {contentType=application/xml, example=<Order>
|
}}, {contentType=application/xml, example=<Order>
|
||||||
<id>123456789</id>
|
<id>123456789</id>
|
||||||
<petId>123456789</petId>
|
<petId>123456789</petId>
|
||||||
@ -268,12 +268,12 @@ public class StoreAPI: APIBase {
|
|||||||
<complete>true</complete>
|
<complete>true</complete>
|
||||||
</Order>}]
|
</Order>}]
|
||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"petId" : 123456789,
|
"petId" : 6,
|
||||||
"quantity" : 123,
|
"quantity" : 1,
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
||||||
"complete" : true,
|
"complete" : true,
|
||||||
"status" : "aeiou"
|
"status" : "placed"
|
||||||
}}, {contentType=application/xml, example=<Order>
|
}}, {contentType=application/xml, example=<Order>
|
||||||
<id>123456789</id>
|
<id>123456789</id>
|
||||||
<petId>123456789</petId>
|
<petId>123456789</petId>
|
||||||
|
@ -267,9 +267,9 @@ public class UserAPI: APIBase {
|
|||||||
"firstName" : "aeiou",
|
"firstName" : "aeiou",
|
||||||
"lastName" : "aeiou",
|
"lastName" : "aeiou",
|
||||||
"password" : "aeiou",
|
"password" : "aeiou",
|
||||||
"userStatus" : 123,
|
"userStatus" : 6,
|
||||||
"phone" : "aeiou",
|
"phone" : "aeiou",
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"email" : "aeiou",
|
"email" : "aeiou",
|
||||||
"username" : "aeiou"
|
"username" : "aeiou"
|
||||||
}}, {contentType=application/xml, example=<User>
|
}}, {contentType=application/xml, example=<User>
|
||||||
@ -286,9 +286,9 @@ public class UserAPI: APIBase {
|
|||||||
"firstName" : "aeiou",
|
"firstName" : "aeiou",
|
||||||
"lastName" : "aeiou",
|
"lastName" : "aeiou",
|
||||||
"password" : "aeiou",
|
"password" : "aeiou",
|
||||||
"userStatus" : 123,
|
"userStatus" : 6,
|
||||||
"phone" : "aeiou",
|
"phone" : "aeiou",
|
||||||
"id" : 123456789,
|
"id" : 0,
|
||||||
"email" : "aeiou",
|
"email" : "aeiou",
|
||||||
"username" : "aeiou"
|
"username" : "aeiou"
|
||||||
}}, {contentType=application/xml, example=<User>
|
}}, {contentType=application/xml, example=<User>
|
||||||
|
@ -134,14 +134,14 @@ open class PetAPI: APIBase {
|
|||||||
</Pet>}, {contentType=application/json, example=[ {
|
</Pet>}, {contentType=application/json, example=[ {
|
||||||
"photoUrls" : [ "aeiou" ],
|
"photoUrls" : [ "aeiou" ],
|
||||||
"name" : "doggie",
|
"name" : "doggie",
|
||||||
"id" : 7,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 4
|
"id" : 6
|
||||||
},
|
},
|
||||||
"tags" : [ {
|
"tags" : [ {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 5
|
"id" : 1
|
||||||
} ],
|
} ],
|
||||||
"status" : "available"
|
"status" : "available"
|
||||||
} ]}]
|
} ]}]
|
||||||
@ -157,14 +157,14 @@ open class PetAPI: APIBase {
|
|||||||
</Pet>}, {contentType=application/json, example=[ {
|
</Pet>}, {contentType=application/json, example=[ {
|
||||||
"photoUrls" : [ "aeiou" ],
|
"photoUrls" : [ "aeiou" ],
|
||||||
"name" : "doggie",
|
"name" : "doggie",
|
||||||
"id" : 7,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 4
|
"id" : 6
|
||||||
},
|
},
|
||||||
"tags" : [ {
|
"tags" : [ {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 5
|
"id" : 1
|
||||||
} ],
|
} ],
|
||||||
"status" : "available"
|
"status" : "available"
|
||||||
} ]}]
|
} ]}]
|
||||||
@ -221,14 +221,14 @@ open class PetAPI: APIBase {
|
|||||||
</Pet>}, {contentType=application/json, example=[ {
|
</Pet>}, {contentType=application/json, example=[ {
|
||||||
"photoUrls" : [ "aeiou" ],
|
"photoUrls" : [ "aeiou" ],
|
||||||
"name" : "doggie",
|
"name" : "doggie",
|
||||||
"id" : 3,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 2
|
"id" : 6
|
||||||
},
|
},
|
||||||
"tags" : [ {
|
"tags" : [ {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 9
|
"id" : 1
|
||||||
} ],
|
} ],
|
||||||
"status" : "available"
|
"status" : "available"
|
||||||
} ]}]
|
} ]}]
|
||||||
@ -244,14 +244,14 @@ open class PetAPI: APIBase {
|
|||||||
</Pet>}, {contentType=application/json, example=[ {
|
</Pet>}, {contentType=application/json, example=[ {
|
||||||
"photoUrls" : [ "aeiou" ],
|
"photoUrls" : [ "aeiou" ],
|
||||||
"name" : "doggie",
|
"name" : "doggie",
|
||||||
"id" : 3,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 2
|
"id" : 6
|
||||||
},
|
},
|
||||||
"tags" : [ {
|
"tags" : [ {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 9
|
"id" : 1
|
||||||
} ],
|
} ],
|
||||||
"status" : "available"
|
"status" : "available"
|
||||||
} ]}]
|
} ]}]
|
||||||
@ -308,14 +308,14 @@ open class PetAPI: APIBase {
|
|||||||
</Pet>}, {contentType=application/json, example={
|
</Pet>}, {contentType=application/json, example={
|
||||||
"photoUrls" : [ "aeiou" ],
|
"photoUrls" : [ "aeiou" ],
|
||||||
"name" : "doggie",
|
"name" : "doggie",
|
||||||
"id" : 8,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 2
|
"id" : 6
|
||||||
},
|
},
|
||||||
"tags" : [ {
|
"tags" : [ {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 8
|
"id" : 1
|
||||||
} ],
|
} ],
|
||||||
"status" : "available"
|
"status" : "available"
|
||||||
}}]
|
}}]
|
||||||
@ -331,14 +331,14 @@ open class PetAPI: APIBase {
|
|||||||
</Pet>}, {contentType=application/json, example={
|
</Pet>}, {contentType=application/json, example={
|
||||||
"photoUrls" : [ "aeiou" ],
|
"photoUrls" : [ "aeiou" ],
|
||||||
"name" : "doggie",
|
"name" : "doggie",
|
||||||
"id" : 8,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 2
|
"id" : 6
|
||||||
},
|
},
|
||||||
"tags" : [ {
|
"tags" : [ {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 8
|
"id" : 1
|
||||||
} ],
|
} ],
|
||||||
"status" : "available"
|
"status" : "available"
|
||||||
}}]
|
}}]
|
||||||
@ -471,7 +471,7 @@ open class PetAPI: APIBase {
|
|||||||
- type: oauth2
|
- type: oauth2
|
||||||
- name: petstore_auth
|
- name: petstore_auth
|
||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"code" : 9,
|
"code" : 0,
|
||||||
"type" : "aeiou",
|
"type" : "aeiou",
|
||||||
"message" : "aeiou"
|
"message" : "aeiou"
|
||||||
}}]
|
}}]
|
||||||
|
@ -66,7 +66,7 @@ open class StoreAPI: APIBase {
|
|||||||
- type: apiKey api_key
|
- type: apiKey api_key
|
||||||
- name: api_key
|
- name: api_key
|
||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"key" : 5
|
"key" : 0
|
||||||
}}]
|
}}]
|
||||||
|
|
||||||
- returns: RequestBuilder<[String:Int32]>
|
- returns: RequestBuilder<[String:Int32]>
|
||||||
@ -109,8 +109,8 @@ open class StoreAPI: APIBase {
|
|||||||
<status>aeiou</status>
|
<status>aeiou</status>
|
||||||
<complete>true</complete>
|
<complete>true</complete>
|
||||||
</Order>}, {contentType=application/json, example={
|
</Order>}, {contentType=application/json, example={
|
||||||
"petId" : 8,
|
"petId" : 6,
|
||||||
"quantity" : 9,
|
"quantity" : 1,
|
||||||
"id" : 0,
|
"id" : 0,
|
||||||
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
||||||
"complete" : false,
|
"complete" : false,
|
||||||
@ -124,8 +124,8 @@ open class StoreAPI: APIBase {
|
|||||||
<status>aeiou</status>
|
<status>aeiou</status>
|
||||||
<complete>true</complete>
|
<complete>true</complete>
|
||||||
</Order>}, {contentType=application/json, example={
|
</Order>}, {contentType=application/json, example={
|
||||||
"petId" : 8,
|
"petId" : 6,
|
||||||
"quantity" : 9,
|
"quantity" : 1,
|
||||||
"id" : 0,
|
"id" : 0,
|
||||||
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
||||||
"complete" : false,
|
"complete" : false,
|
||||||
@ -176,8 +176,8 @@ open class StoreAPI: APIBase {
|
|||||||
<complete>true</complete>
|
<complete>true</complete>
|
||||||
</Order>}, {contentType=application/json, example={
|
</Order>}, {contentType=application/json, example={
|
||||||
"petId" : 6,
|
"petId" : 6,
|
||||||
"quantity" : 6,
|
"quantity" : 1,
|
||||||
"id" : 7,
|
"id" : 0,
|
||||||
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
||||||
"complete" : false,
|
"complete" : false,
|
||||||
"status" : "placed"
|
"status" : "placed"
|
||||||
@ -191,8 +191,8 @@ open class StoreAPI: APIBase {
|
|||||||
<complete>true</complete>
|
<complete>true</complete>
|
||||||
</Order>}, {contentType=application/json, example={
|
</Order>}, {contentType=application/json, example={
|
||||||
"petId" : 6,
|
"petId" : 6,
|
||||||
"quantity" : 6,
|
"quantity" : 1,
|
||||||
"id" : 7,
|
"id" : 0,
|
||||||
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
||||||
"complete" : false,
|
"complete" : false,
|
||||||
"status" : "placed"
|
"status" : "placed"
|
||||||
|
@ -181,9 +181,9 @@ open class UserAPI: APIBase {
|
|||||||
"firstName" : "aeiou",
|
"firstName" : "aeiou",
|
||||||
"lastName" : "aeiou",
|
"lastName" : "aeiou",
|
||||||
"password" : "aeiou",
|
"password" : "aeiou",
|
||||||
"userStatus" : 8,
|
"userStatus" : 6,
|
||||||
"phone" : "aeiou",
|
"phone" : "aeiou",
|
||||||
"id" : 6,
|
"id" : 0,
|
||||||
"email" : "aeiou",
|
"email" : "aeiou",
|
||||||
"username" : "aeiou"
|
"username" : "aeiou"
|
||||||
}}]
|
}}]
|
||||||
@ -200,9 +200,9 @@ open class UserAPI: APIBase {
|
|||||||
"firstName" : "aeiou",
|
"firstName" : "aeiou",
|
||||||
"lastName" : "aeiou",
|
"lastName" : "aeiou",
|
||||||
"password" : "aeiou",
|
"password" : "aeiou",
|
||||||
"userStatus" : 8,
|
"userStatus" : 6,
|
||||||
"phone" : "aeiou",
|
"phone" : "aeiou",
|
||||||
"id" : 6,
|
"id" : 0,
|
||||||
"email" : "aeiou",
|
"email" : "aeiou",
|
||||||
"username" : "aeiou"
|
"username" : "aeiou"
|
||||||
}}]
|
}}]
|
||||||
|
@ -187,14 +187,14 @@ open class PetAPI: APIBase {
|
|||||||
</Pet>}, {contentType=application/json, example=[ {
|
</Pet>}, {contentType=application/json, example=[ {
|
||||||
"photoUrls" : [ "aeiou" ],
|
"photoUrls" : [ "aeiou" ],
|
||||||
"name" : "doggie",
|
"name" : "doggie",
|
||||||
"id" : 5,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 5
|
"id" : 6
|
||||||
},
|
},
|
||||||
"tags" : [ {
|
"tags" : [ {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 4
|
"id" : 1
|
||||||
} ],
|
} ],
|
||||||
"status" : "available"
|
"status" : "available"
|
||||||
} ]}]
|
} ]}]
|
||||||
@ -210,14 +210,14 @@ open class PetAPI: APIBase {
|
|||||||
</Pet>}, {contentType=application/json, example=[ {
|
</Pet>}, {contentType=application/json, example=[ {
|
||||||
"photoUrls" : [ "aeiou" ],
|
"photoUrls" : [ "aeiou" ],
|
||||||
"name" : "doggie",
|
"name" : "doggie",
|
||||||
"id" : 5,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 5
|
"id" : 6
|
||||||
},
|
},
|
||||||
"tags" : [ {
|
"tags" : [ {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 4
|
"id" : 1
|
||||||
} ],
|
} ],
|
||||||
"status" : "available"
|
"status" : "available"
|
||||||
} ]}]
|
} ]}]
|
||||||
@ -294,11 +294,11 @@ open class PetAPI: APIBase {
|
|||||||
"id" : 0,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 3
|
"id" : 6
|
||||||
},
|
},
|
||||||
"tags" : [ {
|
"tags" : [ {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 8
|
"id" : 1
|
||||||
} ],
|
} ],
|
||||||
"status" : "available"
|
"status" : "available"
|
||||||
} ]}]
|
} ]}]
|
||||||
@ -317,11 +317,11 @@ open class PetAPI: APIBase {
|
|||||||
"id" : 0,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 3
|
"id" : 6
|
||||||
},
|
},
|
||||||
"tags" : [ {
|
"tags" : [ {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 8
|
"id" : 1
|
||||||
} ],
|
} ],
|
||||||
"status" : "available"
|
"status" : "available"
|
||||||
} ]}]
|
} ]}]
|
||||||
@ -398,11 +398,11 @@ open class PetAPI: APIBase {
|
|||||||
"id" : 0,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 8
|
"id" : 6
|
||||||
},
|
},
|
||||||
"tags" : [ {
|
"tags" : [ {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 7
|
"id" : 1
|
||||||
} ],
|
} ],
|
||||||
"status" : "available"
|
"status" : "available"
|
||||||
}}]
|
}}]
|
||||||
@ -421,11 +421,11 @@ open class PetAPI: APIBase {
|
|||||||
"id" : 0,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 8
|
"id" : 6
|
||||||
},
|
},
|
||||||
"tags" : [ {
|
"tags" : [ {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 7
|
"id" : 1
|
||||||
} ],
|
} ],
|
||||||
"status" : "available"
|
"status" : "available"
|
||||||
}}]
|
}}]
|
||||||
@ -613,7 +613,7 @@ open class PetAPI: APIBase {
|
|||||||
- type: oauth2
|
- type: oauth2
|
||||||
- name: petstore_auth
|
- name: petstore_auth
|
||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"code" : 7,
|
"code" : 0,
|
||||||
"type" : "aeiou",
|
"type" : "aeiou",
|
||||||
"message" : "aeiou"
|
"message" : "aeiou"
|
||||||
}}]
|
}}]
|
||||||
|
@ -100,7 +100,7 @@ open class StoreAPI: APIBase {
|
|||||||
- type: apiKey api_key
|
- type: apiKey api_key
|
||||||
- name: api_key
|
- name: api_key
|
||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"key" : 7
|
"key" : 0
|
||||||
}}]
|
}}]
|
||||||
|
|
||||||
- returns: RequestBuilder<[String:Int32]>
|
- returns: RequestBuilder<[String:Int32]>
|
||||||
@ -161,7 +161,7 @@ open class StoreAPI: APIBase {
|
|||||||
<complete>true</complete>
|
<complete>true</complete>
|
||||||
</Order>}, {contentType=application/json, example={
|
</Order>}, {contentType=application/json, example={
|
||||||
"petId" : 6,
|
"petId" : 6,
|
||||||
"quantity" : 5,
|
"quantity" : 1,
|
||||||
"id" : 0,
|
"id" : 0,
|
||||||
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
||||||
"complete" : false,
|
"complete" : false,
|
||||||
@ -176,7 +176,7 @@ open class StoreAPI: APIBase {
|
|||||||
<complete>true</complete>
|
<complete>true</complete>
|
||||||
</Order>}, {contentType=application/json, example={
|
</Order>}, {contentType=application/json, example={
|
||||||
"petId" : 6,
|
"petId" : 6,
|
||||||
"quantity" : 5,
|
"quantity" : 1,
|
||||||
"id" : 0,
|
"id" : 0,
|
||||||
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
||||||
"complete" : false,
|
"complete" : false,
|
||||||
@ -243,9 +243,9 @@ open class StoreAPI: APIBase {
|
|||||||
<status>aeiou</status>
|
<status>aeiou</status>
|
||||||
<complete>true</complete>
|
<complete>true</complete>
|
||||||
</Order>}, {contentType=application/json, example={
|
</Order>}, {contentType=application/json, example={
|
||||||
"petId" : 9,
|
"petId" : 6,
|
||||||
"quantity" : 9,
|
"quantity" : 1,
|
||||||
"id" : 3,
|
"id" : 0,
|
||||||
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
||||||
"complete" : false,
|
"complete" : false,
|
||||||
"status" : "placed"
|
"status" : "placed"
|
||||||
@ -258,9 +258,9 @@ open class StoreAPI: APIBase {
|
|||||||
<status>aeiou</status>
|
<status>aeiou</status>
|
||||||
<complete>true</complete>
|
<complete>true</complete>
|
||||||
</Order>}, {contentType=application/json, example={
|
</Order>}, {contentType=application/json, example={
|
||||||
"petId" : 9,
|
"petId" : 6,
|
||||||
"quantity" : 9,
|
"quantity" : 1,
|
||||||
"id" : 3,
|
"id" : 0,
|
||||||
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
||||||
"complete" : false,
|
"complete" : false,
|
||||||
"status" : "placed"
|
"status" : "placed"
|
||||||
|
@ -267,7 +267,7 @@ open class UserAPI: APIBase {
|
|||||||
"firstName" : "aeiou",
|
"firstName" : "aeiou",
|
||||||
"lastName" : "aeiou",
|
"lastName" : "aeiou",
|
||||||
"password" : "aeiou",
|
"password" : "aeiou",
|
||||||
"userStatus" : 5,
|
"userStatus" : 6,
|
||||||
"phone" : "aeiou",
|
"phone" : "aeiou",
|
||||||
"id" : 0,
|
"id" : 0,
|
||||||
"email" : "aeiou",
|
"email" : "aeiou",
|
||||||
@ -286,7 +286,7 @@ open class UserAPI: APIBase {
|
|||||||
"firstName" : "aeiou",
|
"firstName" : "aeiou",
|
||||||
"lastName" : "aeiou",
|
"lastName" : "aeiou",
|
||||||
"password" : "aeiou",
|
"password" : "aeiou",
|
||||||
"userStatus" : 5,
|
"userStatus" : 6,
|
||||||
"phone" : "aeiou",
|
"phone" : "aeiou",
|
||||||
"id" : 0,
|
"id" : 0,
|
||||||
"email" : "aeiou",
|
"email" : "aeiou",
|
||||||
|
@ -193,7 +193,7 @@ open class PetAPI: APIBase {
|
|||||||
</Pet>}, {contentType=application/json, example=[ {
|
</Pet>}, {contentType=application/json, example=[ {
|
||||||
"photoUrls" : [ "aeiou" ],
|
"photoUrls" : [ "aeiou" ],
|
||||||
"name" : "doggie",
|
"name" : "doggie",
|
||||||
"id" : 6,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 6
|
"id" : 6
|
||||||
@ -216,7 +216,7 @@ open class PetAPI: APIBase {
|
|||||||
</Pet>}, {contentType=application/json, example=[ {
|
</Pet>}, {contentType=application/json, example=[ {
|
||||||
"photoUrls" : [ "aeiou" ],
|
"photoUrls" : [ "aeiou" ],
|
||||||
"name" : "doggie",
|
"name" : "doggie",
|
||||||
"id" : 6,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 6
|
"id" : 6
|
||||||
@ -299,14 +299,14 @@ open class PetAPI: APIBase {
|
|||||||
</Pet>}, {contentType=application/json, example=[ {
|
</Pet>}, {contentType=application/json, example=[ {
|
||||||
"photoUrls" : [ "aeiou" ],
|
"photoUrls" : [ "aeiou" ],
|
||||||
"name" : "doggie",
|
"name" : "doggie",
|
||||||
"id" : 2,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 1
|
"id" : 6
|
||||||
},
|
},
|
||||||
"tags" : [ {
|
"tags" : [ {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 2
|
"id" : 1
|
||||||
} ],
|
} ],
|
||||||
"status" : "available"
|
"status" : "available"
|
||||||
} ]}]
|
} ]}]
|
||||||
@ -322,14 +322,14 @@ open class PetAPI: APIBase {
|
|||||||
</Pet>}, {contentType=application/json, example=[ {
|
</Pet>}, {contentType=application/json, example=[ {
|
||||||
"photoUrls" : [ "aeiou" ],
|
"photoUrls" : [ "aeiou" ],
|
||||||
"name" : "doggie",
|
"name" : "doggie",
|
||||||
"id" : 2,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 1
|
"id" : 6
|
||||||
},
|
},
|
||||||
"tags" : [ {
|
"tags" : [ {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 2
|
"id" : 1
|
||||||
} ],
|
} ],
|
||||||
"status" : "available"
|
"status" : "available"
|
||||||
} ]}]
|
} ]}]
|
||||||
@ -405,14 +405,14 @@ open class PetAPI: APIBase {
|
|||||||
</Pet>}, {contentType=application/json, example={
|
</Pet>}, {contentType=application/json, example={
|
||||||
"photoUrls" : [ "aeiou" ],
|
"photoUrls" : [ "aeiou" ],
|
||||||
"name" : "doggie",
|
"name" : "doggie",
|
||||||
"id" : 8,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 7
|
"id" : 6
|
||||||
},
|
},
|
||||||
"tags" : [ {
|
"tags" : [ {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 7
|
"id" : 1
|
||||||
} ],
|
} ],
|
||||||
"status" : "available"
|
"status" : "available"
|
||||||
}}]
|
}}]
|
||||||
@ -428,14 +428,14 @@ open class PetAPI: APIBase {
|
|||||||
</Pet>}, {contentType=application/json, example={
|
</Pet>}, {contentType=application/json, example={
|
||||||
"photoUrls" : [ "aeiou" ],
|
"photoUrls" : [ "aeiou" ],
|
||||||
"name" : "doggie",
|
"name" : "doggie",
|
||||||
"id" : 8,
|
"id" : 0,
|
||||||
"category" : {
|
"category" : {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 7
|
"id" : 6
|
||||||
},
|
},
|
||||||
"tags" : [ {
|
"tags" : [ {
|
||||||
"name" : "aeiou",
|
"name" : "aeiou",
|
||||||
"id" : 7
|
"id" : 1
|
||||||
} ],
|
} ],
|
||||||
"status" : "available"
|
"status" : "available"
|
||||||
}}]
|
}}]
|
||||||
@ -629,7 +629,7 @@ open class PetAPI: APIBase {
|
|||||||
- type: oauth2
|
- type: oauth2
|
||||||
- name: petstore_auth
|
- name: petstore_auth
|
||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"code" : 9,
|
"code" : 0,
|
||||||
"type" : "aeiou",
|
"type" : "aeiou",
|
||||||
"message" : "aeiou"
|
"message" : "aeiou"
|
||||||
}}]
|
}}]
|
||||||
|
@ -104,7 +104,7 @@ open class StoreAPI: APIBase {
|
|||||||
- type: apiKey api_key
|
- type: apiKey api_key
|
||||||
- name: api_key
|
- name: api_key
|
||||||
- examples: [{contentType=application/json, example={
|
- examples: [{contentType=application/json, example={
|
||||||
"key" : 9
|
"key" : 0
|
||||||
}}]
|
}}]
|
||||||
|
|
||||||
- returns: RequestBuilder<[String:Int32]>
|
- returns: RequestBuilder<[String:Int32]>
|
||||||
@ -166,9 +166,9 @@ open class StoreAPI: APIBase {
|
|||||||
<status>aeiou</status>
|
<status>aeiou</status>
|
||||||
<complete>true</complete>
|
<complete>true</complete>
|
||||||
</Order>}, {contentType=application/json, example={
|
</Order>}, {contentType=application/json, example={
|
||||||
"petId" : 0,
|
"petId" : 6,
|
||||||
"quantity" : 0,
|
"quantity" : 1,
|
||||||
"id" : 2,
|
"id" : 0,
|
||||||
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
||||||
"complete" : false,
|
"complete" : false,
|
||||||
"status" : "placed"
|
"status" : "placed"
|
||||||
@ -181,9 +181,9 @@ open class StoreAPI: APIBase {
|
|||||||
<status>aeiou</status>
|
<status>aeiou</status>
|
||||||
<complete>true</complete>
|
<complete>true</complete>
|
||||||
</Order>}, {contentType=application/json, example={
|
</Order>}, {contentType=application/json, example={
|
||||||
"petId" : 0,
|
"petId" : 6,
|
||||||
"quantity" : 0,
|
"quantity" : 1,
|
||||||
"id" : 2,
|
"id" : 0,
|
||||||
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
||||||
"complete" : false,
|
"complete" : false,
|
||||||
"status" : "placed"
|
"status" : "placed"
|
||||||
@ -251,8 +251,8 @@ open class StoreAPI: APIBase {
|
|||||||
<status>aeiou</status>
|
<status>aeiou</status>
|
||||||
<complete>true</complete>
|
<complete>true</complete>
|
||||||
</Order>}, {contentType=application/json, example={
|
</Order>}, {contentType=application/json, example={
|
||||||
"petId" : 4,
|
"petId" : 6,
|
||||||
"quantity" : 3,
|
"quantity" : 1,
|
||||||
"id" : 0,
|
"id" : 0,
|
||||||
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
||||||
"complete" : false,
|
"complete" : false,
|
||||||
@ -266,8 +266,8 @@ open class StoreAPI: APIBase {
|
|||||||
<status>aeiou</status>
|
<status>aeiou</status>
|
||||||
<complete>true</complete>
|
<complete>true</complete>
|
||||||
</Order>}, {contentType=application/json, example={
|
</Order>}, {contentType=application/json, example={
|
||||||
"petId" : 4,
|
"petId" : 6,
|
||||||
"quantity" : 3,
|
"quantity" : 1,
|
||||||
"id" : 0,
|
"id" : 0,
|
||||||
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
||||||
"complete" : false,
|
"complete" : false,
|
||||||
|
@ -277,9 +277,9 @@ open class UserAPI: APIBase {
|
|||||||
"firstName" : "aeiou",
|
"firstName" : "aeiou",
|
||||||
"lastName" : "aeiou",
|
"lastName" : "aeiou",
|
||||||
"password" : "aeiou",
|
"password" : "aeiou",
|
||||||
"userStatus" : 2,
|
"userStatus" : 6,
|
||||||
"phone" : "aeiou",
|
"phone" : "aeiou",
|
||||||
"id" : 7,
|
"id" : 0,
|
||||||
"email" : "aeiou",
|
"email" : "aeiou",
|
||||||
"username" : "aeiou"
|
"username" : "aeiou"
|
||||||
}}]
|
}}]
|
||||||
@ -296,9 +296,9 @@ open class UserAPI: APIBase {
|
|||||||
"firstName" : "aeiou",
|
"firstName" : "aeiou",
|
||||||
"lastName" : "aeiou",
|
"lastName" : "aeiou",
|
||||||
"password" : "aeiou",
|
"password" : "aeiou",
|
||||||
"userStatus" : 2,
|
"userStatus" : 6,
|
||||||
"phone" : "aeiou",
|
"phone" : "aeiou",
|
||||||
"id" : 7,
|
"id" : 0,
|
||||||
"email" : "aeiou",
|
"email" : "aeiou",
|
||||||
"username" : "aeiou"
|
"username" : "aeiou"
|
||||||
}}]
|
}}]
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201703132058
|
## @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201703151645
|
||||||
|
|
||||||
### Building
|
### Building
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ navigate to the folder of your consuming project and run one of next commando's.
|
|||||||
_published:_
|
_published:_
|
||||||
|
|
||||||
```
|
```
|
||||||
npm install @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201703132058 --save
|
npm install @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201703151645 --save
|
||||||
```
|
```
|
||||||
|
|
||||||
_unPublished (not recommended):_
|
_unPublished (not recommended):_
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@swagger/angular2-typescript-petstore",
|
"name": "@swagger/angular2-typescript-petstore",
|
||||||
"version": "0.0.1-SNAPSHOT.201703132058",
|
"version": "0.0.1-SNAPSHOT.201703151645",
|
||||||
"description": "swagger client for @swagger/angular2-typescript-petstore",
|
"description": "swagger client for @swagger/angular2-typescript-petstore",
|
||||||
"author": "Swagger Codegen Contributors",
|
"author": "Swagger Codegen Contributors",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@swagger/angular2-typescript-petstore",
|
"name": "@swagger/angular2-typescript-petstore",
|
||||||
"version": "0.0.1-SNAPSHOT.201703061507",
|
"version": "0.0.1-SNAPSHOT.201703151645",
|
||||||
"description": "JQuery client for @swagger/angular2-typescript-petstore",
|
"description": "JQuery client for @swagger/angular2-typescript-petstore",
|
||||||
"main": "api.js",
|
"main": "api.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -356,18 +356,18 @@ font-style: italic;
|
|||||||
<h3 class="field-label">Example data</h3>
|
<h3 class="field-label">Example data</h3>
|
||||||
<div class="example-data-content-type">Content-Type: application/json</div>
|
<div class="example-data-content-type">Content-Type: application/json</div>
|
||||||
<pre class="example"><code>[ {
|
<pre class="example"><code>[ {
|
||||||
"tags" : [ {
|
"photoUrls" : [ "aeiou" ],
|
||||||
"id" : 7,
|
|
||||||
"name" : "aeiou"
|
|
||||||
} ],
|
|
||||||
"id" : 2,
|
|
||||||
"category" : {
|
|
||||||
"id" : 2,
|
|
||||||
"name" : "aeiou"
|
|
||||||
},
|
|
||||||
"status" : "available",
|
|
||||||
"name" : "doggie",
|
"name" : "doggie",
|
||||||
"photoUrls" : [ "aeiou" ]
|
"id" : 0,
|
||||||
|
"category" : {
|
||||||
|
"name" : "aeiou",
|
||||||
|
"id" : 6
|
||||||
|
},
|
||||||
|
"tags" : [ {
|
||||||
|
"name" : "aeiou",
|
||||||
|
"id" : 1
|
||||||
|
} ],
|
||||||
|
"status" : "available"
|
||||||
} ]</code></pre>
|
} ]</code></pre>
|
||||||
|
|
||||||
<h3 class="field-label">Produces</h3>
|
<h3 class="field-label">Produces</h3>
|
||||||
@ -429,18 +429,18 @@ font-style: italic;
|
|||||||
<h3 class="field-label">Example data</h3>
|
<h3 class="field-label">Example data</h3>
|
||||||
<div class="example-data-content-type">Content-Type: application/json</div>
|
<div class="example-data-content-type">Content-Type: application/json</div>
|
||||||
<pre class="example"><code>[ {
|
<pre class="example"><code>[ {
|
||||||
"tags" : [ {
|
"photoUrls" : [ "aeiou" ],
|
||||||
"id" : 1,
|
|
||||||
"name" : "aeiou"
|
|
||||||
} ],
|
|
||||||
"id" : 9,
|
|
||||||
"category" : {
|
|
||||||
"id" : 4,
|
|
||||||
"name" : "aeiou"
|
|
||||||
},
|
|
||||||
"status" : "available",
|
|
||||||
"name" : "doggie",
|
"name" : "doggie",
|
||||||
"photoUrls" : [ "aeiou" ]
|
"id" : 0,
|
||||||
|
"category" : {
|
||||||
|
"name" : "aeiou",
|
||||||
|
"id" : 6
|
||||||
|
},
|
||||||
|
"tags" : [ {
|
||||||
|
"name" : "aeiou",
|
||||||
|
"id" : 1
|
||||||
|
} ],
|
||||||
|
"status" : "available"
|
||||||
} ]</code></pre>
|
} ]</code></pre>
|
||||||
|
|
||||||
<h3 class="field-label">Produces</h3>
|
<h3 class="field-label">Produces</h3>
|
||||||
@ -502,18 +502,18 @@ font-style: italic;
|
|||||||
<h3 class="field-label">Example data</h3>
|
<h3 class="field-label">Example data</h3>
|
||||||
<div class="example-data-content-type">Content-Type: application/json</div>
|
<div class="example-data-content-type">Content-Type: application/json</div>
|
||||||
<pre class="example"><code>{
|
<pre class="example"><code>{
|
||||||
"tags" : [ {
|
"photoUrls" : [ "aeiou" ],
|
||||||
"id" : 5,
|
|
||||||
"name" : "aeiou"
|
|
||||||
} ],
|
|
||||||
"id" : 8,
|
|
||||||
"category" : {
|
|
||||||
"id" : 3,
|
|
||||||
"name" : "aeiou"
|
|
||||||
},
|
|
||||||
"status" : "available",
|
|
||||||
"name" : "doggie",
|
"name" : "doggie",
|
||||||
"photoUrls" : [ "aeiou" ]
|
"id" : 0,
|
||||||
|
"category" : {
|
||||||
|
"name" : "aeiou",
|
||||||
|
"id" : 6
|
||||||
|
},
|
||||||
|
"tags" : [ {
|
||||||
|
"name" : "aeiou",
|
||||||
|
"id" : 1
|
||||||
|
} ],
|
||||||
|
"status" : "available"
|
||||||
}</code></pre>
|
}</code></pre>
|
||||||
|
|
||||||
<h3 class="field-label">Produces</h3>
|
<h3 class="field-label">Produces</h3>
|
||||||
@ -679,9 +679,9 @@ font-style: italic;
|
|||||||
<h3 class="field-label">Example data</h3>
|
<h3 class="field-label">Example data</h3>
|
||||||
<div class="example-data-content-type">Content-Type: application/json</div>
|
<div class="example-data-content-type">Content-Type: application/json</div>
|
||||||
<pre class="example"><code>{
|
<pre class="example"><code>{
|
||||||
"message" : "aeiou",
|
"code" : 0,
|
||||||
"code" : 3,
|
"type" : "aeiou",
|
||||||
"type" : "aeiou"
|
"message" : "aeiou"
|
||||||
}</code></pre>
|
}</code></pre>
|
||||||
|
|
||||||
<h3 class="field-label">Produces</h3>
|
<h3 class="field-label">Produces</h3>
|
||||||
@ -762,7 +762,7 @@ font-style: italic;
|
|||||||
<h3 class="field-label">Example data</h3>
|
<h3 class="field-label">Example data</h3>
|
||||||
<div class="example-data-content-type">Content-Type: application/json</div>
|
<div class="example-data-content-type">Content-Type: application/json</div>
|
||||||
<pre class="example"><code>{
|
<pre class="example"><code>{
|
||||||
"key" : 9
|
"key" : 0
|
||||||
}</code></pre>
|
}</code></pre>
|
||||||
|
|
||||||
<h3 class="field-label">Produces</h3>
|
<h3 class="field-label">Produces</h3>
|
||||||
@ -818,12 +818,12 @@ font-style: italic;
|
|||||||
<h3 class="field-label">Example data</h3>
|
<h3 class="field-label">Example data</h3>
|
||||||
<div class="example-data-content-type">Content-Type: application/json</div>
|
<div class="example-data-content-type">Content-Type: application/json</div>
|
||||||
<pre class="example"><code>{
|
<pre class="example"><code>{
|
||||||
"id" : 5,
|
"petId" : 6,
|
||||||
"petId" : 8,
|
"quantity" : 1,
|
||||||
|
"id" : 0,
|
||||||
|
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
||||||
"complete" : false,
|
"complete" : false,
|
||||||
"status" : "placed",
|
"status" : "placed"
|
||||||
"quantity" : 4,
|
|
||||||
"shipDate" : "2000-01-23T04:56:07.000+00:00"
|
|
||||||
}</code></pre>
|
}</code></pre>
|
||||||
|
|
||||||
<h3 class="field-label">Produces</h3>
|
<h3 class="field-label">Produces</h3>
|
||||||
@ -887,12 +887,12 @@ font-style: italic;
|
|||||||
<h3 class="field-label">Example data</h3>
|
<h3 class="field-label">Example data</h3>
|
||||||
<div class="example-data-content-type">Content-Type: application/json</div>
|
<div class="example-data-content-type">Content-Type: application/json</div>
|
||||||
<pre class="example"><code>{
|
<pre class="example"><code>{
|
||||||
"id" : 6,
|
"petId" : 6,
|
||||||
"petId" : 9,
|
"quantity" : 1,
|
||||||
|
"id" : 0,
|
||||||
|
"shipDate" : "2000-01-23T04:56:07.000+00:00",
|
||||||
"complete" : false,
|
"complete" : false,
|
||||||
"status" : "placed",
|
"status" : "placed"
|
||||||
"quantity" : 2,
|
|
||||||
"shipDate" : "2000-01-23T04:56:07.000+00:00"
|
|
||||||
}</code></pre>
|
}</code></pre>
|
||||||
|
|
||||||
<h3 class="field-label">Produces</h3>
|
<h3 class="field-label">Produces</h3>
|
||||||
@ -1109,14 +1109,14 @@ font-style: italic;
|
|||||||
<h3 class="field-label">Example data</h3>
|
<h3 class="field-label">Example data</h3>
|
||||||
<div class="example-data-content-type">Content-Type: application/json</div>
|
<div class="example-data-content-type">Content-Type: application/json</div>
|
||||||
<pre class="example"><code>{
|
<pre class="example"><code>{
|
||||||
"id" : 4,
|
|
||||||
"lastName" : "aeiou",
|
|
||||||
"phone" : "aeiou",
|
|
||||||
"username" : "aeiou",
|
|
||||||
"email" : "aeiou",
|
|
||||||
"userStatus" : 1,
|
|
||||||
"firstName" : "aeiou",
|
"firstName" : "aeiou",
|
||||||
"password" : "aeiou"
|
"lastName" : "aeiou",
|
||||||
|
"password" : "aeiou",
|
||||||
|
"userStatus" : 6,
|
||||||
|
"phone" : "aeiou",
|
||||||
|
"id" : 0,
|
||||||
|
"email" : "aeiou",
|
||||||
|
"username" : "aeiou"
|
||||||
}</code></pre>
|
}</code></pre>
|
||||||
|
|
||||||
<h3 class="field-label">Produces</h3>
|
<h3 class="field-label">Produces</h3>
|
||||||
|
@ -7293,7 +7293,7 @@ except ApiException as e:
|
|||||||
</div>
|
</div>
|
||||||
<div id="generator">
|
<div id="generator">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
Generated 2017-03-13T21:00:41.149+01:00
|
Generated 2017-03-15T16:43:35.978+01:00
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -7,7 +7,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
|
|||||||
global.json = global.json
|
global.json = global.json
|
||||||
EndProjectSection
|
EndProjectSection
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "IO.Swagger", "src\IO.Swagger\IO.Swagger.xproj", "{94E80C7B-1E0B-4A99-9EDC-AA6CADE4B45A}"
|
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "IO.Swagger", "src\IO.Swagger\IO.Swagger.xproj", "{4AD738F8-0EE6-48AF-9501-113739BD4D31}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
@ -15,10 +15,10 @@ Global
|
|||||||
Release|Any CPU = Release|Any CPU
|
Release|Any CPU = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{94E80C7B-1E0B-4A99-9EDC-AA6CADE4B45A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{4AD738F8-0EE6-48AF-9501-113739BD4D31}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{94E80C7B-1E0B-4A99-9EDC-AA6CADE4B45A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{4AD738F8-0EE6-48AF-9501-113739BD4D31}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{94E80C7B-1E0B-4A99-9EDC-AA6CADE4B45A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{4AD738F8-0EE6-48AF-9501-113739BD4D31}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{94E80C7B-1E0B-4A99-9EDC-AA6CADE4B45A}.Release|Any CPU.Build.0 = Release|Any CPU
|
{4AD738F8-0EE6-48AF-9501-113739BD4D31}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" />
|
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" />
|
||||||
<PropertyGroup Label="Globals">
|
<PropertyGroup Label="Globals">
|
||||||
<ProjectGuid>{94E80C7B-1E0B-4A99-9EDC-AA6CADE4B45A}</ProjectGuid>
|
<ProjectGuid>{4AD738F8-0EE6-48AF-9501-113739BD4D31}</ProjectGuid>
|
||||||
<RootNamespace>IO.Swagger</RootNamespace>
|
<RootNamespace>IO.Swagger</RootNamespace>
|
||||||
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath>
|
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath>
|
||||||
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath>
|
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath>
|
||||||
|
@ -108,11 +108,11 @@ paths:
|
|||||||
type: "array"
|
type: "array"
|
||||||
items:
|
items:
|
||||||
type: "string"
|
type: "string"
|
||||||
default: "available"
|
|
||||||
enum:
|
enum:
|
||||||
- "available"
|
- "available"
|
||||||
- "pending"
|
- "pending"
|
||||||
- "sold"
|
- "sold"
|
||||||
|
default: "available"
|
||||||
collectionFormat: "csv"
|
collectionFormat: "csv"
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
|
@ -108,11 +108,11 @@ paths:
|
|||||||
type: "array"
|
type: "array"
|
||||||
items:
|
items:
|
||||||
type: "string"
|
type: "string"
|
||||||
default: "available"
|
|
||||||
enum:
|
enum:
|
||||||
- "available"
|
- "available"
|
||||||
- "pending"
|
- "pending"
|
||||||
- "sold"
|
- "sold"
|
||||||
|
default: "available"
|
||||||
collectionFormat: "csv"
|
collectionFormat: "csv"
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
|
@ -13,7 +13,7 @@ To see how to make this your own, look here:
|
|||||||
[README](https://github.com/swagger-api/swagger-codegen/blob/master/README.md)
|
[README](https://github.com/swagger-api/swagger-codegen/blob/master/README.md)
|
||||||
|
|
||||||
- API version: 1.0.0
|
- API version: 1.0.0
|
||||||
- Build date: 2017-03-13T21:03:08.652+01:00
|
- Build date: 2017-03-15T16:43:30.840+01:00
|
||||||
|
|
||||||
|
|
||||||
### Running the server
|
### Running the server
|
||||||
|
@ -1,14 +1,17 @@
|
|||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
|
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.wso2.msf4j</groupId>
|
<groupId>org.wso2.msf4j</groupId>
|
||||||
<artifactId>msf4j-service</artifactId>
|
<artifactId>msf4j-service</artifactId>
|
||||||
<version>2.0.0</version>
|
<version>2.0.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>io.swagger</groupId>
|
<groupId>io.swagger</groupId>
|
||||||
<artifactId>swagger-msf4j-server</artifactId>
|
<artifactId>swagger-jaxrs-server</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>swagger-msf4j-server</name>
|
<name>swagger-jaxrs-server</name>
|
||||||
<version>1.0.0</version>
|
<version>1.0.0</version>
|
||||||
<build>
|
<build>
|
||||||
<sourceDirectory>src/main/java</sourceDirectory>
|
<sourceDirectory>src/main/java</sourceDirectory>
|
||||||
|
@ -0,0 +1,23 @@
|
|||||||
|
# Swagger Codegen Ignore
|
||||||
|
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
|
||||||
|
|
||||||
|
# Use this file to prevent files from being overwritten by the generator.
|
||||||
|
# The patterns follow closely to .gitignore or .dockerignore.
|
||||||
|
|
||||||
|
# As an example, the C# client generator defines ApiClient.cs.
|
||||||
|
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
|
||||||
|
#ApiClient.cs
|
||||||
|
|
||||||
|
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
||||||
|
#foo/*/qux
|
||||||
|
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
||||||
|
|
||||||
|
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
||||||
|
#foo/**/qux
|
||||||
|
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
||||||
|
|
||||||
|
# You can also negate patterns with an exclamation (!).
|
||||||
|
# For example, you can ignore all files in a docs folder with the file extension .md:
|
||||||
|
#docs/*.md
|
||||||
|
# Then explicitly reverse the ignore rule for a single file:
|
||||||
|
#!docs/README.md
|
8
samples/server/petstore/java-play-framework/LICENSE
Normal file
8
samples/server/petstore/java-play-framework/LICENSE
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
This software is licensed under the Apache 2 license, quoted below.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this project except in compliance with
|
||||||
|
the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an
|
||||||
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
||||||
|
language governing permissions and limitations under the License.
|
4
samples/server/petstore/java-play-framework/README
Normal file
4
samples/server/petstore/java-play-framework/README
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
This is your new Play application
|
||||||
|
=================================
|
||||||
|
|
||||||
|
This file will be packaged with your application when using `activator dist`.
|
@ -0,0 +1,96 @@
|
|||||||
|
package apimodels;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import com.fasterxml.jackson.annotation.*;
|
||||||
|
/**
|
||||||
|
* Category
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Category {
|
||||||
|
@JsonProperty("id")
|
||||||
|
private Long id = null;
|
||||||
|
|
||||||
|
@JsonProperty("name")
|
||||||
|
private String name = null;
|
||||||
|
|
||||||
|
public Category id(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get id
|
||||||
|
* @return id
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Long getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Category name(String name) {
|
||||||
|
this.name = name;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get name
|
||||||
|
* @return name
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Category category = (Category) o;
|
||||||
|
return Objects.equals(this.id, category.id) &&
|
||||||
|
Objects.equals(this.name, category.name);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(id, name);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class Category {\n");
|
||||||
|
|
||||||
|
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||||
|
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(java.lang.Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,222 @@
|
|||||||
|
package apimodels;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import com.fasterxml.jackson.annotation.*;
|
||||||
|
/**
|
||||||
|
* Order
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Order {
|
||||||
|
@JsonProperty("id")
|
||||||
|
private Long id = null;
|
||||||
|
|
||||||
|
@JsonProperty("petId")
|
||||||
|
private Long petId = null;
|
||||||
|
|
||||||
|
@JsonProperty("quantity")
|
||||||
|
private Integer quantity = null;
|
||||||
|
|
||||||
|
@JsonProperty("shipDate")
|
||||||
|
private OffsetDateTime shipDate = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Order Status
|
||||||
|
*/
|
||||||
|
public enum StatusEnum {
|
||||||
|
PLACED("placed"),
|
||||||
|
|
||||||
|
APPROVED("approved"),
|
||||||
|
|
||||||
|
DELIVERED("delivered");
|
||||||
|
|
||||||
|
private String value;
|
||||||
|
|
||||||
|
StatusEnum(String value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@JsonValue
|
||||||
|
public String toString() {
|
||||||
|
return String.valueOf(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public static StatusEnum fromValue(String text) {
|
||||||
|
for (StatusEnum b : StatusEnum.values()) {
|
||||||
|
if (String.valueOf(b.value).equals(text)) {
|
||||||
|
return b;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty("status")
|
||||||
|
private StatusEnum status = null;
|
||||||
|
|
||||||
|
@JsonProperty("complete")
|
||||||
|
private Boolean complete = null;
|
||||||
|
|
||||||
|
public Order id(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get id
|
||||||
|
* @return id
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Long getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Order petId(Long petId) {
|
||||||
|
this.petId = petId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get petId
|
||||||
|
* @return petId
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Long getPetId() {
|
||||||
|
return petId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPetId(Long petId) {
|
||||||
|
this.petId = petId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Order quantity(Integer quantity) {
|
||||||
|
this.quantity = quantity;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get quantity
|
||||||
|
* @return quantity
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Integer getQuantity() {
|
||||||
|
return quantity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setQuantity(Integer quantity) {
|
||||||
|
this.quantity = quantity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Order shipDate(OffsetDateTime shipDate) {
|
||||||
|
this.shipDate = shipDate;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get shipDate
|
||||||
|
* @return shipDate
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public OffsetDateTime getShipDate() {
|
||||||
|
return shipDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setShipDate(OffsetDateTime shipDate) {
|
||||||
|
this.shipDate = shipDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Order status(StatusEnum status) {
|
||||||
|
this.status = status;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Order Status
|
||||||
|
* @return status
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "Order Status")
|
||||||
|
public StatusEnum getStatus() {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatus(StatusEnum status) {
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Order complete(Boolean complete) {
|
||||||
|
this.complete = complete;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get complete
|
||||||
|
* @return complete
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Boolean getComplete() {
|
||||||
|
return complete;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setComplete(Boolean complete) {
|
||||||
|
this.complete = complete;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Order order = (Order) o;
|
||||||
|
return Objects.equals(this.id, order.id) &&
|
||||||
|
Objects.equals(this.petId, order.petId) &&
|
||||||
|
Objects.equals(this.quantity, order.quantity) &&
|
||||||
|
Objects.equals(this.shipDate, order.shipDate) &&
|
||||||
|
Objects.equals(this.status, order.status) &&
|
||||||
|
Objects.equals(this.complete, order.complete);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(id, petId, quantity, shipDate, status, complete);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class Order {\n");
|
||||||
|
|
||||||
|
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||||
|
sb.append(" petId: ").append(toIndentedString(petId)).append("\n");
|
||||||
|
sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n");
|
||||||
|
sb.append(" shipDate: ").append(toIndentedString(shipDate)).append("\n");
|
||||||
|
sb.append(" status: ").append(toIndentedString(status)).append("\n");
|
||||||
|
sb.append(" complete: ").append(toIndentedString(complete)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(java.lang.Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,237 @@
|
|||||||
|
package apimodels;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
import apimodels.Category;
|
||||||
|
import apimodels.Tag;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import com.fasterxml.jackson.annotation.*;
|
||||||
|
/**
|
||||||
|
* Pet
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Pet {
|
||||||
|
@JsonProperty("id")
|
||||||
|
private Long id = null;
|
||||||
|
|
||||||
|
@JsonProperty("category")
|
||||||
|
private Category category = null;
|
||||||
|
|
||||||
|
@JsonProperty("name")
|
||||||
|
private String name = null;
|
||||||
|
|
||||||
|
@JsonProperty("photoUrls")
|
||||||
|
private List<String> photoUrls = new ArrayList<String>();
|
||||||
|
|
||||||
|
@JsonProperty("tags")
|
||||||
|
private List<Tag> tags = new ArrayList<Tag>();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* pet status in the store
|
||||||
|
*/
|
||||||
|
public enum StatusEnum {
|
||||||
|
AVAILABLE("available"),
|
||||||
|
|
||||||
|
PENDING("pending"),
|
||||||
|
|
||||||
|
SOLD("sold");
|
||||||
|
|
||||||
|
private String value;
|
||||||
|
|
||||||
|
StatusEnum(String value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@JsonValue
|
||||||
|
public String toString() {
|
||||||
|
return String.valueOf(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public static StatusEnum fromValue(String text) {
|
||||||
|
for (StatusEnum b : StatusEnum.values()) {
|
||||||
|
if (String.valueOf(b.value).equals(text)) {
|
||||||
|
return b;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty("status")
|
||||||
|
private StatusEnum status = null;
|
||||||
|
|
||||||
|
public Pet id(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get id
|
||||||
|
* @return id
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Long getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Pet category(Category category) {
|
||||||
|
this.category = category;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get category
|
||||||
|
* @return category
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Category getCategory() {
|
||||||
|
return category;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCategory(Category category) {
|
||||||
|
this.category = category;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Pet name(String name) {
|
||||||
|
this.name = name;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get name
|
||||||
|
* @return name
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(example = "doggie", required = true, value = "")
|
||||||
|
@NotNull
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Pet photoUrls(List<String> photoUrls) {
|
||||||
|
this.photoUrls = photoUrls;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Pet addPhotoUrlsItem(String photoUrlsItem) {
|
||||||
|
this.photoUrls.add(photoUrlsItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get photoUrls
|
||||||
|
* @return photoUrls
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
@NotNull
|
||||||
|
public List<String> getPhotoUrls() {
|
||||||
|
return photoUrls;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPhotoUrls(List<String> photoUrls) {
|
||||||
|
this.photoUrls = photoUrls;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Pet tags(List<Tag> tags) {
|
||||||
|
this.tags = tags;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Pet addTagsItem(Tag tagsItem) {
|
||||||
|
this.tags.add(tagsItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get tags
|
||||||
|
* @return tags
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public List<Tag> getTags() {
|
||||||
|
return tags;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTags(List<Tag> tags) {
|
||||||
|
this.tags = tags;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Pet status(StatusEnum status) {
|
||||||
|
this.status = status;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* pet status in the store
|
||||||
|
* @return status
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "pet status in the store")
|
||||||
|
public StatusEnum getStatus() {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatus(StatusEnum status) {
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Pet pet = (Pet) o;
|
||||||
|
return Objects.equals(this.id, pet.id) &&
|
||||||
|
Objects.equals(this.category, pet.category) &&
|
||||||
|
Objects.equals(this.name, pet.name) &&
|
||||||
|
Objects.equals(this.photoUrls, pet.photoUrls) &&
|
||||||
|
Objects.equals(this.tags, pet.tags) &&
|
||||||
|
Objects.equals(this.status, pet.status);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(id, category, name, photoUrls, tags, status);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class Pet {\n");
|
||||||
|
|
||||||
|
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||||
|
sb.append(" category: ").append(toIndentedString(category)).append("\n");
|
||||||
|
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||||
|
sb.append(" photoUrls: ").append(toIndentedString(photoUrls)).append("\n");
|
||||||
|
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
|
||||||
|
sb.append(" status: ").append(toIndentedString(status)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(java.lang.Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,96 @@
|
|||||||
|
package apimodels;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import com.fasterxml.jackson.annotation.*;
|
||||||
|
/**
|
||||||
|
* Tag
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Tag {
|
||||||
|
@JsonProperty("id")
|
||||||
|
private Long id = null;
|
||||||
|
|
||||||
|
@JsonProperty("name")
|
||||||
|
private String name = null;
|
||||||
|
|
||||||
|
public Tag id(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get id
|
||||||
|
* @return id
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Long getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Tag name(String name) {
|
||||||
|
this.name = name;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get name
|
||||||
|
* @return name
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Tag tag = (Tag) o;
|
||||||
|
return Objects.equals(this.id, tag.id) &&
|
||||||
|
Objects.equals(this.name, tag.name);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(id, name);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class Tag {\n");
|
||||||
|
|
||||||
|
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||||
|
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(java.lang.Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,234 @@
|
|||||||
|
package apimodels;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import com.fasterxml.jackson.annotation.*;
|
||||||
|
/**
|
||||||
|
* User
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class User {
|
||||||
|
@JsonProperty("id")
|
||||||
|
private Long id = null;
|
||||||
|
|
||||||
|
@JsonProperty("username")
|
||||||
|
private String username = null;
|
||||||
|
|
||||||
|
@JsonProperty("firstName")
|
||||||
|
private String firstName = null;
|
||||||
|
|
||||||
|
@JsonProperty("lastName")
|
||||||
|
private String lastName = null;
|
||||||
|
|
||||||
|
@JsonProperty("email")
|
||||||
|
private String email = null;
|
||||||
|
|
||||||
|
@JsonProperty("password")
|
||||||
|
private String password = null;
|
||||||
|
|
||||||
|
@JsonProperty("phone")
|
||||||
|
private String phone = null;
|
||||||
|
|
||||||
|
@JsonProperty("userStatus")
|
||||||
|
private Integer userStatus = null;
|
||||||
|
|
||||||
|
public User id(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get id
|
||||||
|
* @return id
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Long getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public User username(String username) {
|
||||||
|
this.username = username;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get username
|
||||||
|
* @return username
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public String getUsername() {
|
||||||
|
return username;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsername(String username) {
|
||||||
|
this.username = username;
|
||||||
|
}
|
||||||
|
|
||||||
|
public User firstName(String firstName) {
|
||||||
|
this.firstName = firstName;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get firstName
|
||||||
|
* @return firstName
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public String getFirstName() {
|
||||||
|
return firstName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFirstName(String firstName) {
|
||||||
|
this.firstName = firstName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public User lastName(String lastName) {
|
||||||
|
this.lastName = lastName;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get lastName
|
||||||
|
* @return lastName
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public String getLastName() {
|
||||||
|
return lastName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLastName(String lastName) {
|
||||||
|
this.lastName = lastName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public User email(String email) {
|
||||||
|
this.email = email;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get email
|
||||||
|
* @return email
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public String getEmail() {
|
||||||
|
return email;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmail(String email) {
|
||||||
|
this.email = email;
|
||||||
|
}
|
||||||
|
|
||||||
|
public User password(String password) {
|
||||||
|
this.password = password;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get password
|
||||||
|
* @return password
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public String getPassword() {
|
||||||
|
return password;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPassword(String password) {
|
||||||
|
this.password = password;
|
||||||
|
}
|
||||||
|
|
||||||
|
public User phone(String phone) {
|
||||||
|
this.phone = phone;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get phone
|
||||||
|
* @return phone
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public String getPhone() {
|
||||||
|
return phone;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPhone(String phone) {
|
||||||
|
this.phone = phone;
|
||||||
|
}
|
||||||
|
|
||||||
|
public User userStatus(Integer userStatus) {
|
||||||
|
this.userStatus = userStatus;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* User Status
|
||||||
|
* @return userStatus
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "User Status")
|
||||||
|
public Integer getUserStatus() {
|
||||||
|
return userStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserStatus(Integer userStatus) {
|
||||||
|
this.userStatus = userStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
User user = (User) o;
|
||||||
|
return Objects.equals(this.id, user.id) &&
|
||||||
|
Objects.equals(this.username, user.username) &&
|
||||||
|
Objects.equals(this.firstName, user.firstName) &&
|
||||||
|
Objects.equals(this.lastName, user.lastName) &&
|
||||||
|
Objects.equals(this.email, user.email) &&
|
||||||
|
Objects.equals(this.password, user.password) &&
|
||||||
|
Objects.equals(this.phone, user.phone) &&
|
||||||
|
Objects.equals(this.userStatus, user.userStatus);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(id, username, firstName, lastName, email, password, phone, userStatus);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class User {\n");
|
||||||
|
|
||||||
|
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||||
|
sb.append(" username: ").append(toIndentedString(username)).append("\n");
|
||||||
|
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
|
||||||
|
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
|
||||||
|
sb.append(" email: ").append(toIndentedString(email)).append("\n");
|
||||||
|
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||||
|
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
|
||||||
|
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(java.lang.Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,15 @@
|
|||||||
|
package controllers;
|
||||||
|
|
||||||
|
import javax.inject.*;
|
||||||
|
import play.mvc.*;
|
||||||
|
|
||||||
|
public class ApiDocController extends Controller {
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
private ApiDocController() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Result api() {
|
||||||
|
return redirect(String.format("/assets/lib/swagger-ui/index.html?/url=%s/api-docs", ""));
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,248 @@
|
|||||||
|
package controllers;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import apimodels.Pet;
|
||||||
|
|
||||||
|
import io.swagger.annotations.*;
|
||||||
|
import play.mvc.Controller;
|
||||||
|
import play.mvc.Result;
|
||||||
|
import play.mvc.Http;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
|
import com.fasterxml.jackson.databind.JsonNode;
|
||||||
|
import com.google.inject.Inject;
|
||||||
|
import java.io.IOException;
|
||||||
|
import swagger.SwaggerUtils;
|
||||||
|
import javafx.util.Pair;
|
||||||
|
import com.fasterxml.jackson.core.type.TypeReference;
|
||||||
|
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
|
|
||||||
|
@Api(value = "Pet", description = "the Pet API")
|
||||||
|
public class PetApiController extends Controller {
|
||||||
|
|
||||||
|
private PetApiControllerImp imp;
|
||||||
|
private ObjectMapper mapper;
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
private PetApiController(PetApiControllerImp imp) {
|
||||||
|
this.imp = imp;
|
||||||
|
mapper = new ObjectMapper();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ApiOperation(value = "Add a new pet to the store", notes = "", authorizations = {
|
||||||
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
|
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
||||||
|
})
|
||||||
|
}, tags={ })
|
||||||
|
@ApiResponses(value = {
|
||||||
|
@ApiResponse(code = 405, message = "Invalid input") })
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "body", value = "Pet object that needs to be added to the store", dataType = "apimodels.Pet", paramType = "body")
|
||||||
|
})
|
||||||
|
public Result addPet() throws IOException {
|
||||||
|
JsonNode nodebody = request().body().asJson();
|
||||||
|
Pet body;
|
||||||
|
if (nodebody != null) {
|
||||||
|
body = mapper.readValue(nodebody.toString(), Pet.class);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
body = null;
|
||||||
|
}
|
||||||
|
imp.addPet(body);
|
||||||
|
|
||||||
|
return ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "Deletes a pet", notes = "", authorizations = {
|
||||||
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
|
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
||||||
|
})
|
||||||
|
}, tags={ })
|
||||||
|
@ApiResponses(value = {
|
||||||
|
@ApiResponse(code = 400, message = "Invalid pet value") })
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "api_key", value = "", dataType = "String", paramType = "header")
|
||||||
|
})
|
||||||
|
public Result deletePet(@ApiParam(value = "Pet id to delete", required = true ) Long petId) {
|
||||||
|
String valueapiKey = request().getHeader("api_key");
|
||||||
|
String apiKey;
|
||||||
|
if (valueapiKey != null) {
|
||||||
|
apiKey = (String)valueapiKey;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
apiKey = "";
|
||||||
|
}
|
||||||
|
imp.deletePet(petId, apiKey);
|
||||||
|
|
||||||
|
return ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
@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 = {
|
||||||
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
|
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
||||||
|
})
|
||||||
|
}, tags={ })
|
||||||
|
@ApiResponses(value = {
|
||||||
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class),
|
||||||
|
@ApiResponse(code = 400, message = "Invalid status value", response = Pet.class) })
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "status", value = "Status values that need to be considered for filter", defaultValue = "available", dataType = "List<String>", paramType = "query")
|
||||||
|
})
|
||||||
|
public Result findPetsByStatus() {
|
||||||
|
//TODO: Maybe implement this in the future if we can support collection in the body params: see bug in swagger-play: https://github.com/swagger-api/swagger-play/issues/130
|
||||||
|
//TODO: Tt seems it is not detected that it's a list based on the collectionFormat field?
|
||||||
|
//WIP when both bugs will be fixed
|
||||||
|
//List<Pair> statusPair = SwaggerUtils.parameterToPairs("multi", "status", request().getQueryString("status"));
|
||||||
|
List<String> status = new ArrayList<String>();
|
||||||
|
//for (Pair pair : statusPair) {
|
||||||
|
// status.add(pair.getValue());
|
||||||
|
//}
|
||||||
|
List<Pet> obj = imp.findPetsByStatus(status);
|
||||||
|
JsonNode result = mapper.valueToTree(obj);
|
||||||
|
return ok(result);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@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 = {
|
||||||
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
|
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
||||||
|
})
|
||||||
|
}, tags={ })
|
||||||
|
@ApiResponses(value = {
|
||||||
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class),
|
||||||
|
@ApiResponse(code = 400, message = "Invalid tag value", response = Pet.class) })
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "tags", value = "Tags to filter by", dataType = "List<String>", paramType = "query")
|
||||||
|
})
|
||||||
|
public Result findPetsByTags() {
|
||||||
|
//TODO: Maybe implement this in the future if we can support collection in the body params: see bug in swagger-play: https://github.com/swagger-api/swagger-play/issues/130
|
||||||
|
//TODO: Tt seems it is not detected that it's a list based on the collectionFormat field?
|
||||||
|
//WIP when both bugs will be fixed
|
||||||
|
//List<Pair> tagsPair = SwaggerUtils.parameterToPairs("multi", "tags", request().getQueryString("tags"));
|
||||||
|
List<String> tags = new ArrayList<String>();
|
||||||
|
//for (Pair pair : tagsPair) {
|
||||||
|
// tags.add(pair.getValue());
|
||||||
|
//}
|
||||||
|
List<Pet> obj = imp.findPetsByTags(tags);
|
||||||
|
JsonNode result = mapper.valueToTree(obj);
|
||||||
|
return ok(result);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "Find pet by ID", notes = "Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions", response = Pet.class, authorizations = {
|
||||||
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
|
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
||||||
|
}),
|
||||||
|
@Authorization(value = "api_key")
|
||||||
|
}, tags={ })
|
||||||
|
@ApiResponses(value = {
|
||||||
|
@ApiResponse(code = 200, message = "successful operation", response = Pet.class),
|
||||||
|
@ApiResponse(code = 400, message = "Invalid ID supplied", response = Pet.class),
|
||||||
|
@ApiResponse(code = 404, message = "Pet not found", response = Pet.class) })
|
||||||
|
@ApiImplicitParams({
|
||||||
|
|
||||||
|
})
|
||||||
|
public Result getPetById(@ApiParam(value = "ID of pet that needs to be fetched", required = true ) Long petId) {
|
||||||
|
Pet obj = imp.getPetById(petId);
|
||||||
|
JsonNode result = mapper.valueToTree(obj);
|
||||||
|
return ok(result);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "Update an existing pet", notes = "", authorizations = {
|
||||||
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
|
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
||||||
|
})
|
||||||
|
}, tags={ })
|
||||||
|
@ApiResponses(value = {
|
||||||
|
@ApiResponse(code = 400, message = "Invalid ID supplied"),
|
||||||
|
@ApiResponse(code = 404, message = "Pet not found"),
|
||||||
|
@ApiResponse(code = 405, message = "Validation exception") })
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "body", value = "Pet object that needs to be added to the store", dataType = "apimodels.Pet", paramType = "body")
|
||||||
|
})
|
||||||
|
public Result updatePet() throws IOException {
|
||||||
|
JsonNode nodebody = request().body().asJson();
|
||||||
|
Pet body;
|
||||||
|
if (nodebody != null) {
|
||||||
|
body = mapper.readValue(nodebody.toString(), Pet.class);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
body = null;
|
||||||
|
}
|
||||||
|
imp.updatePet(body);
|
||||||
|
|
||||||
|
return ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "Updates a pet in the store with form data", notes = "", authorizations = {
|
||||||
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
|
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
||||||
|
})
|
||||||
|
}, tags={ })
|
||||||
|
@ApiResponses(value = {
|
||||||
|
@ApiResponse(code = 405, message = "Invalid input") })
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "name", value = "Updated name of the pet", dataType = "String", paramType = "form"),
|
||||||
|
@ApiImplicitParam(name = "status", value = "Updated status of the pet", dataType = "String", paramType = "form")
|
||||||
|
})
|
||||||
|
public Result updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true ) String petId) {
|
||||||
|
String valuename = ((String[]) request().body().asMultipartFormData().asFormUrlEncoded().get("name"))[0];
|
||||||
|
String name;
|
||||||
|
if (valuename != null) {
|
||||||
|
name = (String)valuename;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
name = "";
|
||||||
|
}
|
||||||
|
String valuestatus = ((String[]) request().body().asMultipartFormData().asFormUrlEncoded().get("status"))[0];
|
||||||
|
String status;
|
||||||
|
if (valuestatus != null) {
|
||||||
|
status = (String)valuestatus;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
status = "";
|
||||||
|
}
|
||||||
|
imp.updatePetWithForm(petId, name, status);
|
||||||
|
|
||||||
|
return ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "uploads an image", notes = "", authorizations = {
|
||||||
|
@Authorization(value = "petstore_auth", scopes = {
|
||||||
|
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
|
@AuthorizationScope(scope = "read:pets", description = "read your pets")
|
||||||
|
})
|
||||||
|
}, tags={ })
|
||||||
|
@ApiResponses(value = {
|
||||||
|
@ApiResponse(code = 0, message = "successful operation") })
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "additionalMetadata", value = "Additional data to pass to server", dataType = "String", paramType = "form"),
|
||||||
|
@ApiImplicitParam(name = "file", value = "file to upload", dataType = "apimodels.File", paramType = "form")
|
||||||
|
})
|
||||||
|
public Result uploadFile(@ApiParam(value = "ID of pet to update", required = true ) Long petId) {
|
||||||
|
String valueadditionalMetadata = ((String[]) request().body().asMultipartFormData().asFormUrlEncoded().get("additionalMetadata"))[0];
|
||||||
|
String additionalMetadata;
|
||||||
|
if (valueadditionalMetadata != null) {
|
||||||
|
additionalMetadata = (String)valueadditionalMetadata;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
additionalMetadata = "";
|
||||||
|
}
|
||||||
|
Http.MultipartFormData.FilePart file = request().body().asMultipartFormData().getFile("file");
|
||||||
|
imp.uploadFile(petId, additionalMetadata, file);
|
||||||
|
|
||||||
|
return ok();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,53 @@
|
|||||||
|
package controllers;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import apimodels.Pet;
|
||||||
|
|
||||||
|
import play.mvc.Http;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
|
public class PetApiControllerImp {
|
||||||
|
void addPet(Pet body) {
|
||||||
|
//Do your magic!!!
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void deletePet( Long petId, String apiKey) {
|
||||||
|
//Do your magic!!!
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
List<Pet> findPetsByStatus( List<String> status) {
|
||||||
|
//Do your magic!!!
|
||||||
|
return new ArrayList<Pet>();
|
||||||
|
}
|
||||||
|
|
||||||
|
List<Pet> findPetsByTags( List<String> tags) {
|
||||||
|
//Do your magic!!!
|
||||||
|
return new ArrayList<Pet>();
|
||||||
|
}
|
||||||
|
|
||||||
|
Pet getPetById( Long petId) {
|
||||||
|
//Do your magic!!!
|
||||||
|
return new Pet();
|
||||||
|
}
|
||||||
|
|
||||||
|
void updatePet(Pet body) {
|
||||||
|
//Do your magic!!!
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void updatePetWithForm( String petId, String name, String status) {
|
||||||
|
//Do your magic!!!
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void uploadFile( Long petId, String additionalMetadata, Http.MultipartFormData.FilePart file) {
|
||||||
|
//Do your magic!!!
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,97 @@
|
|||||||
|
package controllers;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
import apimodels.Order;
|
||||||
|
|
||||||
|
import io.swagger.annotations.*;
|
||||||
|
import play.mvc.Controller;
|
||||||
|
import play.mvc.Result;
|
||||||
|
import play.mvc.Http;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
|
import com.fasterxml.jackson.databind.JsonNode;
|
||||||
|
import com.google.inject.Inject;
|
||||||
|
import java.io.IOException;
|
||||||
|
import swagger.SwaggerUtils;
|
||||||
|
import javafx.util.Pair;
|
||||||
|
import com.fasterxml.jackson.core.type.TypeReference;
|
||||||
|
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
|
|
||||||
|
@Api(value = "Store", description = "the Store API")
|
||||||
|
public class StoreApiController extends Controller {
|
||||||
|
|
||||||
|
private StoreApiControllerImp imp;
|
||||||
|
private ObjectMapper mapper;
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
private StoreApiController(StoreApiControllerImp imp) {
|
||||||
|
this.imp = imp;
|
||||||
|
mapper = new ObjectMapper();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ApiOperation(value = "Delete purchase order by ID", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ })
|
||||||
|
@ApiResponses(value = {
|
||||||
|
@ApiResponse(code = 400, message = "Invalid ID supplied"),
|
||||||
|
@ApiResponse(code = 404, message = "Order not found") })
|
||||||
|
@ApiImplicitParams({
|
||||||
|
|
||||||
|
})
|
||||||
|
public Result deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true ) String orderId) {
|
||||||
|
imp.deleteOrder(orderId);
|
||||||
|
|
||||||
|
return ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
@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")
|
||||||
|
}, tags={ })
|
||||||
|
@ApiResponses(value = {
|
||||||
|
@ApiResponse(code = 200, message = "successful operation", response = Integer.class) })
|
||||||
|
public Result getInventory() {
|
||||||
|
Map<String, Integer> obj = imp.getInventory();
|
||||||
|
JsonNode result = mapper.valueToTree(obj);
|
||||||
|
return ok(result);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "Find purchase order by ID", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ })
|
||||||
|
@ApiResponses(value = {
|
||||||
|
@ApiResponse(code = 200, message = "successful operation", response = Order.class),
|
||||||
|
@ApiResponse(code = 400, message = "Invalid ID supplied", response = Order.class),
|
||||||
|
@ApiResponse(code = 404, message = "Order not found", response = Order.class) })
|
||||||
|
@ApiImplicitParams({
|
||||||
|
|
||||||
|
})
|
||||||
|
public Result getOrderById(@ApiParam(value = "ID of pet that needs to be fetched", required = true ) String orderId) {
|
||||||
|
Order obj = imp.getOrderById(orderId);
|
||||||
|
JsonNode result = mapper.valueToTree(obj);
|
||||||
|
return ok(result);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "Place an order for a pet", notes = "", response = Order.class, tags={ })
|
||||||
|
@ApiResponses(value = {
|
||||||
|
@ApiResponse(code = 200, message = "successful operation", response = Order.class),
|
||||||
|
@ApiResponse(code = 400, message = "Invalid Order", response = Order.class) })
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "body", value = "order placed for purchasing the pet", dataType = "apimodels.Order", paramType = "body")
|
||||||
|
})
|
||||||
|
public Result placeOrder() throws IOException {
|
||||||
|
JsonNode nodebody = request().body().asJson();
|
||||||
|
Order body;
|
||||||
|
if (nodebody != null) {
|
||||||
|
body = mapper.readValue(nodebody.toString(), Order.class);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
body = null;
|
||||||
|
}
|
||||||
|
Order obj = imp.placeOrder(body);
|
||||||
|
JsonNode result = mapper.valueToTree(obj);
|
||||||
|
return ok(result);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,33 @@
|
|||||||
|
package controllers;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
import apimodels.Order;
|
||||||
|
|
||||||
|
import play.mvc.Http;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
|
public class StoreApiControllerImp {
|
||||||
|
void deleteOrder( String orderId) {
|
||||||
|
//Do your magic!!!
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, Integer> getInventory() {
|
||||||
|
//Do your magic!!!
|
||||||
|
return new HashMap<String, Integer>();
|
||||||
|
}
|
||||||
|
|
||||||
|
Order getOrderById( String orderId) {
|
||||||
|
//Do your magic!!!
|
||||||
|
return new Order();
|
||||||
|
}
|
||||||
|
|
||||||
|
Order placeOrder(Order body) {
|
||||||
|
//Do your magic!!!
|
||||||
|
return new Order();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,184 @@
|
|||||||
|
package controllers;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import apimodels.User;
|
||||||
|
|
||||||
|
import io.swagger.annotations.*;
|
||||||
|
import play.mvc.Controller;
|
||||||
|
import play.mvc.Result;
|
||||||
|
import play.mvc.Http;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
|
import com.fasterxml.jackson.databind.JsonNode;
|
||||||
|
import com.google.inject.Inject;
|
||||||
|
import java.io.IOException;
|
||||||
|
import swagger.SwaggerUtils;
|
||||||
|
import javafx.util.Pair;
|
||||||
|
import com.fasterxml.jackson.core.type.TypeReference;
|
||||||
|
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
|
|
||||||
|
@Api(value = "User", description = "the User API")
|
||||||
|
public class UserApiController extends Controller {
|
||||||
|
|
||||||
|
private UserApiControllerImp imp;
|
||||||
|
private ObjectMapper mapper;
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
private UserApiController(UserApiControllerImp imp) {
|
||||||
|
this.imp = imp;
|
||||||
|
mapper = new ObjectMapper();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ApiOperation(value = "Create user", notes = "This can only be done by the logged in user.", tags={ })
|
||||||
|
@ApiResponses(value = {
|
||||||
|
@ApiResponse(code = 0, message = "successful operation") })
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "body", value = "Created user object", dataType = "apimodels.User", paramType = "body")
|
||||||
|
})
|
||||||
|
public Result createUser() throws IOException {
|
||||||
|
JsonNode nodebody = request().body().asJson();
|
||||||
|
User body;
|
||||||
|
if (nodebody != null) {
|
||||||
|
body = mapper.readValue(nodebody.toString(), User.class);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
body = null;
|
||||||
|
}
|
||||||
|
imp.createUser(body);
|
||||||
|
|
||||||
|
return ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "Creates list of users with given input array", notes = "", tags={ })
|
||||||
|
@ApiResponses(value = {
|
||||||
|
@ApiResponse(code = 0, message = "successful operation") })
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "body", value = "List of user object", dataType = "List<User>", paramType = "body")
|
||||||
|
})
|
||||||
|
public Result createUsersWithArrayInput() throws IOException {
|
||||||
|
JsonNode nodebody = request().body().asJson();
|
||||||
|
List<User> body;
|
||||||
|
if (nodebody != null) {
|
||||||
|
body = mapper.readValue(nodebody.toString(), new TypeReference<List<List<User>>>(){});
|
||||||
|
|
||||||
|
} else {
|
||||||
|
body = null;
|
||||||
|
}
|
||||||
|
imp.createUsersWithArrayInput(body);
|
||||||
|
|
||||||
|
return ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "Creates list of users with given input array", notes = "", tags={ })
|
||||||
|
@ApiResponses(value = {
|
||||||
|
@ApiResponse(code = 0, message = "successful operation") })
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "body", value = "List of user object", dataType = "List<User>", paramType = "body")
|
||||||
|
})
|
||||||
|
public Result createUsersWithListInput() throws IOException {
|
||||||
|
JsonNode nodebody = request().body().asJson();
|
||||||
|
List<User> body;
|
||||||
|
if (nodebody != null) {
|
||||||
|
body = mapper.readValue(nodebody.toString(), new TypeReference<List<List<User>>>(){});
|
||||||
|
|
||||||
|
} else {
|
||||||
|
body = null;
|
||||||
|
}
|
||||||
|
imp.createUsersWithListInput(body);
|
||||||
|
|
||||||
|
return ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "Delete user", notes = "This can only be done by the logged in user.", tags={ })
|
||||||
|
@ApiResponses(value = {
|
||||||
|
@ApiResponse(code = 400, message = "Invalid username supplied"),
|
||||||
|
@ApiResponse(code = 404, message = "User not found") })
|
||||||
|
@ApiImplicitParams({
|
||||||
|
|
||||||
|
})
|
||||||
|
public Result deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true ) String username) {
|
||||||
|
imp.deleteUser(username);
|
||||||
|
|
||||||
|
return ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "Get user by user name", notes = "", response = User.class, tags={ })
|
||||||
|
@ApiResponses(value = {
|
||||||
|
@ApiResponse(code = 200, message = "successful operation", response = User.class),
|
||||||
|
@ApiResponse(code = 400, message = "Invalid username supplied", response = User.class),
|
||||||
|
@ApiResponse(code = 404, message = "User not found", response = User.class) })
|
||||||
|
@ApiImplicitParams({
|
||||||
|
|
||||||
|
})
|
||||||
|
public Result getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing. ", required = true ) String username) {
|
||||||
|
User obj = imp.getUserByName(username);
|
||||||
|
JsonNode result = mapper.valueToTree(obj);
|
||||||
|
return ok(result);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "Logs user into the system", notes = "", response = String.class, tags={ })
|
||||||
|
@ApiResponses(value = {
|
||||||
|
@ApiResponse(code = 200, message = "successful operation", response = String.class),
|
||||||
|
@ApiResponse(code = 400, message = "Invalid username/password supplied", response = String.class) })
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "username", value = "The user name for login", dataType = "String", paramType = "query"),
|
||||||
|
@ApiImplicitParam(name = "password", value = "The password for login in clear text", dataType = "String", paramType = "query")
|
||||||
|
})
|
||||||
|
public Result loginUser() {
|
||||||
|
String valueusername = request().getQueryString("username");
|
||||||
|
String username;
|
||||||
|
if (valueusername != null) {
|
||||||
|
username = (String)valueusername;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
username = "";
|
||||||
|
}
|
||||||
|
String valuepassword = request().getQueryString("password");
|
||||||
|
String password;
|
||||||
|
if (valuepassword != null) {
|
||||||
|
password = (String)valuepassword;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
password = "";
|
||||||
|
}
|
||||||
|
String obj = imp.loginUser(username, password);
|
||||||
|
JsonNode result = mapper.valueToTree(obj);
|
||||||
|
return ok(result);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "Logs out current logged in user session", notes = "", tags={ })
|
||||||
|
@ApiResponses(value = {
|
||||||
|
@ApiResponse(code = 0, message = "successful operation") })
|
||||||
|
public Result logoutUser() {
|
||||||
|
imp.logoutUser();
|
||||||
|
|
||||||
|
return ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "Updated user", notes = "This can only be done by the logged in user.", tags={ })
|
||||||
|
@ApiResponses(value = {
|
||||||
|
@ApiResponse(code = 400, message = "Invalid user supplied"),
|
||||||
|
@ApiResponse(code = 404, message = "User not found") })
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "body", value = "Updated user object", dataType = "apimodels.User", paramType = "body")
|
||||||
|
})
|
||||||
|
public Result updateUser(@ApiParam(value = "name that need to be deleted", required = true ) String username) throws IOException {
|
||||||
|
JsonNode nodebody = request().body().asJson();
|
||||||
|
User body;
|
||||||
|
if (nodebody != null) {
|
||||||
|
body = mapper.readValue(nodebody.toString(), User.class);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
body = null;
|
||||||
|
}
|
||||||
|
imp.updateUser(username, body);
|
||||||
|
|
||||||
|
return ok();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,53 @@
|
|||||||
|
package controllers;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import apimodels.User;
|
||||||
|
|
||||||
|
import play.mvc.Http;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
|
public class UserApiControllerImp {
|
||||||
|
void createUser(User body) {
|
||||||
|
//Do your magic!!!
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void createUsersWithArrayInput(List<User> body) {
|
||||||
|
//Do your magic!!!
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void createUsersWithListInput(List<User> body) {
|
||||||
|
//Do your magic!!!
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void deleteUser( String username) {
|
||||||
|
//Do your magic!!!
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
User getUserByName( String username) {
|
||||||
|
//Do your magic!!!
|
||||||
|
return new User();
|
||||||
|
}
|
||||||
|
|
||||||
|
String loginUser( String username, String password) {
|
||||||
|
//Do your magic!!!
|
||||||
|
return new String();
|
||||||
|
}
|
||||||
|
|
||||||
|
void logoutUser() {
|
||||||
|
//Do your magic!!!
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void updateUser( String username, User body) {
|
||||||
|
//Do your magic!!!
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,108 @@
|
|||||||
|
package swagger;
|
||||||
|
|
||||||
|
import javafx.util.Pair;
|
||||||
|
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Collection;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class SwaggerUtils {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Format to {@code Pair} objects.
|
||||||
|
*
|
||||||
|
* @param collectionFormat collection format (e.g. csv, tsv)
|
||||||
|
* @param name Name
|
||||||
|
* @param value Value
|
||||||
|
* @return A list of Pair objects
|
||||||
|
*/
|
||||||
|
public static List<Pair> parameterToPairs(String collectionFormat, String name, Object value){
|
||||||
|
List<Pair> params = new ArrayList<Pair>();
|
||||||
|
|
||||||
|
// preconditions
|
||||||
|
if (name == null || name.isEmpty() || value == null) return params;
|
||||||
|
|
||||||
|
Collection valueCollection = null;
|
||||||
|
if (value instanceof Collection) {
|
||||||
|
valueCollection = (Collection) value;
|
||||||
|
} else {
|
||||||
|
params.add(new Pair(name, parameterToString(value)));
|
||||||
|
return params;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (valueCollection.isEmpty()){
|
||||||
|
return params;
|
||||||
|
}
|
||||||
|
|
||||||
|
// get the collection format
|
||||||
|
collectionFormat = (collectionFormat == null || collectionFormat.isEmpty() ? "csv" : collectionFormat); // default: csv
|
||||||
|
|
||||||
|
// create the params based on the collection format
|
||||||
|
if (collectionFormat.equals("multi")) {
|
||||||
|
for (Object item : valueCollection) {
|
||||||
|
params.add(new Pair(name, parameterToString(item)));
|
||||||
|
}
|
||||||
|
|
||||||
|
return params;
|
||||||
|
}
|
||||||
|
|
||||||
|
String delimiter = ",";
|
||||||
|
|
||||||
|
if (collectionFormat.equals("csv")) {
|
||||||
|
delimiter = ",";
|
||||||
|
} else if (collectionFormat.equals("ssv")) {
|
||||||
|
delimiter = " ";
|
||||||
|
} else if (collectionFormat.equals("tsv")) {
|
||||||
|
delimiter = "\t";
|
||||||
|
} else if (collectionFormat.equals("pipes")) {
|
||||||
|
delimiter = "|";
|
||||||
|
}
|
||||||
|
|
||||||
|
StringBuilder sb = new StringBuilder() ;
|
||||||
|
for (Object item : valueCollection) {
|
||||||
|
sb.append(delimiter);
|
||||||
|
sb.append(parameterToString(item));
|
||||||
|
}
|
||||||
|
|
||||||
|
params.add(new Pair(name, sb.substring(1)));
|
||||||
|
|
||||||
|
return params;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Format the given parameter object into string.
|
||||||
|
*
|
||||||
|
* @param param Parameter
|
||||||
|
* @return String representation of the parameter
|
||||||
|
*/
|
||||||
|
public static String parameterToString(Object param) {
|
||||||
|
if (param == null) {
|
||||||
|
return "";
|
||||||
|
} else if (param instanceof Date) {
|
||||||
|
return formatDatetime((Date) param);
|
||||||
|
} else if (param instanceof Collection) {
|
||||||
|
StringBuilder b = new StringBuilder();
|
||||||
|
for (Object o : (Collection)param) {
|
||||||
|
if (b.length() > 0) {
|
||||||
|
b.append(",");
|
||||||
|
}
|
||||||
|
b.append(String.valueOf(o));
|
||||||
|
}
|
||||||
|
return b.toString();
|
||||||
|
} else {
|
||||||
|
return String.valueOf(param);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Format the given Date object into string (Datetime format).
|
||||||
|
*
|
||||||
|
* @param date Date object
|
||||||
|
* @return Formatted datetime in string representation
|
||||||
|
*/
|
||||||
|
public static String formatDatetime(Date date) {
|
||||||
|
return new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSXXX").format(date);
|
||||||
|
}
|
||||||
|
}
|
16
samples/server/petstore/java-play-framework/build.sbt
Normal file
16
samples/server/petstore/java-play-framework/build.sbt
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
name := """swagger-java-playframework"""
|
||||||
|
|
||||||
|
version := "1.0-SNAPSHOT"
|
||||||
|
|
||||||
|
lazy val root = (project in file(".")).enablePlugins(PlayJava)
|
||||||
|
|
||||||
|
scalaVersion := "2.11.7"
|
||||||
|
|
||||||
|
libraryDependencies ++= Seq(
|
||||||
|
javaJdbc,
|
||||||
|
cache,
|
||||||
|
javaWs,
|
||||||
|
"io.swagger" %% "swagger-play2" % "1.5.3",
|
||||||
|
"org.webjars" % "swagger-ui" % "2.2.8",
|
||||||
|
"javax.validation" % "validation-api" % "1.1.0.Final"
|
||||||
|
)
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user