Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added composed schemas sample #10050

Merged
merged 85 commits into from
Feb 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
92c65da
created a new list of bin scripts
HugoMario Feb 15, 2020
bfc93b1
added open api 3 petstore definition with composed schemas samples.
HugoMario Feb 15, 2020
4ee1d8c
use oas3 petstore with composed definitions on bin scripts
HugoMario Feb 17, 2020
1c51ec5
point script files to logback xml file
HugoMario Feb 17, 2020
ba723d6
added aspnetcore sample
HugoMario Feb 17, 2020
6b3ee9c
added aspnetcore interface controller sample
HugoMario Feb 17, 2020
91781b3
added csharp dotnet2 sample
HugoMario Feb 17, 2020
d1ccc34
added csharp sample
HugoMario Feb 17, 2020
bb554b3
fixed config files on scripts
HugoMario Feb 17, 2020
15b71a3
added csharp client net 35
HugoMario Feb 17, 2020
5fbc73e
added csharp client 40 sample
HugoMario Feb 17, 2020
1c6ef2b
added csharp client net standard sample
HugoMario Feb 17, 2020
fff79d7
added csharp property change sample
HugoMario Feb 17, 2020
2f306e0
added dynamic html sample
HugoMario Feb 17, 2020
da39e21
added html2 sample
HugoMario Feb 17, 2020
514d290
added html mark down sample
HugoMario Feb 17, 2020
234516b
added html pet store sample
HugoMario Feb 17, 2020
3e26993
added jersey2-java8 sample
HugoMario Feb 17, 2020
53eb398
added inflector sample
HugoMario Feb 17, 2020
2851d87
added java feign sample
HugoMario Feb 17, 2020
1c5ae96
added java jersey1 sample
HugoMario Feb 17, 2020
6a02eef
added java jersey2 sample
HugoMario Feb 17, 2020
73f7366
added java jersey2-java6 sample
HugoMario Feb 17, 2020
66305a4
added java okhttp-gson sample
HugoMario Feb 17, 2020
c5b94f8
added java okhtto-gson-parceleable sample
HugoMario Feb 17, 2020
c51eb97
added java resteasy sample.
HugoMario Feb 17, 2020
808ca07
added java resttemplate sample
HugoMario Feb 17, 2020
395337b
added java resttemplate with xml sample
HugoMario Feb 17, 2020
d5f66ea
added java retrofit sample
HugoMario Feb 17, 2020
a32d033
added java retrofit2 sample
HugoMario Feb 17, 2020
539a83a
added java retrofit2-play24 sample
HugoMario Feb 17, 2020
771cd17
added java retrofit2-play25 sample
HugoMario Feb 17, 2020
1f321a7
added java retrofit2rx sample
HugoMario Feb 17, 2020
f96c31f
added java retrofit2rx2 sample
HugoMario Feb 17, 2020
addfde3
java jaxrs-cxf-cdi sample
HugoMario Feb 17, 2020
8b3d1ff
added jaxrs-cxf-client sample
HugoMario Feb 17, 2020
553d55e
added jaxrs-cxf sample
HugoMario Feb 17, 2020
29382e8
added jaxrs-cfx-annotated sample
HugoMario Feb 17, 2020
291774e
added jaxrs-cxf-non-spring sample
HugoMario Feb 17, 2020
a6e6da5
added jaxrs jersey1-useTags sample
HugoMario Feb 17, 2020
e294ba1
added jaxrs jersey2 sample
HugoMario Feb 17, 2020
76b936d
added jaxrs-resteasy eap-java8 sample
HugoMario Feb 17, 2020
aa02778
added jaxrs-resteasy eap joda sample
HugoMario Feb 17, 2020
b0bc57f
added jaxrs resteasy eap server sample
HugoMario Feb 17, 2020
dc24d31
added jaxts resteasy java8 sample
HugoMario Feb 17, 2020
b2b0688
added jaxrs resteasy joda sample
HugoMario Feb 17, 2020
8c52f2e
added jaxrs-resteasy default sample
HugoMario Feb 17, 2020
98998a5
added jaxrs-spec sample
HugoMario Feb 17, 2020
1df3298
added jaxrs spec interface sample
HugoMario Feb 17, 2020
3c24bb2
added jaxrs jersey2 usetags sample
HugoMario Feb 17, 2020
680d9eb
added spring cloud sample
HugoMario Feb 17, 2020
8452c94
added spring cloud v2 sample
HugoMario Feb 17, 2020
a76e590
added spring delegate sample
HugoMario Feb 17, 2020
a535322
added spring stubs sample
HugoMario Feb 17, 2020
252a57e
added spring mvc sample
HugoMario Feb 17, 2020
13406da
added spring mvc j8 async sample
HugoMario Feb 17, 2020
5e11832
added springboot samples
HugoMario Feb 17, 2020
c738d2c
added swift3 samples
HugoMario Feb 17, 2020
80fdcdb
added typescript angular samples.
HugoMario Feb 17, 2020
867bd4c
added composed schemas on request bodies and responses
HugoMario Feb 18, 2020
7d8b11c
updated dotnet samples
HugoMario Feb 18, 2020
faf67c3
updated html samples
HugoMario Feb 18, 2020
ca4e457
updated java samples
HugoMario Feb 18, 2020
8d53eb4
updated jaxrs samples
HugoMario Feb 18, 2020
38951ac
updated spring samples
HugoMario Feb 18, 2020
e7d9db0
updated swift3 samples
HugoMario Feb 18, 2020
34a3faa
updated typescript angular samples
HugoMario Feb 18, 2020
565a726
updated dotnet samples with current version
HugoMario Feb 18, 2020
b4cc3fe
ujpdated dynamic html sample
HugoMario Feb 18, 2020
49df475
updated java samples with current codegen version
HugoMario Feb 20, 2020
6ba05c1
fixed script commands
HugoMario Feb 20, 2020
9fdd84d
updated jaxrs samples
HugoMario Feb 20, 2020
90eaede
added node js sample
HugoMario Feb 20, 2020
212f00c
added kotlin 3.0.16 sample
HugoMario Feb 20, 2020
c8b2373
added php 3.0.16 composed sample
HugoMario Feb 20, 2020
bd0d4cd
added php and kotlin scripts
HugoMario Feb 20, 2020
efdde9b
added php sample with current version
HugoMario Feb 20, 2020
e58094f
updated spring samples with current version
HugoMario Feb 20, 2020
78701a8
updated swift samples with current version
HugoMario Feb 20, 2020
afccc76
added typescript samples with current version
HugoMario Feb 21, 2020
512800d
updated html sample
HugoMario Feb 21, 2020
64ca3a1
updated html md sample with current sample
HugoMario Feb 21, 2020
dbd3b5f
updated html2 samples
HugoMario Feb 21, 2020
f109556
updated spring sample to include cookie value annotation import
HugoMario Feb 21, 2020
b64b55d
Merge branch '3.0.0' into composed-bin-3-0-16
HugoMario Feb 26, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
31 changes: 31 additions & 0 deletions bin/composed/aspnetcore-petstore-server-interface-controller.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/env bash

SCRIPT="$0"

while [ -h "$SCRIPT" ] ; do
ls=`ls -ld "$SCRIPT"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
SCRIPT="$link"
else
SCRIPT=`dirname "$SCRIPT"`/"$link"
fi
done

if [ ! -d "${APP_DIR}" ]; then
APP_DIR=`dirname "$SCRIPT"`/..
APP_DIR=`cd "${APP_DIR}"; pwd`
fi

executable="./modules/swagger-codegen-cli/target/swagger-codegen-cli.jar"

if [ ! -f "$executable" ]
then
mvn clean package
fi

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -Dlogback.configurationFile=bin/logback.xml"
ags="$@ generate -l aspnetcore -i modules/swagger-codegen/src/test/resources/3_0_0/petstore-with-composed-schemas.yaml -o samples/composed/server/petstore/aspnetcore-interface-controller --interface-controller"

java $JAVA_OPTS -jar $executable $ags
31 changes: 31 additions & 0 deletions bin/composed/aspnetcore-petstore-server-interfaces.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/env bash

SCRIPT="$0"

while [ -h "$SCRIPT" ] ; do
ls=`ls -ld "$SCRIPT"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
SCRIPT="$link"
else
SCRIPT=`dirname "$SCRIPT"`/"$link"
fi
done

if [ ! -d "${APP_DIR}" ]; then
APP_DIR=`dirname "$SCRIPT"`/..
APP_DIR=`cd "${APP_DIR}"; pwd`
fi

executable="./modules/swagger-codegen-cli/target/swagger-codegen-cli.jar"

if [ ! -f "$executable" ]
then
mvn clean package
fi

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -Dlogback.configurationFile=bin/logback.xml"
ags="$@ generate -l aspnetcore -i modules/swagger-codegen/src/test/resources/3_0_0/petstore-with-composed-schemas.yaml -o samples/composed/server/petstore/aspnetcore-interface-only --interface-only"

java $JAVA_OPTS -jar $executable $ags
31 changes: 31 additions & 0 deletions bin/composed/aspnetcore-petstore-server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/env bash

SCRIPT="$0"

while [ -h "$SCRIPT" ] ; do
ls=`ls -ld "$SCRIPT"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
SCRIPT="$link"
else
SCRIPT=`dirname "$SCRIPT"`/"$link"
fi
done

if [ ! -d "${APP_DIR}" ]; then
APP_DIR=`dirname "$SCRIPT"`/..
APP_DIR=`cd "${APP_DIR}"; pwd`
fi

executable="./modules/swagger-codegen-cli/target/swagger-codegen-cli.jar"

if [ ! -f "$executable" ]
then
mvn clean package
fi

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -Dlogback.configurationFile=bin/logback.xml"
ags="$@ generate -l aspnetcore -i modules/swagger-codegen/src/test/resources/3_0_0/petstore-with-composed-schemas.yaml -o samples/composed/server/petstore/aspnetcore"

java $JAVA_OPTS -jar $executable $ags
31 changes: 31 additions & 0 deletions bin/composed/csharp-dotnet2-petstore.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/sh

SCRIPT="$0"

while [ -h "$SCRIPT" ] ; do
ls=`ls -ld "$SCRIPT"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
SCRIPT="$link"
else
SCRIPT=`dirname "$SCRIPT"`/"$link"
fi
done

if [ ! -d "${APP_DIR}" ]; then
APP_DIR=`dirname "$SCRIPT"`/..
APP_DIR=`cd "${APP_DIR}"; pwd`
fi

executable="./modules/swagger-codegen-cli/target/swagger-codegen-cli.jar"

if [ ! -f "$executable" ]
then
mvn clean package
fi

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -Dlogback.configurationFile=bin/logback.xml"
ags="$@ generate -i modules/swagger-codegen/src/test/resources/3_0_0/petstore-with-composed-schemas.yaml -l csharp-dotnet2 -o samples/composed/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient --additional-properties hideGenerationTimestamp=true"

java $JAVA_OPTS -jar $executable $ags
17 changes: 17 additions & 0 deletions bin/composed/csharp-petstore-all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh

# C# Petstore API client (.NET 3.5)
./bin/csharp-petstore.sh

# C# Petstore API client with PropertyChanged
./bin/csharp-property-changed-petstore.sh

# C# Petstore API client (v5.0 for .net standarnd 1.3+)
./bin/csharp-petstore-net-standard.sh

# C# Petstore API client (.NET 4.0)
./bin/csharp-petstore-net-40.sh

# C# Petstore API client (.NET 3.5)
./bin/csharp-petstore-net-35.sh

31 changes: 31 additions & 0 deletions bin/composed/csharp-petstore-net-35.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/sh

SCRIPT="$0"

while [ -h "$SCRIPT" ] ; do
ls=`ls -ld "$SCRIPT"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
SCRIPT="$link"
else
SCRIPT=`dirname "$SCRIPT"`/"$link"
fi
done

if [ ! -d "${APP_DIR}" ]; then
APP_DIR=`dirname "$SCRIPT"`/..
APP_DIR=`cd "${APP_DIR}"; pwd`
fi

executable="./modules/swagger-codegen-cli/target/swagger-codegen-cli.jar"

if [ ! -f "$executable" ]
then
mvn clean package
fi

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -Dlogback.configurationFile=bin/logback.xml"
ags="generate $@ -i modules/swagger-codegen/src/test/resources/3_0_0/petstore-with-composed-schemas.yaml -l csharp -o samples/composed/client/petstore/csharp/SwaggerClientNet35 --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C} -c bin/csharp-petstore-net-35.json"

java $JAVA_OPTS -jar $executable $ags
31 changes: 31 additions & 0 deletions bin/composed/csharp-petstore-net-40.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/sh

SCRIPT="$0"

while [ -h "$SCRIPT" ] ; do
ls=`ls -ld "$SCRIPT"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
SCRIPT="$link"
else
SCRIPT=`dirname "$SCRIPT"`/"$link"
fi
done

if [ ! -d "${APP_DIR}" ]; then
APP_DIR=`dirname "$SCRIPT"`/..
APP_DIR=`cd "${APP_DIR}"; pwd`
fi

executable="./modules/swagger-codegen-cli/target/swagger-codegen-cli.jar"

if [ ! -f "$executable" ]
then
mvn clean package
fi

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -Dlogback.configurationFile=bin/logback.xml"
ags="generate $@ -i modules/swagger-codegen/src/test/resources/3_0_0/petstore-with-composed-schemas.yaml -l csharp -o samples/composed/client/petstore/csharp/SwaggerClientNet40 --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C} -c bin/csharp-petstore-net-40.json"

java $JAVA_OPTS -jar $executable $ags
31 changes: 31 additions & 0 deletions bin/composed/csharp-petstore-net-standard.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/sh

SCRIPT="$0"

while [ -h "$SCRIPT" ] ; do
ls=`ls -ld "$SCRIPT"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
SCRIPT="$link"
else
SCRIPT=`dirname "$SCRIPT"`/"$link"
fi
done

if [ ! -d "${APP_DIR}" ]; then
APP_DIR=`dirname "$SCRIPT"`/..
APP_DIR=`cd "${APP_DIR}"; pwd`
fi

executable="./modules/swagger-codegen-cli/target/swagger-codegen-cli.jar"

if [ ! -f "$executable" ]
then
mvn clean package
fi

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -Dlogback.configurationFile=bin/logback.xml"
ags="generate $@ -i modules/swagger-codegen/src/test/resources/3_0_0/petstore-with-composed-schemas.yaml -l csharp -o samples/composed/client/petstore/csharp/SwaggerClientNetStandard --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C} -c bin/csharp-petstore-net-standard.json"

java $JAVA_OPTS -jar $executable $ags
31 changes: 31 additions & 0 deletions bin/composed/csharp-petstore-netcore-project.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/sh

SCRIPT="$0"

while [ -h "$SCRIPT" ] ; do
ls=`ls -ld "$SCRIPT"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
SCRIPT="$link"
else
SCRIPT=`dirname "$SCRIPT"`/"$link"
fi
done

if [ ! -d "${APP_DIR}" ]; then
APP_DIR=`dirname "$SCRIPT"`/..
APP_DIR=`cd "${APP_DIR}"; pwd`
fi

executable="./modules/swagger-codegen-cli/target/swagger-codegen-cli.jar"

if [ ! -f "$executable" ]
then
mvn clean package
fi

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -Dlogback.configurationFile=bin/logback.xml"
ags="generate $@ -i modules/swagger-codegen/src/test/resources/3_0_0/petstore-with-composed-schemas.yaml -l csharp -o samples/composed/client/petstore/csharp/SwaggerClientNetCoreProject --additional-properties packageGuid={67035b31-f8e5-41a4-9673-954035084f7d},netCoreProjectFile=true -c bin/csharp-petstore-net-standard.json"

# java $JAVA_OPTS -jar $executable $ags
31 changes: 31 additions & 0 deletions bin/composed/csharp-petstore.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/sh

SCRIPT="$0"

while [ -h "$SCRIPT" ] ; do
ls=`ls -ld "$SCRIPT"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
SCRIPT="$link"
else
SCRIPT=`dirname "$SCRIPT"`/"$link"
fi
done

if [ ! -d "${APP_DIR}" ]; then
APP_DIR=`dirname "$SCRIPT"`/..
APP_DIR=`cd "${APP_DIR}"; pwd`
fi

executable="./modules/swagger-codegen-cli/target/swagger-codegen-cli.jar"

if [ ! -f "$executable" ]
then
mvn clean package
fi

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -Dlogback.configurationFile=bin/logback.xml"
ags="generate $@ -i modules/swagger-codegen/src/test/resources/3_0_0/petstore-with-composed-schemas.yaml -l csharp -o samples/composed/client/petstore/csharp/SwaggerClient --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C}"

java $JAVA_OPTS -jar $executable $ags
31 changes: 31 additions & 0 deletions bin/composed/csharp-property-changed-petstore.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/sh

SCRIPT="$0"

while [ -h "$SCRIPT" ] ; do
ls=`ls -ld "$SCRIPT"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
SCRIPT="$link"
else
SCRIPT=`dirname "$SCRIPT"`/"$link"
fi
done

if [ ! -d "${APP_DIR}" ]; then
APP_DIR=`dirname "$SCRIPT"`/..
APP_DIR=`cd "${APP_DIR}"; pwd`
fi

executable="./modules/swagger-codegen-cli/target/swagger-codegen-cli.jar"

if [ ! -f "$executable" ]
then
mvn clean package
fi

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -Dlogback.configurationFile=bin/logback.xml"
ags="generate $@ -i modules/swagger-codegen/src/test/resources/3_0_0/petstore-with-composed-schemas.yaml -l csharp -o samples/composed/client/petstore/csharp/SwaggerClientWithPropertyChanged --additional-properties generatePropertyChanged=true --additional-properties packageGuid={5CD900DE-8266-412F-A758-28E1F9C623D5}"

java $JAVA_OPTS -jar $executable $ags
31 changes: 31 additions & 0 deletions bin/composed/dynamic-html.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/sh

SCRIPT="$0"

while [ -h "$SCRIPT" ] ; do
ls=`ls -ld "$SCRIPT"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
SCRIPT="$link"
else
SCRIPT=`dirname "$SCRIPT"`/"$link"
fi
done

if [ ! -d "${APP_DIR}" ]; then
APP_DIR=`dirname "$SCRIPT"`/..
APP_DIR=`cd "${APP_DIR}"; pwd`
fi

executable="./modules/swagger-codegen-cli/target/swagger-codegen-cli.jar"

if [ ! -f "$executable" ]
then
mvn clean package
fi

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -Dlogback.configurationFile=bin/logback.xml"
ags="$@ generate -i modules/swagger-codegen/src/test/resources/3_0_0/petstore-with-composed-schemas.yaml -l dynamic-html -o samples/composed/dynamic-html -DhideGenerationTimestamp=true"

java $JAVA_OPTS -jar $executable $ags
Loading