Skip to content

Commit

Permalink
Use Swagger spec to create client for calling DungaDunga backend
Browse files Browse the repository at this point in the history
  • Loading branch information
4Ply committed Dec 13, 2023
1 parent 32d832e commit f292965
Show file tree
Hide file tree
Showing 55 changed files with 3,150 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# 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 OpenAPI Generator 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

**/**

!src/main/kotlin/org/trackedout/client/**
!docs/
49 changes: 49 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
docs/AuthApi.md
docs/AuthForgotPasswordPostRequest.md
docs/AuthLoginPostRequest.md
docs/AuthLogoutPostRequest.md
docs/AuthRegisterPost201Response.md
docs/AuthRegisterPostRequest.md
docs/AuthResetPasswordPostRequest.md
docs/AuthTokens.md
docs/Error.md
docs/Token.md
docs/User.md
docs/UserWithTokens.md
docs/UsersApi.md
docs/UsersGet200Response.md
docs/UsersIdPatchRequest.md
docs/UsersPostRequest.md
src/main/kotlin/org/trackedout/client/apis/AuthApi.kt
src/main/kotlin/org/trackedout/client/apis/UsersApi.kt
src/main/kotlin/org/trackedout/client/infrastructure/ApiAbstractions.kt
src/main/kotlin/org/trackedout/client/infrastructure/ApiClient.kt
src/main/kotlin/org/trackedout/client/infrastructure/ApiResponse.kt
src/main/kotlin/org/trackedout/client/infrastructure/BigDecimalAdapter.kt
src/main/kotlin/org/trackedout/client/infrastructure/BigIntegerAdapter.kt
src/main/kotlin/org/trackedout/client/infrastructure/ByteArrayAdapter.kt
src/main/kotlin/org/trackedout/client/infrastructure/Errors.kt
src/main/kotlin/org/trackedout/client/infrastructure/LocalDateAdapter.kt
src/main/kotlin/org/trackedout/client/infrastructure/LocalDateTimeAdapter.kt
src/main/kotlin/org/trackedout/client/infrastructure/OffsetDateTimeAdapter.kt
src/main/kotlin/org/trackedout/client/infrastructure/PartConfig.kt
src/main/kotlin/org/trackedout/client/infrastructure/RequestConfig.kt
src/main/kotlin/org/trackedout/client/infrastructure/RequestMethod.kt
src/main/kotlin/org/trackedout/client/infrastructure/ResponseExtensions.kt
src/main/kotlin/org/trackedout/client/infrastructure/Serializer.kt
src/main/kotlin/org/trackedout/client/infrastructure/URIAdapter.kt
src/main/kotlin/org/trackedout/client/infrastructure/UUIDAdapter.kt
src/main/kotlin/org/trackedout/client/models/AuthForgotPasswordPostRequest.kt
src/main/kotlin/org/trackedout/client/models/AuthLoginPostRequest.kt
src/main/kotlin/org/trackedout/client/models/AuthLogoutPostRequest.kt
src/main/kotlin/org/trackedout/client/models/AuthRegisterPost201Response.kt
src/main/kotlin/org/trackedout/client/models/AuthRegisterPostRequest.kt
src/main/kotlin/org/trackedout/client/models/AuthResetPasswordPostRequest.kt
src/main/kotlin/org/trackedout/client/models/AuthTokens.kt
src/main/kotlin/org/trackedout/client/models/Error.kt
src/main/kotlin/org/trackedout/client/models/Token.kt
src/main/kotlin/org/trackedout/client/models/User.kt
src/main/kotlin/org/trackedout/client/models/UserWithTokens.kt
src/main/kotlin/org/trackedout/client/models/UsersGet200Response.kt
src/main/kotlin/org/trackedout/client/models/UsersIdPatchRequest.kt
src/main/kotlin/org/trackedout/client/models/UsersPostRequest.kt
1 change: 1 addition & 0 deletions .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.1.0
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id 'fabric-loom' version '1.4-SNAPSHOT'
id 'maven-publish'
id "org.jetbrains.kotlin.jvm" version "1.9.21"
id "io.swagger.core.v3.swagger-gradle-plugin" version "2.2.19"
}

version = project.mod_version
Expand Down Expand Up @@ -44,6 +45,14 @@ dependencies {
// These are included in the Fabric API production distribution and allow you to update your mod to the latest modules at a later more convenient time.

// modImplementation "net.fabricmc.fabric-api:fabric-api-deprecated:${project.fabric_version}"

// https://square.github.io/okhttp/#releases
implementation(platform("com.squareup.okhttp3:okhttp-bom:4.11.0"))
// Define any required OkHttp artifacts without version
implementation("com.squareup.okhttp3:okhttp")
implementation("com.squareup.okhttp3:logging-interceptor")
implementation("com.squareup.moshi:moshi:1.14.0")
implementation("com.squareup.moshi:moshi-kotlin:1.14.0")
}

processResources {
Expand Down
Loading

0 comments on commit f292965

Please sign in to comment.