// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`OpenAPI Gateway Java With Docs Unit Tests With Docs 1`] = `
Object {
".gitattributes": "# ~~ Generated by projen. To modify, edit src/test/java/projenrc.java 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
/pom.xml linguist-generated",
".github/workflows/pull-request-lint.yml": "# ~~ Generated by projen. To modify, edit src/test/java/projenrc.java 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 src/test/java/projenrc.java and run \\"npx projen\\".
node_modules/
!/.gitattributes
!/.projen/tasks.json
!/.projen/deps.json
!/.projen/files.json
!/.github/workflows/pull-request-lint.yml
!/pom.xml
.classpath
.project
.settings
target
dist/java
!/generated/README.md
",
".projen/deps.json": Object {
"//": "~~ Generated by projen. To modify, edit src/test/java/projenrc.java 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 {
"configuration": Object {
"createDependencyReducedPom": false,
"finalName": "myapi-1.0.0",
},
"executions": Array [
Object {
"goals": Array [
"shade",
],
"id": "shade-task",
"phase": "package",
},
],
},
"name": "org.apache.maven.plugins/maven-shade-plugin",
"type": "build",
"version": "3.3.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": "org.codehaus.mojo/exec-maven-plugin",
"type": "build",
"version": "3.0.0",
},
Object {
"name": "com.fasterxml.jackson.core/jackson-databind",
"type": "runtime",
"version": "^2",
},
Object {
"name": "com.generated.api/myapi-java",
"type": "runtime",
"version": "0.0.0",
},
Object {
"name": "io.github.cdklabs/cdknag",
"type": "runtime",
"version": "^2",
},
Object {
"name": "io.github.cdklabs/projen",
"type": "runtime",
"version": "^0",
},
Object {
"name": "org.projectlombok/lombok",
"type": "runtime",
"version": "^1",
},
Object {
"name": "software.amazon.awscdk/aws-cdk-lib",
"type": "runtime",
"version": "^2",
},
Object {
"name": "software.aws.awsprototypingsdk/open-api-gateway",
"type": "runtime",
"version": "^0",
},
Object {
"name": "software.constructs/constructs",
"type": "runtime",
"version": "^10",
},
Object {
"name": "org.junit.jupiter/junit-jupiter-api",
"type": "test",
"version": "5.7.0",
},
Object {
"name": "org.junit.jupiter/junit-jupiter-engine",
"type": "test",
"version": "5.7.0",
},
],
},
".projen/files.json": Object {
"//": "~~ Generated by projen. To modify, edit src/test/java/projenrc.java 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",
"pom.xml",
],
},
".projen/tasks.json": Object {
"//": "~~ Generated by projen. To modify, edit src/test/java/projenrc.java and run \\"npx projen\\".",
"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",
"steps": Array [
Object {
"exec": "mvn compiler:compile",
},
],
},
"default": Object {
"description": "Synthesize project files",
"name": "default",
"steps": Array [
Object {
"exec": "mvn compiler:testCompile --quiet",
},
Object {
"exec": "mvn exec:java --quiet -Dexec.mainClass=projenrc -Dexec.classpathScope=\\"test\\"",
},
],
},
"eject": Object {
"description": "Remove projen from the project",
"env": Object {
"PROJEN_EJECTING": "true",
},
"name": "eject",
"steps": Array [
Object {
"spawn": "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",
"steps": Array [
Object {
"exec": "mvn test",
},
],
},
},
},
"README.md": "# replace this",
"generated/.client-settings.json": Object {
"//": "~~ Generated by projen. To modify, edit src/test/java/projenrc.java and run \\"npx projen\\".",
"clientLanguages": Array [
"java",
],
"documentationFormats": Array [
"html2",
"markdown",
"plantuml",
],
},
"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/documentation/html2/.openapi-generator-ignore": "# 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
",
"generated/documentation/html2/.openapi-generator/FILES": ".openapi-generator-ignore
index.html
",
"generated/documentation/html2/.openapi-generator/VERSION": "6.3.0",
"generated/documentation/html2/index.html": "
Example API
Default
/hello
Usage and SDK Samples
curl -X GET \\\\
-H \\"Accept: application/json\\" \\\\
\\"http://localhost/hello?name=name_example\\"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String name = name_example; // String |
try {
SayHelloResponseContent result = apiInstance.sayHello(name);
System.out.println(result);
} catch (ApiException e) {
System.err.println(\\"Exception when calling DefaultApi#sayHello\\");
e.printStackTrace();
}
}
}
import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String name = name_example; // String |
try {
SayHelloResponseContent result = apiInstance.sayHello(name);
System.out.println(result);
} catch (ApiException e) {
System.err.println(\\"Exception when calling DefaultApi#sayHello\\");
e.printStackTrace();
}
}
}
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *name = name_example; // (default to null)
[apiInstance sayHelloWith:name
completionHandler: ^(SayHelloResponseContent output, NSError* error) {
if (output) {
NSLog(@\\"%@\\", output);
}
if (error) {
NSLog(@\\"Error: %@\\", error);
}
}];
var ExampleApi = require('example_api');
// Create an instance of the API class
var api = new ExampleApi.DefaultApi()
var name = name_example; // {String}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.sayHello(name, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class sayHelloExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new DefaultApi();
var name = name_example; // String | (default to null)
try {
SayHelloResponseContent result = apiInstance.sayHello(name);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print(\\"Exception when calling DefaultApi.sayHello: \\" + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\\\\Client\\\\Api\\\\DefaultApi();
$name = name_example; // String |
try {
$result = $api_instance->sayHello($name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->sayHello: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $name = name_example; # String |
eval {
my $result = $api_instance->sayHello(name => $name);
print Dumper($result);
};
if ($@) {
warn \\"Exception when calling DefaultApi->sayHello: $@\\\\n\\";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
name = name_example # String | (default to null)
try:
api_response = api_instance.say_hello(name)
pprint(api_response)
except ApiException as e:
print(\\"Exception when calling DefaultApi->sayHello: %s\\\\n\\" % e)
extern crate DefaultApi;
pub fn main() {
let name = name_example; // String
let mut context = DefaultApi::Context::default();
let result = client.sayHello(name, &context).wait();
println!(\\"{:?}\\", result);
}
Scopes
Parameters
Query parameters
Responses
",
"generated/documentation/markdown/.openapi-generator-ignore": "# 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
",
"generated/documentation/markdown/.openapi-generator/FILES": ".openapi-generator-ignore
Apis/DefaultApi.md
Models/ApiErrorResponseContent.md
Models/SayHelloResponseContent.md
README.md
",
"generated/documentation/markdown/.openapi-generator/VERSION": "6.3.0",
"generated/documentation/markdown/Apis/DefaultApi.md": "# DefaultApi
All URIs are relative to *http://localhost*
| Method | HTTP request | Description |
|------------- | ------------- | -------------|
| [**sayHello**](DefaultApi.md#sayHello) | **GET** /hello | |
# **sayHello**
> SayHelloResponseContent sayHello(name)
### Parameters
|Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **name** | **String**| | [default to null] |
### Return type
[**SayHelloResponseContent**](../Models/SayHelloResponseContent.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
",
"generated/documentation/markdown/Models/ApiErrorResponseContent.md": "# ApiErrorResponseContent
## Properties
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
| **errorMessage** | **String** | | [default to null] |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
",
"generated/documentation/markdown/Models/SayHelloResponseContent.md": "# SayHelloResponseContent
## Properties
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
| **message** | **String** | | [default to null] |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
",
"generated/documentation/markdown/README.md": "# Documentation for Example API
## Documentation for API Endpoints
All URIs are relative to *http://localhost*
| Class | Method | HTTP request | Description |
|------------ | ------------- | ------------- | -------------|
| *DefaultApi* | [**sayHello**](Apis/DefaultApi.md#sayhello) | **GET** /hello | |
## Documentation for Models
- [ApiErrorResponseContent](./Models/ApiErrorResponseContent.md)
- [SayHelloResponseContent](./Models/SayHelloResponseContent.md)
## Documentation for Authorization
All endpoints do not require authorization.
",
"generated/documentation/plantuml/.openapi-generator-ignore": "# 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
",
"generated/documentation/plantuml/.openapi-generator/FILES": ".openapi-generator-ignore
schemas.plantuml
",
"generated/documentation/plantuml/.openapi-generator/VERSION": "6.3.0",
"generated/documentation/plantuml/schemas.plantuml": "@startuml
title Example API Schemas Diagram
entity ApiErrorResponseContent {
* errorMessage: String
}
entity SayHelloResponseContent {
* message: String
}
@enduml",
"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": "# myapi-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
myapi-java
0.0.0
compile
\`\`\`
### Gradle users
Add this dependency to your project's build file:
\`\`\`groovy
repositories {
mavenCentral() // Needed if the 'myapi-java' jar has been published to maven central.
mavenLocal() // Needed if the 'myapi-java' jar has been published to the local maven repo.
}
dependencies {
implementation \\"com.generated.api:myapi-java:0.0.0\\"
}
\`\`\`
### Others
At first generate the JAR by executing:
\`\`\`shell
mvn clean package
\`\`\`
Then manually install the following JARs:
* \`target/myapi-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 = 'myapi-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 := \\"myapi-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)