// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`OpenAPI Gateway Python Standalone Unit Tests Standalone 1`] = `
Object {
".gitattributes": "# ~~ Generated by projen. To modify, edit .projenrc.py and run \\"npx projen\\".
/.gitattributes linguist-generated
/.github/workflows/pull-request-lint.yml linguist-generated
/.gitignore linguist-generated
/.projen/** linguist-generated
/.projen/deps.json linguist-generated
/.projen/files.json linguist-generated
/.projen/tasks.json linguist-generated
/generated/README.md linguist-generated
/MANIFEST.in linguist-generated
/requirements-dev.txt linguist-generated
/requirements.txt linguist-generated
/setup.py linguist-generated",
".github/workflows/pull-request-lint.yml": "# ~~ Generated by projen. To modify, edit .projenrc.py and run \\"npx projen\\".
name: pull-request-lint
on:
pull_request_target:
types:
- labeled
- opened
- synchronize
- reopened
- ready_for_review
- edited
jobs:
validate:
name: Validate PR title
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: amannn/action-semantic-pull-request@v5.0.2
env:
GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }}
with:
types: |-
feat
fix
chore
requireScope: false
",
".gitignore": "# ~~ Generated by projen. To modify, edit .projenrc.py and run \\"npx projen\\".
node_modules/
!/.gitattributes
!/.projen/tasks.json
!/.projen/deps.json
!/.projen/files.json
!/.github/workflows/pull-request-lint.yml
/.env
!/requirements.txt
!/requirements-dev.txt
!/setup.py
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
*.manifest
*.spec
pip-log.txt
pip-delete-this-directory.txt
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/
*.mo
*.pot
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal
instance/
.webassets-cache
.scrapy
docs/_build/
.pybuilder/
target/
.ipynb_checkpoints
profile_default/
ipython_config.py
__pypackages__/
celerybeat-schedule
celerybeat.pid
*.sage.py
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
.spyderproject
.spyproject
.ropeproject
/site
.mypy_cache/
.dmypy.json
dmypy.json
.pyre/
.pytype/
cython_debug/
!/generated/README.md
!/MANIFEST.in
",
".projen/deps.json": Object {
"//": "~~ Generated by projen. To modify, edit .projenrc.py and run \\"npx projen\\".",
"dependencies": Array [
Object {
"name": "projen",
"type": "devenv",
"version": "99.99.99",
},
Object {
"name": "twine",
"type": "devenv",
"version": "3.3.0",
},
Object {
"name": "wheel",
"type": "devenv",
"version": "0.36.2",
},
Object {
"name": "aws_prototyping_sdk.open_api_gateway",
"type": "runtime",
},
Object {
"name": "aws-cdk-lib",
"type": "runtime",
},
Object {
"name": "cdk-nag",
"type": "runtime",
},
Object {
"name": "constructs",
"type": "runtime",
},
Object {
"name": "my_api_python",
"type": "runtime",
},
],
},
".projen/files.json": Object {
"//": "~~ Generated by projen. To modify, edit .projenrc.py and run \\"npx projen\\".",
"files": Array [
".gitattributes",
".github/workflows/pull-request-lint.yml",
".gitignore",
".projen/deps.json",
".projen/files.json",
".projen/tasks.json",
"generated/README.md",
"MANIFEST.in",
"requirements-dev.txt",
"requirements.txt",
"setup.py",
],
},
".projen/tasks.json": Object {
"//": "~~ Generated by projen. To modify, edit .projenrc.py and run \\"npx projen\\".",
"env": Object {
"PATH": "$(echo $PWD/.env/bin:$PATH)",
"VIRTUAL_ENV": "$(echo $PWD/.env)",
},
"tasks": Object {
"build": Object {
"description": "Full release build",
"name": "build",
"steps": Array [
Object {
"spawn": "default",
},
Object {
"spawn": "pre-compile",
},
Object {
"spawn": "compile",
},
Object {
"spawn": "post-compile",
},
Object {
"spawn": "test",
},
Object {
"spawn": "package",
},
],
},
"clobber": Object {
"condition": "git diff --exit-code > /dev/null",
"description": "hard resets to HEAD of origin and cleans the local repo",
"env": Object {
"BRANCH": "$(git branch --show-current)",
},
"name": "clobber",
"steps": Array [
Object {
"exec": "git checkout -b scratch",
"name": "save current HEAD in \\"scratch\\" branch",
},
Object {
"exec": "git checkout $BRANCH",
},
Object {
"exec": "git fetch origin",
"name": "fetch latest changes from origin",
},
Object {
"exec": "git reset --hard origin/$BRANCH",
"name": "hard reset to origin commit",
},
Object {
"exec": "git clean -fdx",
"name": "clean all untracked files",
},
Object {
"say": "ready to rock! (unpushed commits are under the \\"scratch\\" branch)",
},
],
},
"compile": Object {
"description": "Only compile",
"name": "compile",
},
"default": Object {
"description": "Synthesize project files",
"name": "default",
"steps": Array [
Object {
"exec": "python .projenrc.py",
},
],
},
"eject": Object {
"description": "Remove projen from the project",
"env": Object {
"PROJEN_EJECTING": "true",
},
"name": "eject",
"steps": Array [
Object {
"spawn": "default",
},
],
},
"install": Object {
"description": "Install and upgrade dependencies",
"name": "install",
"steps": Array [
Object {
"exec": "pip install --upgrade pip",
},
Object {
"exec": "pip install -r requirements.txt",
},
Object {
"exec": "pip install -r requirements-dev.txt",
},
],
},
"package": Object {
"description": "Creates the distribution package",
"name": "package",
"steps": Array [
Object {
"exec": "python setup.py sdist bdist_wheel",
},
],
},
"post-compile": Object {
"description": "Runs after successful compilation",
"name": "post-compile",
},
"pre-compile": Object {
"description": "Prepare the project for compilation",
"name": "pre-compile",
},
"publish": Object {
"description": "Uploads the package against a test PyPI endpoint.",
"name": "publish",
"steps": Array [
Object {
"exec": "twine upload dist/*",
},
],
},
"publish:test": Object {
"description": "Uploads the package against a test PyPI endpoint.",
"name": "publish:test",
"steps": Array [
Object {
"exec": "twine upload --repository-url https://test.pypi.org/legacy/ dist/*",
},
],
},
"test": Object {
"description": "Run tests",
"name": "test",
},
},
},
"MANIFEST.in": "recursive-include generated/python/dist/layer *",
"README.md": "# replace this",
"generated/.client-settings.json": Object {
"//": "~~ Generated by projen. To modify, edit .projenrc.py and run \\"npx projen\\".",
"clientLanguages": Array [
"typescript",
"python",
"java",
],
"documentationFormats": Array [],
},
"generated/README.md": "## Generated Clients
This directory contains generated client code based on your OpenAPI Specification file (spec.yaml).
Like other \`projen\` managed files, this directory should be checked in to source control, but should not be edited manually.",
"generated/java/.gitattributes": "# ~~ Generated by projen. To modify, edit .projenrc.js and run \\"npx projen\\".
/.gitattributes linguist-generated
/.gitignore linguist-generated
/.openapi-generator-ignore linguist-generated
/.projen/** linguist-generated
/.projen/deps.json linguist-generated
/.projen/files.json linguist-generated
/.projen/tasks.json linguist-generated
/package.json linguist-generated
/pom.xml linguist-generated",
"generated/java/.github/workflows/maven.yml": "# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
#
# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech)
name: Java CI with Maven
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
build:
name: Build Example API
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8' ]
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: \${{ matrix.java }}
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --no-transfer-progress --file pom.xml
",
"generated/java/.gitignore": "# ~~ Generated by projen. To modify, edit .projenrc.js and run \\"npx projen\\".
node_modules/
!/.gitattributes
!/.projen/tasks.json
!/.projen/deps.json
!/.projen/files.json
!/pom.xml
.classpath
.project
.settings
target
dist/java
!/.openapi-generator-ignore
!/package.json
",
"generated/java/.openapi-generator-ignore": "# ~~ Generated by projen. To modify, edit .projenrc.js and run \\"npx projen\\".
.gitignore
pom.xml
",
"generated/java/.openapi-generator/FILES": ".github/workflows/maven.yml
.travis.yml
README.md
api/openapi.yaml
build.gradle
build.sbt
docs/ApiErrorResponseContent.md
docs/DefaultApi.md
docs/SayHelloResponseContent.md
git_push.sh
gradle.properties
gradle/wrapper/gradle-wrapper.jar
gradle/wrapper/gradle-wrapper.properties
gradlew
gradlew.bat
settings.gradle
src/main/AndroidManifest.xml
src/main/java/com/generated/api/myapijava/client/ApiCallback.java
src/main/java/com/generated/api/myapijava/client/ApiClient.java
src/main/java/com/generated/api/myapijava/client/ApiException.java
src/main/java/com/generated/api/myapijava/client/ApiResponse.java
src/main/java/com/generated/api/myapijava/client/Configuration.java
src/main/java/com/generated/api/myapijava/client/GzipRequestInterceptor.java
src/main/java/com/generated/api/myapijava/client/JSON.java
src/main/java/com/generated/api/myapijava/client/Pair.java
src/main/java/com/generated/api/myapijava/client/ProgressRequestBody.java
src/main/java/com/generated/api/myapijava/client/ProgressResponseBody.java
src/main/java/com/generated/api/myapijava/client/ServerConfiguration.java
src/main/java/com/generated/api/myapijava/client/ServerVariable.java
src/main/java/com/generated/api/myapijava/client/StringUtil.java
src/main/java/com/generated/api/myapijava/client/api/DefaultApi.java
src/main/java/com/generated/api/myapijava/client/api/DefaultApi/Handlers.java
src/main/java/com/generated/api/myapijava/client/api/DefaultApi/OperationConfig.java
src/main/java/com/generated/api/myapijava/client/api/DefaultApi/OperationLookup.java
src/main/java/com/generated/api/myapijava/client/api/DefaultApi/Operations.java
src/main/java/com/generated/api/myapijava/client/auth/ApiKeyAuth.java
src/main/java/com/generated/api/myapijava/client/auth/Authentication.java
src/main/java/com/generated/api/myapijava/client/auth/HttpBasicAuth.java
src/main/java/com/generated/api/myapijava/client/auth/HttpBearerAuth.java
src/main/java/com/generated/api/myapijava/client/model/AbstractOpenApiSchema.java
src/main/java/com/generated/api/myapijava/client/model/ApiErrorResponseContent.java
src/main/java/com/generated/api/myapijava/client/model/SayHelloResponseContent.java
src/test/java/com/generated/api/myapijava/client/api/DefaultApiTest.java
src/test/java/com/generated/api/myapijava/client/model/ApiErrorResponseContentTest.java
src/test/java/com/generated/api/myapijava/client/model/SayHelloResponseContentTest.java
",
"generated/java/.openapi-generator/VERSION": "6.3.0",
"generated/java/.projen/deps.json": Object {
"//": "~~ Generated by projen. To modify, edit .projenrc.js and run \\"npx projen\\".",
"dependencies": Array [
Object {
"metadata": Object {
"configuration": Object {
"source": "1.8",
"target": "1.8",
},
},
"name": "org.apache.maven.plugins/maven-compiler-plugin",
"type": "build",
"version": "3.8.1",
},
Object {
"metadata": Object {
"configuration": Object {
"rules": Array [
Object {
"requireMavenVersion": Array [
Object {
"version": "3.6",
},
],
},
],
},
"executions": Array [
Object {
"goals": Array [
"enforce",
],
"id": "enforce-maven",
},
],
},
"name": "org.apache.maven.plugins/maven-enforcer-plugin",
"type": "build",
"version": "3.0.0-M3",
},
Object {
"metadata": Object {
"configuration": Object {
"archive": Object {
"index": true,
"manifest": Object {
"addDefaultImplementationEntries": true,
"addDefaultSpecificationEntries": true,
},
},
},
},
"name": "org.apache.maven.plugins/maven-jar-plugin",
"type": "build",
"version": "3.2.0",
},
Object {
"metadata": Object {
"configuration": Object {
"additionalJOptions": Object {
"additionalJOption": Array [
"-J-XX:+TieredCompilation",
"-J-XX:TieredStopAtLevel=1",
],
},
"detectJavaApiLink": false,
"failOnError": false,
"show": "protected",
},
"executions": Array [
Object {
"goals": Array [
"jar",
],
"id": "attach-javadocs",
},
],
},
"name": "org.apache.maven.plugins/maven-javadoc-plugin",
"type": "build",
"version": "3.2.0",
},
Object {
"metadata": Object {
"executions": Array [
Object {
"goals": Array [
"jar",
],
"id": "attach-sources",
},
],
},
"name": "org.apache.maven.plugins/maven-source-plugin",
"type": "build",
"version": "3.2.1",
},
Object {
"name": "com.amazonaws/aws-lambda-java-core",
"type": "runtime",
"version": "1.2.1",
},
Object {
"name": "com.amazonaws/aws-lambda-java-events",
"type": "runtime",
"version": "3.11.0",
},
Object {
"name": "com.google.code.findbugs/jsr305",
"type": "runtime",
"version": "3.0.2",
},
Object {
"name": "com.google.code.gson/gson",
"type": "runtime",
"version": "2.9.1",
},
Object {
"name": "com.squareup.okhttp3/logging-interceptor",
"type": "runtime",
"version": "4.10.0",
},
Object {
"name": "com.squareup.okhttp3/okhttp",
"type": "runtime",
"version": "4.10.0",
},
Object {
"name": "io.gsonfire/gson-fire",
"type": "runtime",
"version": "1.8.5",
},
Object {
"name": "io.swagger/swagger-annotations",
"type": "runtime",
"version": "1.6.8",
},
Object {
"name": "jakarta.annotation/jakarta.annotation-api",
"type": "runtime",
"version": "1.3.5",
},
Object {
"name": "javax.ws.rs/javax.ws.rs-api",
"type": "runtime",
"version": "2.1.1",
},
Object {
"name": "javax.ws.rs/jsr311-api",
"type": "runtime",
"version": "1.1.1",
},
Object {
"name": "org.apache.commons/commons-lang3",
"type": "runtime",
"version": "3.12.0",
},
Object {
"name": "org.openapitools/jackson-databind-nullable",
"type": "runtime",
"version": "0.2.4",
},
Object {
"name": "org.projectlombok/lombok",
"type": "runtime",
"version": "1.18.24",
},
Object {
"name": "org.junit.jupiter/junit-jupiter-api",
"type": "test",
"version": "5.9.1",
},
Object {
"name": "org.mockito/mockito-core",
"type": "test",
"version": "3.12.4",
},
],
},
"generated/java/.projen/files.json": Object {
"//": "~~ Generated by projen. To modify, edit .projenrc.js and run \\"npx projen\\".",
"files": Array [
".gitattributes",
".gitignore",
".openapi-generator-ignore",
".projen/deps.json",
".projen/files.json",
".projen/tasks.json",
"package.json",
"pom.xml",
],
},
"generated/java/.projen/tasks.json": Object {
"//": "~~ Generated by projen. To modify, edit .projenrc.js and run \\"npx projen\\".",
"tasks": Object {
"build": Object {
"description": "Full release build",
"name": "build",
"steps": Array [
Object {
"spawn": "pre-compile",
},
Object {
"spawn": "compile",
},
Object {
"spawn": "post-compile",
},
Object {
"spawn": "test",
},
Object {
"spawn": "package",
},
],
},
"compile": Object {
"description": "Only compile",
"name": "compile",
"steps": Array [
Object {
"exec": "mvn compiler:compile",
},
],
},
"default": Object {
"description": "Synthesize project files",
"name": "default",
"steps": Array [
Object {
"cwd": "../..",
"exec": "npx projen default",
},
],
},
"package": Object {
"description": "Creates the distribution package",
"env": Object {
"MAVEN_OPTS": "-XX:+TieredCompilation -XX:TieredStopAtLevel=1",
},
"name": "package",
"steps": Array [
Object {
"exec": "mkdir -p dist/java",
},
Object {
"exec": "mvn deploy -D=altDeploymentRepository=local::default::file:///$PWD/dist/java",
},
],
},
"post-compile": Object {
"description": "Runs after successful compilation",
"name": "post-compile",
},
"pre-compile": Object {
"description": "Prepare the project for compilation",
"name": "pre-compile",
},
"test": Object {
"description": "Run tests",
"name": "test",
},
},
},
"generated/java/.travis.yml": "#
# Generated by OpenAPI Generator: https://openapi-generator.tech
#
# Ref: https://docs.travis-ci.com/user/languages/java/
#
language: java
jdk:
- openjdk12
- openjdk11
- openjdk10
- openjdk9
- openjdk8
before_install:
# ensure gradlew has proper permission
- chmod a+x ./gradlew
script:
# test using maven
#- mvn test
# test using gradle
- gradle test
# test using sbt
# - sbt test
",
"generated/java/README.md": "# my-api-java
Example API
- API version: 1.0.0
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)*
## Requirements
Building the API client library requires:
1. Java 1.8+
2. Maven (3.8.3+)/Gradle (7.2+)
## Installation
To install the API client library to your local Maven repository, simply execute:
\`\`\`shell
mvn clean install
\`\`\`
To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
\`\`\`shell
mvn clean deploy
\`\`\`
Refer to the [OSSRH Guide](http://central.sonatype.org/pages/ossrh-guide.html) for more information.
### Maven users
Add this dependency to your project's POM:
\`\`\`xml
com.generated.api
my-api-java
0.0.0
compile
\`\`\`
### Gradle users
Add this dependency to your project's build file:
\`\`\`groovy
repositories {
mavenCentral() // Needed if the 'my-api-java' jar has been published to maven central.
mavenLocal() // Needed if the 'my-api-java' jar has been published to the local maven repo.
}
dependencies {
implementation \\"com.generated.api:my-api-java:0.0.0\\"
}
\`\`\`
### Others
At first generate the JAR by executing:
\`\`\`shell
mvn clean package
\`\`\`
Then manually install the following JARs:
* \`target/my-api-java-0.0.0.jar\`
* \`target/lib/*.jar\`
## Getting Started
Please follow the [installation](#installation) instruction and execute the following Java code:
\`\`\`java
// Import classes:
import com.generated.api.myapijava.client.ApiClient;
import com.generated.api.myapijava.client.ApiException;
import com.generated.api.myapijava.client.Configuration;
import com.generated.api.myapijava.client.models.*;
import com.generated.api.myapijava.client.api.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath(\\"http://localhost\\");
DefaultApi apiInstance = new DefaultApi(defaultClient);
String name = \\"name_example\\"; // String |
try {
SayHelloResponseContent result = apiInstance.sayHello(name)
.execute();
System.out.println(result);
} catch (ApiException e) {
System.err.println(\\"Exception when calling DefaultApi#sayHello\\");
System.err.println(\\"Status code: \\" + e.getCode());
System.err.println(\\"Reason: \\" + e.getResponseBody());
System.err.println(\\"Response headers: \\" + e.getResponseHeaders());
e.printStackTrace();
}
}
}
\`\`\`
## Documentation for API Endpoints
All URIs are relative to *http://localhost*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*DefaultApi* | [**sayHello**](docs/DefaultApi.md#sayHello) | **GET** /hello |
## Documentation for Models
- [ApiErrorResponseContent](docs/ApiErrorResponseContent.md)
- [SayHelloResponseContent](docs/SayHelloResponseContent.md)
## Documentation for Authorization
All endpoints do not require authorization.
Authentication schemes defined for the API:
## Recommendation
It's recommended to create an instance of \`ApiClient\` per thread in a multithreaded environment to avoid any potential issues.
## Author
",
"generated/java/api/openapi.yaml": "openapi: 3.0.3
info:
title: Example API
version: 1.0.0
servers:
- url: /
paths:
/hello:
get:
operationId: sayHello
parameters:
- explode: true
in: query
name: name
required: true
schema:
type: string
style: form
responses:
\\"200\\":
content:
application/json:
schema:
$ref: '#/components/schemas/SayHelloResponseContent'
description: Successful response
\\"400\\":
content:
application/json:
schema:
$ref: '#/components/schemas/ApiErrorResponseContent'
description: Error response
x-accepts: application/json
components:
schemas:
ApiErrorResponseContent:
properties:
errorMessage:
type: string
required:
- errorMessage
type: object
SayHelloResponseContent:
properties:
message:
type: string
required:
- message
type: object
",
"generated/java/build.gradle": "apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'
group = 'com.generated.api'
version = '0.0.0'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.+'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath 'com.diffplug.spotless:spotless-plugin-gradle:6.11.0'
}
}
repositories {
mavenCentral()
}
sourceSets {
main.java.srcDirs = ['src/main/java']
}
if(hasProperty('target') && target == 'android') {
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
android {
compileSdkVersion 25
buildToolsVersion '25.0.2'
defaultConfig {
minSdkVersion 14
targetSdkVersion 25
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
// Rename the aar correctly
libraryVariants.all { variant ->
variant.outputs.each { output ->
def outputFile = output.outputFile
if (outputFile != null && outputFile.name.endsWith('.aar')) {
def fileName = \\"\${project.name}-\${variant.baseName}-\${version}.aar\\"
output.outputFile = new File(outputFile.parent, fileName)
}
}
}
dependencies {
provided \\"jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version\\"
}
}
afterEvaluate {
android.libraryVariants.all { variant ->
def task = project.tasks.create \\"jar\${variant.name.capitalize()}\\", Jar
task.description = \\"Create jar artifact for \${variant.name}\\"
task.dependsOn variant.javaCompile
task.from variant.javaCompile.destinationDir
task.destinationDir = project.file(\\"\${project.buildDir}/outputs/jar\\")
task.archiveName = \\"\${project.name}-\${variant.baseName}-\${version}.jar\\"
artifacts.add('archives', task)
}
}
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
artifacts {
archives sourcesJar
}
} else {
apply plugin: 'java'
apply plugin: 'maven-publish'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
publishing {
publications {
maven(MavenPublication) {
artifactId = 'my-api-java'
from components.java
}
}
}
task execute(type:JavaExec) {
main = System.getProperty('mainClass')
classpath = sourceSets.main.runtimeClasspath
}
}
ext {
jakarta_annotation_version = \\"1.3.5\\"
}
dependencies {
implementation 'io.swagger:swagger-annotations:1.6.8'
implementation \\"com.google.code.findbugs:jsr305:3.0.2\\"
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.10.0'
implementation 'com.google.code.gson:gson:2.9.1'
implementation 'io.gsonfire:gson-fire:1.8.5'
implementation 'javax.ws.rs:jsr311-api:1.1.1'
implementation 'javax.ws.rs:javax.ws.rs-api:2.1.1'
implementation 'org.openapitools:jackson-databind-nullable:0.2.4'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
implementation \\"jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version\\"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.1'
testImplementation 'org.mockito:mockito-core:3.12.4'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.1'
}
javadoc {
options.tags = [ \\"http.response.details:a:Http Response Details\\" ]
}
// Use spotless plugin to automatically format code, remove unused import, etc
// To apply changes directly to the file, run \`gradlew spotlessApply\`
// Ref: https://github.com/diffplug/spotless/tree/main/plugin-gradle
spotless {
// comment out below to run spotless as part of the \`check\` task
enforceCheck false
format 'misc', {
// define the files (e.g. '*.gradle', '*.md') to apply \`misc\` to
target '.gitignore'
// define the steps to apply to those files
trimTrailingWhitespace()
indentWithSpaces() // Takes an integer argument if you don't like 4
endWithNewline()
}
java {
// don't need to set target, it is inferred from java
// apply a specific flavor of google-java-format
googleJavaFormat('1.8').aosp().reflowLongStrings()
removeUnusedImports()
importOrder()
}
}
test {
// Enable JUnit 5 (Gradle 4.6+).
useJUnitPlatform()
// Always run tests, even when nothing changed.
dependsOn 'cleanTest'
// Show test results.
testLogging {
events \\"passed\\", \\"skipped\\", \\"failed\\"
}
}
",
"generated/java/build.sbt": "lazy val root = (project in file(\\".\\")).
settings(
organization := \\"com.generated.api\\",
name := \\"my-api-java\\",
version := \\"0.0.0\\",
scalaVersion := \\"2.11.4\\",
scalacOptions ++= Seq(\\"-feature\\"),
javacOptions in compile ++= Seq(\\"-Xlint:deprecation\\"),
publishArtifact in (Compile, packageDoc) := false,
resolvers += Resolver.mavenLocal,
libraryDependencies ++= Seq(
\\"io.swagger\\" % \\"swagger-annotations\\" % \\"1.6.5\\",
\\"com.squareup.okhttp3\\" % \\"okhttp\\" % \\"4.10.0\\",
\\"com.squareup.okhttp3\\" % \\"logging-interceptor\\" % \\"4.10.0\\",
\\"com.google.code.gson\\" % \\"gson\\" % \\"2.9.1\\",
\\"org.apache.commons\\" % \\"commons-lang3\\" % \\"3.12.0\\",
\\"javax.ws.rs\\" % \\"jsr311-api\\" % \\"1.1.1\\",
\\"javax.ws.rs\\" % \\"javax.ws.rs-api\\" % \\"2.1.1\\",
\\"org.openapitools\\" % \\"jackson-databind-nullable\\" % \\"0.2.4\\",
\\"io.gsonfire\\" % \\"gson-fire\\" % \\"1.8.5\\" % \\"compile\\",
\\"jakarta.annotation\\" % \\"jakarta.annotation-api\\" % \\"1.3.5\\" % \\"compile\\",
\\"com.google.code.findbugs\\" % \\"jsr305\\" % \\"3.0.2\\" % \\"compile\\",
\\"jakarta.annotation\\" % \\"jakarta.annotation-api\\" % \\"1.3.5\\" % \\"compile\\",
\\"org.junit.jupiter\\" % \\"junit-jupiter-api\\" % \\"5.9.1\\" % \\"test\\",
\\"com.novocode\\" % \\"junit-interface\\" % \\"0.10\\" % \\"test\\",
\\"org.mockito\\" % \\"mockito-core\\" % \\"3.12.4\\" % \\"test\\"
)
)
",
"generated/java/docs/ApiErrorResponseContent.md": "
# ApiErrorResponseContent
## Properties
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**errorMessage** | **String** | | |
",
"generated/java/docs/DefaultApi.md": "# DefaultApi
All URIs are relative to *http://localhost*
| Method | HTTP request | Description |
|------------- | ------------- | -------------|
| [**sayHello**](DefaultApi.md#sayHello) | **GET** /hello | |
# **sayHello**
> SayHelloResponseContent sayHello(name).execute();
### Example
\`\`\`java
// Import classes:
import com.generated.api.myapijava.client.ApiClient;
import com.generated.api.myapijava.client.ApiException;
import com.generated.api.myapijava.client.Configuration;
import com.generated.api.myapijava.client.models.*;
import com.generated.api.myapijava.client.api.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath(\\"http://localhost\\");
DefaultApi apiInstance = new DefaultApi(defaultClient);
String name = \\"name_example\\"; // String |
try {
SayHelloResponseContent result = apiInstance.sayHello(name)
.execute();
System.out.println(result);
} catch (ApiException e) {
System.err.println(\\"Exception when calling DefaultApi#sayHello\\");
System.err.println(\\"Status code: \\" + e.getCode());
System.err.println(\\"Reason: \\" + e.getResponseBody());
System.err.println(\\"Response headers: \\" + e.getResponseHeaders());
e.printStackTrace();
}
}
}
\`\`\`
### Parameters
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **name** | **String**| | |
### Return type
[**SayHelloResponseContent**](SayHelloResponseContent.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Successful response | - |
| **400** | Error response | - |
",
"generated/java/docs/SayHelloResponseContent.md": "
# SayHelloResponseContent
## Properties
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**message** | **String** | | |
",
"generated/java/git_push.sh": "#!/bin/sh
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
#
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl \\"minor update\\" \\"gitlab.com\\"
git_user_id=$1
git_repo_id=$2
release_note=$3
git_host=$4
if [ \\"$git_host\\" = \\"\\" ]; then
git_host=\\"github.com\\"
echo \\"[INFO] No command line input provided. Set \\\\$git_host to $git_host\\"
fi
if [ \\"$git_user_id\\" = \\"\\" ]; then
git_user_id=\\"GIT_USER_ID\\"
echo \\"[INFO] No command line input provided. Set \\\\$git_user_id to $git_user_id\\"
fi
if [ \\"$git_repo_id\\" = \\"\\" ]; then
git_repo_id=\\"GIT_REPO_ID\\"
echo \\"[INFO] No command line input provided. Set \\\\$git_repo_id to $git_repo_id\\"
fi
if [ \\"$release_note\\" = \\"\\" ]; then
release_note=\\"Minor update\\"
echo \\"[INFO] No command line input provided. Set \\\\$release_note to $release_note\\"
fi
# Initialize the local directory as a Git repository
git init
# Adds the files in the local repository and stages them for commit.
git add .
# Commits the tracked changes and prepares them to be pushed to a remote repository.
git commit -m \\"$release_note\\"
# Sets the new remote
git_remote=$(git remote)
if [ \\"$git_remote\\" = \\"\\" ]; then # git remote not defined
if [ \\"$GIT_TOKEN\\" = \\"\\" ]; then
echo \\"[INFO] \\\\$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment.\\"
git remote add origin https://\${git_host}/\${git_user_id}/\${git_repo_id}.git
else
git remote add origin https://\${git_user_id}:\\"\${GIT_TOKEN}\\"@\${git_host}/\${git_user_id}/\${git_repo_id}.git
fi
fi
git pull origin master
# Pushes (Forces) the changes in the local repository up to the remote repository
echo \\"Git pushing to https://\${git_host}/\${git_user_id}/\${git_repo_id}.git\\"
git push origin master 2>&1 | grep -v 'To https'
",
"generated/java/gradle.properties": "# This file is automatically generated by OpenAPI Generator (https://github.com/openAPITools/openapi-generator).
# To include other gradle properties as part of the code generation process, please use the \`gradleProperties\` option.
#
# Gradle properties reference: https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties
# For example, uncomment below to build for Android
#target = android
",
"generated/java/gradle/wrapper/gradle-wrapper.jar": "PK
A META-INF/ PK
A m�>=@ ? META-INF/MANIFEST.MF�M��LK-.�
K-*��ϳR0�3����-�I�M�+I,
�d��Z)�%��*�%��r�r PK
A org/ PK
A org/gradle/ PK
A org/gradle/wrapper/ PK
A �%Ӧ� / org/gradle/wrapper/BootstrapMainStarter$1.class�R�n�@=Ӹu1���Ey�@_Iik�6�U�@.,Ru��L�!��G� �6 ���(ı ]t1ss�չ���_� x�� ��ᾏM|4�i��s�Z�}.���k�ތ�=e�d/c���Υ�ei�0�c��=<�O���b��+7.P���m�B%����M�
�-�wźl�6i<�Z2�93�����#��ұ w�ںl
h�������x8F��E��v~�ė�9�P%p�w8�.�R3�S� ѵ��Ac�+j�g�QEoN Sz��B�z������j�\\\\�:�����
zQ^��oPK
A i,� $
- org/gradle/wrapper/BootstrapMainStarter.class�V�SW�sٰ,�1*���BI /�V�V�(�-m��.�!�nv�f��jﭽ<���� �%�2�ӗv����;�IIb���ٳ���]7�>��1���IF 2^� C��0%c���A�0#aVF�d\\\\�{2�Ǽ�d\\\\�Uq�BNP��p]�R2\\"�!c7%|؉^|$AaQ�ʋ� .aI�~ ���ee�4��1�r����tSwN3��+��U��U�䳕�\\"��E�(a��k����{��w�u��T-��.�Z��黶�����9�r���h��u4���8C�,����-펖64���:�n�=�n�/�w�hv�<�l#� {.'�a�nVf��ӚM����U�
[��'b��0��^�SXB�D�]Î�.I���,[�X��͗�w��$w7'nm���H��SçI��r��=���btr6���+�n�e ��:K�YP���_�_�%u��P�-q
i��g���M�-{�\\\\f����I�jW˔0�\` �
N���V8s��K���b���
ʇ���2�_t+�c�O����f�\\\\�ɧ�X�C��Cϖ�K�����
���9%� 9
,�H�X�
ʩ���;
�c ��|�O��}�.�w��Tk�)��3|N�*Z�R�RU_�K_�k�z�3�U梾
��\`\\\\�4�T�[�၂����l����#��+*0�>�i�X
��i�FZ$K�]�h�O&�������Vo����FW���c-�M��D�qh�ƛ�:U�T��T����;#R�Nv���R�zH$['tk=��e��&ś�o����h�8�6�ls�ܕ���P�=��֣
�e�d�,�X��:��\`�Զ�l\\"�z�ϼ���N�E�/��w�ۼ�-j=���y1/[�\\\\�f �U�e��v��S/7,��xBY|��͙ZI,<�J��G�x ��&����[������
�_�
Ct]b :O Iӓa�$E��$��>¶�C��w�\\\\�����o4��
Hn\\"�#RG�w�
��Nb(Utm�{��ۣ�*z����*�c�h ���#9_xW���c�h�yG�}�ը�/��C��C�A����S�s/A݇���~8�#�E�R�7q%��B��#
ܤ@-8q;Dv�{K�0�*���G����c�M%�8N����M����UK��;I�1�D�� �%Ğↄ���DvN��ަ�D�����g���y|��px���#U��c���������U��]����@�}���i�P8�T�(�j�@� �1*B��� �qg)