Skip to content

Commit 6f96cca

Browse files
committed
commit generated files
1 parent 619a589 commit 6f96cca

80 files changed

Lines changed: 5187 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.openapi-generator-ignore
2+
README.md
3+
build.gradle.kts
4+
gradle/wrapper/gradle-wrapper.jar
5+
gradle/wrapper/gradle-wrapper.properties
6+
gradlew
7+
gradlew.bat
8+
pom.xml
9+
settings.gradle
10+
src/main/kotlin/org/openapitools/api/PetApiClient.kt
11+
src/main/kotlin/org/openapitools/api/StoreApiClient.kt
12+
src/main/kotlin/org/openapitools/api/UserApiClient.kt
13+
src/main/kotlin/org/openapitools/model/Category.kt
14+
src/main/kotlin/org/openapitools/model/ModelApiResponse.kt
15+
src/main/kotlin/org/openapitools/model/Order.kt
16+
src/main/kotlin/org/openapitools/model/Pet.kt
17+
src/main/kotlin/org/openapitools/model/Tag.kt
18+
src/main/kotlin/org/openapitools/model/User.kt
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7.18.0-SNAPSHOT
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# OpenAPI generated API stub
2+
3+
Spring Framework stub
4+
5+
6+
## Overview
7+
This code was generated by the [OpenAPI Generator](https://openapi-generator.tech) project.
8+
By using the [OpenAPI-Spec](https://openapis.org), you can easily generate an API stub.
9+
This is an example of building API stub interfaces in Java using the Spring framework.
10+
11+
The stubs generated can be used in your existing Spring-MVC or Spring-Boot application to create controller endpoints
12+
by adding ```@Controller``` classes that implement the interface. Eg:
13+
```java
14+
@Controller
15+
public class PetController implements PetApi {
16+
// implement all PetApi methods
17+
}
18+
```
19+
20+
You can also use the interface to create [Spring-Cloud Feign clients](http://projects.spring.io/spring-cloud/spring-cloud.html#spring-cloud-feign-inheritance).Eg:
21+
```java
22+
@FeignClient(name="pet", url="http://petstore.swagger.io/v2")
23+
public interface PetClient extends PetApi {
24+
25+
}
26+
```
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2+
3+
group = "org.openapitools"
4+
version = "1.0.0"
5+
java.sourceCompatibility = JavaVersion.VERSION_17
6+
7+
repositories {
8+
mavenCentral()
9+
maven { url = uri("https://repo.spring.io/milestone") }
10+
}
11+
12+
tasks.withType<KotlinCompile> {
13+
kotlinOptions.jvmTarget = "17"
14+
}
15+
16+
plugins {
17+
val kotlinVersion = "1.9.25"
18+
id("org.jetbrains.kotlin.jvm") version kotlinVersion
19+
id("org.jetbrains.kotlin.plugin.jpa") version kotlinVersion
20+
id("org.jetbrains.kotlin.plugin.spring") version kotlinVersion
21+
id("org.springframework.boot") version "3.0.2"
22+
id("io.spring.dependency-management") version "1.0.14.RELEASE"
23+
}
24+
25+
tasks.getByName("bootJar") {
26+
enabled = false
27+
}
28+
29+
tasks.getByName("jar") {
30+
enabled = true
31+
}
32+
33+
dependencyManagement {
34+
imports {
35+
mavenBom("org.springframework.cloud:spring-cloud-dependencies:2021.0.5")
36+
}
37+
}
38+
39+
dependencies {
40+
val kotlinxCoroutinesVersion = "1.6.1"
41+
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
42+
implementation("org.jetbrains.kotlin:kotlin-reflect")
43+
implementation("org.springframework.boot:spring-boot-starter-webflux")
44+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinxCoroutinesVersion")
45+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor:$kotlinxCoroutinesVersion")
46+
implementation("org.springdoc:springdoc-openapi-starter-webflux-api:2.6.0")
47+
48+
implementation("com.google.code.findbugs:jsr305:3.0.2")
49+
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml")
50+
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-xml")
51+
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310")
52+
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
53+
54+
implementation("org.springframework.cloud:spring-cloud-starter-openfeign")
55+
implementation("org.springframework.cloud:spring-cloud-starter-oauth2:2.2.5.RELEASE")
56+
57+
implementation("jakarta.validation:jakarta.validation-api")
58+
implementation("jakarta.annotation:jakarta.annotation-api:2.1.0")
59+
60+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/gradlew

Lines changed: 249 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)