Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

2.0 #124

Open
wants to merge 131 commits into
base: master
Choose a base branch
from
Open

2.0 #124

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
131 commits
Select commit Hold shift + click to select a range
1ffd982
updated pull script, index, no cache
fehguy Mar 30, 2017
eb4ded7
updated to 3.x versions
fehguy Jun 19, 2017
72a37b4
refactored to use new annotations
fehguy Jun 19, 2017
4dfbb30
disabled filter
fehguy Jun 19, 2017
769c067
renamed
fehguy Jun 19, 2017
a5d272d
updated deps
fehguy Jun 19, 2017
0373073
hack in scanning
fehguy Jun 19, 2017
8639fc1
disable filter
fehguy Jun 19, 2017
35137c9
update annotations
fehguy Jun 19, 2017
7ce11b0
added provider
fehguy Jun 19, 2017
9ed0da9
enabled pet resource
fehguy Jun 19, 2017
e1b7f34
added metadata class for `info`
fehguy Jun 19, 2017
8eea146
enabled yaml
fehguy Jun 28, 2017
8b19f0e
Update PetResource.java
fehguy Jun 30, 2017
95addce
added missing import
webron Jul 3, 2017
79dd2a9
refs swagger-api/swagger-core#2312 - bootstrap draft
frantuma Jul 22, 2017
52794b3
refs swagger-api/swagger-core#2312 - bootstrap enhanced draft
frantuma Jul 24, 2017
40576a3
refs swagger-api/swagger-core#2312 - bootstrap swagger-web integration
frantuma Jul 25, 2017
6db5309
refs swagger-api/swagger-core#2312 - fix api url in bootstrap sample
frantuma Jul 25, 2017
dfdeeec
refs swagger-api/swagger-core#2312 - rename builder methods
frantuma Jul 25, 2017
61096c8
refs swagger-api/swagger-core#2312 - adapt to bootstrap refactor
frantuma Jul 31, 2017
c7fa2cd
refs swagger-api/swagger-core#2312 - fix readme and tags
frantuma Aug 1, 2017
afb634a
rename jaxrs OpenApiResource
frantuma Aug 1, 2017
ebb060b
naming cleanup
frantuma Aug 2, 2017
16a0650
config naming
frantuma Aug 2, 2017
e515333
samples 2.0 cleanup
frantuma Aug 11, 2017
99df121
add resource classes example
frantuma Aug 21, 2017
7998b19
Merge pull request #96 from frantuma/add-resource-classes-example
frantuma Aug 21, 2017
3399f76
adapt swagger-core #2394 changes
frantuma Aug 24, 2017
7190751
Merge pull request #97 from frantuma/adapt-2394-changes
frantuma Aug 24, 2017
9835aec
update deps versions
frantuma Sep 26, 2017
ce45fca
updates sample resources
frantuma Sep 26, 2017
733686c
Merge pull request #100 from swagger-api/samples-3.0
frantuma Sep 26, 2017
e2028cc
updates dropwizard sample resources
frantuma Sep 29, 2017
7e51066
Merge pull request #101 from swagger-api/dropwizard-resources
frantuma Sep 29, 2017
faef9ea
updates swagger path
frantuma Sep 29, 2017
7932c14
Merge pull request #102 from swagger-api/fix-exposed-file
frantuma Sep 29, 2017
c9339db
fix info annotation
frantuma Oct 13, 2017
4c074a4
Merge pull request #103 from swagger-api/fix-info-annotation
frantuma Oct 16, 2017
ed6093e
refs swagger-api/swagger-core#2485 - rename packages and groupId
frantuma Oct 25, 2017
d81edd3
Merge pull request #105 from swagger-api/ticket-2485
frantuma Oct 31, 2017
b7862d2
resteasy and enhanced init options
frantuma Oct 26, 2017
a9d5a5b
Merge pull request #106 from swagger-api/integration-initializer
frantuma Nov 2, 2017
0f90f9f
improved/added samples
frantuma Nov 7, 2017
ed47d4a
Merge pull request #107 from swagger-api/enhanced-jersey-samples
frantuma Nov 7, 2017
5f336a8
refs swagger-api/swagger-core#2515 - add jersey sample with resource …
frantuma Nov 11, 2017
42b682e
Merge pull request #108 from swagger-api/ticket-2515
frantuma Nov 11, 2017
7efd36b
jetty inflector sample
gracekarina Nov 24, 2017
d415b98
adding readme file - changing swagger.yaml for openapi.yaml
gracekarina Nov 26, 2017
2407d1d
inflector dropwizard sample
gracekarina Nov 27, 2017
67ea86c
Merge pull request #109 from swagger-api/inflector-jetty-sample
frantuma Nov 27, 2017
ffaf42a
inflector dropwizard sample - fix pom
frantuma Nov 27, 2017
0430462
Merge pull request #110 from swagger-api/inflector-dropwizard
frantuma Nov 27, 2017
65ad90b
springboot-jersey sample
gracekarina Nov 27, 2017
0bcd09a
dropwizard guice with openapi 3.0
gracekarina Nov 28, 2017
0a49338
fix deps in inflector-dropwizard-guice and springboot-jersey
frantuma Nov 30, 2017
4fcfa18
Merge pull request #111 from swagger-api/inflector-dropwizard
frantuma Dec 1, 2017
5a3b4e9
adding formdata support to sample
gracekarina Dec 29, 2017
35b67e1
refs swagger-api/swagger-core#2607 - adds sub resource resource
frantuma Jan 12, 2018
20b40a6
Merge pull request #113 from swagger-api/feature/subresources
frantuma Jan 12, 2018
74659c4
refs swagger-api/swagger-core#2607 - cleanup
frantuma Jan 12, 2018
24dc8cc
Merge pull request #114 from swagger-api/feature/subresources
frantuma Jan 12, 2018
bee2634
Adding new module
Jan 26, 2018
64adf45
Pet Resource Sample Module, Resources added
Feb 1, 2018
e2c502c
Examples, Links, Security, Tags
Feb 1, 2018
a86b197
Callbacks
Feb 2, 2018
4b5119a
Request Body Initial Resources
Feb 2, 2018
d188b88
Responses
Feb 2, 2018
7bc7c93
guice/jersey sample
frantuma Feb 2, 2018
dbaa7e7
Merge pull request #115 from swagger-api/guice-sample
frantuma Feb 2, 2018
9d96f42
Merge branch '2.0' of https://github.com/swagger-api/swagger-samples …
Feb 4, 2018
35e13d7
Adding new esamples
Feb 4, 2018
3740678
Parameters
Feb 4, 2018
13b4673
RequestBody update
Feb 4, 2018
921a549
Merge pull request #116 from swagger-api/feature_sample_jersey2_petstore
frantuma Feb 16, 2018
d232e43
petstore sample minor fix
frantuma Feb 19, 2018
10155aa
Merge pull request #118 from swagger-api/pet-sample-minor
frantuma Feb 19, 2018
a4c35dd
add minimal samples
frantuma Mar 13, 2018
1fecc28
Merge pull request #119 from swagger-api/wiki
frantuma Mar 13, 2018
de7161e
remove redundant metadata
frantuma Mar 13, 2018
f5a7741
Merge pull request #120 from swagger-api/wiki
frantuma Mar 13, 2018
2af6a71
OpenApiServlet standalone sample
frantuma Mar 15, 2018
c80a6e4
Merge pull request #122 from swagger-api/wiki
frantuma Mar 15, 2018
dd3fb81
OpenApiServlet standalone sample rename
frantuma Mar 15, 2018
d4a7939
Merge pull request #123 from swagger-api/wiki
frantuma Mar 15, 2018
17b27f5
OpenApiServlet standalone sample with external resources lib
frantuma Mar 16, 2018
7f0fed4
Merge pull request #125 from swagger-api/resource-lib
frantuma Mar 16, 2018
82b8b63
fixing jetty version in pom inflector-jetty-webxml
gracekarina Apr 26, 2018
ff13841
Merge pull request #131 from swagger-api/fix-jetty-deps
gracekarina Apr 26, 2018
c0abd99
jdk9 support and updated UI
frantuma Apr 25, 2018
d651e77
Merge pull request #132 from swagger-api/jdk9
frantuma May 2, 2018
1bfcb2d
added swagger-petstore v3 sample
ralphdoe May 23, 2018
be78ab9
Merge pull request #135 from swagger-api/feature/oas3_petstore_sample
frantuma Jan 18, 2019
02caa62
bump to swagger-petstore v3 to 1.0.1-SNAPSHOT
frantuma Jan 18, 2019
45c205f
Merge pull request #166 from swagger-api/bump-petstore3-snapshot
frantuma Jan 18, 2019
5d26194
fix swagger-petstore spec
frantuma Jan 23, 2019
73b6f99
Merge pull request #167 from swagger-api/fix-swagger-petstore-spec
frantuma Jan 23, 2019
02479d0
prepare swagger-petstore release 1.0.1
frantuma Jan 23, 2019
6d6c0a8
Merge pull request #168 from swagger-api/prepare-petstore-release-1.0.1
frantuma Jan 23, 2019
a457621
bump swagger-petstore v3 to 1.0.2-SNAPSHOT
frantuma Jan 23, 2019
c8ccd85
Merge pull request #169 from swagger-api/bump-petstore3-snapshot
frantuma Jan 23, 2019
8abf849
Initial Updates - General Change
ralphdoe Feb 27, 2019
869e7d9
java-jersey2-webxml solution
ralphdoe Mar 20, 2019
06af7df
Appclasses, configfile, guice fixed
ralphdoe Mar 21, 2019
8b2aba5
Inflector Dropwizard 2.0.8-SNAPSHOT en swagger-core
ralphdoe Mar 22, 2019
278dacd
java-jersey2-alternatives and java-dropwizard
ralphdoe Mar 25, 2019
8ef9fd5
Java-jersey2-alternatives, java-jersey2-resourceinit, java-jersey2-we…
ralphdoe Mar 26, 2019
dcf98da
java-jersey2-petstore fixed
ralphdoe Mar 27, 2019
e1807b3
java-jersey2-resourceinit, java/java-jaxrs2-openapiservlet fixed
ralphdoe Mar 27, 2019
21c0dc6
Pull Request Fixes
ralphdoe Apr 9, 2019
8a2015d
fix typo
frantuma Apr 11, 2019
fcb1f93
Merge pull request #172 from swagger-api/feature/update-2.0
frantuma Apr 11, 2019
9e5e525
Readme Update 2.0 - Security Section and License Added
ralphdoe Jun 5, 2019
d1a1c5a
Readme Update 2.0 - License fixed
ralphdoe Jun 6, 2019
65813da
Merge pull request #178 from swagger-api/feature/readme_update_securi…
frantuma Jun 20, 2019
b5d4c2f
ref swagger-api/swagger-core#2680 - configure date in jersey jackson …
frantuma Aug 1, 2019
9a7d7cf
Merge pull request #180 from swagger-api/core-ticket-2680
frantuma Aug 1, 2019
c62a19e
fix exposed spec - remove inflector extensions
frantuma Aug 28, 2019
bb11abe
Merge pull request #181 from swagger-api/petstore3-fix-spec
frantuma Aug 28, 2019
27ab2f5
prepare swagger-petstore release 1.0.2
frantuma Aug 28, 2019
92d0252
Merge pull request #182 from swagger-api/prepare-petstore-release-1.0.2
frantuma Aug 28, 2019
2cca833
moved petstore to https://github.com/swagger-api/swagger-petstore/tre…
frantuma Sep 11, 2019
da7eff3
Merge pull request #184 from swagger-api/move-petstore-v3
frantuma Sep 11, 2019
99820b2
update jackson to 2.9.10
frantuma Sep 28, 2019
b1f59c3
Merge pull request #185 from swagger-api/update-jackson
frantuma Sep 28, 2019
710c956
add swagger-gradle-plugin-sample
frantuma Feb 13, 2020
faf1f47
jackson 2.10.3
frantuma Mar 6, 2020
ebb654c
Merge pull request #196 from swagger-api/jackson-2.10.3
frantuma Mar 6, 2020
1aee743
fix typo in README.md (#202)
saxicek Aug 11, 2020
971a2fe
partial update of swagger-core to 2.0.9 and 2.2.0
frantuma Apr 25, 2022
453fa37
Merge pull request #213 from swagger-api/core-update
frantuma Apr 25, 2022
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
  •  
  •  
  •  
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,23 @@ the java library. Each sample contains a README file with details how to run it

---
<img src="http://swagger.io/wp-content/uploads/2016/02/logo.jpg"/>

## Security contact

Please disclose any security-related issues or vulnerabilities by emailing [[email protected]](mailto:[email protected]), instead of using the public issue tracker.

## License

```
Copyright 2019 SmartBear Software

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```
1 change: 1 addition & 0 deletions java/inflector-dropwizard-guice/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dependency-reduced-pom.xml
2 changes: 1 addition & 1 deletion java/inflector-dropwizard-guice/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ java -jar ./target/inflector-dropwizard-guice-sample-1.0.0-SNAPSHOT.jar server s
You can get to the swagger file at:

```
http://localhost:8080/v2/swagger.json
http://localhost:8080/v2/openapi.json
```

Have fun!
Expand Down
129 changes: 84 additions & 45 deletions java/inflector-dropwizard-guice/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,91 @@
<version>1.0.0-SNAPSHOT</version>

<properties>
<dropwizard-version>0.8.2</dropwizard-version>
<inflector-version>1.0.2</inflector-version>
<jackson.version>2.5.1</jackson.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>

<dropwizard-version>1.3.1</dropwizard-version>
<inflector-version>2.0.0-SNAPSHOT</inflector-version>
<jackson.version>2.10.3</jackson.version>
<jersey2.version>2.23.1</jersey2.version>
<swagger-core-version>2.0.8-SNAPSHOT</swagger-core-version>
</properties>

<dependencies>

<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-core</artifactId>
<version>${dropwizard-version}</version>
</dependency>

<dependency>
<groupId>org.glassfish.jersey.core</groupId>
<artifactId>jersey-server</artifactId>
<version>${jersey2.version}</version>
</dependency>

<dependency>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>jersey-container-servlet-core</artifactId>
<version>${jersey2.version}</version>
</dependency>

<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-multipart</artifactId>
<version>${jersey2.version}</version>
</dependency>

<dependency>
<groupId>com.hubspot.dropwizard</groupId>
<artifactId>dropwizard-guice</artifactId>
<version>1.0.6.0</version>
<exclusions>
<exclusion>
<artifactId>javax.inject</artifactId>
<groupId>javax.inject</groupId>
</exclusion>
<exclusion>
<artifactId>jsr305</artifactId>
<groupId>com.google.code.findbugs</groupId>
</exclusion>
<exclusion>
<artifactId>annotations</artifactId>
<groupId>com.google.code.findbugs</groupId>
</exclusion>
<exclusion>
<artifactId>aopalliance</artifactId>
<groupId>aopalliance</groupId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>4.0</version>
<exclusions>
<exclusion>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
</exclusion>
<exclusion>
<groupId>aopalliance</groupId>
<artifactId>aopalliance</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-inflector</artifactId>
<version>${inflector-version}</version>
<exclusions>
<exclusion>
<groupId>org.glassfish.jersey.inject</groupId>
<artifactId>jersey-hk2</artifactId>
</exclusion>
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
Expand Down Expand Up @@ -79,55 +152,21 @@
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-yaml</artifactId>
<version>${jackson.version}</version>
</dependency>

<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-core</artifactId>
<version>${dropwizard-version}</version>
</dependency>

<dependency>
<groupId>com.hubspot.dropwizard</groupId>
<artifactId>dropwizard-guice</artifactId>
<version>0.8.0</version>
<exclusions>
<exclusion>
<artifactId>javax.inject</artifactId>
<groupId>javax.inject</groupId>
</exclusion>
<exclusion>
<artifactId>jsr305</artifactId>
<groupId>com.google.code.findbugs</groupId>
</exclusion>
<exclusion>
<artifactId>annotations</artifactId>
<groupId>com.google.code.findbugs</groupId>
</exclusion>
<exclusion>
<artifactId>aopalliance</artifactId>
<groupId>aopalliance</groupId>
</exclusion>
</exclusions>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
</dependency>

<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>4.0</version>
<exclusions>
<exclusion>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
</exclusion>
<exclusion>
<groupId>aopalliance</groupId>
<artifactId>aopalliance</artifactId>
</exclusion>
</exclusions>
<groupId>io.swagger</groupId>
<artifactId>swagger-core</artifactId>
<version>${swagger-core-version}</version>
</dependency>

</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@
import io.dropwizard.Application;
import io.dropwizard.setup.Bootstrap;
import io.dropwizard.setup.Environment;
import io.swagger.inflector.SwaggerInflector;
import io.swagger.inflector.config.Configuration;
import io.swagger.inflector.config.ControllerFactory;
import io.swagger.inflector.processors.JsonNodeExampleSerializer;
import io.swagger.inflector.processors.XMLExampleProvider;
import io.swagger.jaxrs.listing.SwaggerSerializers;
import io.swagger.oas.inflector.OpenAPIInflector;
import io.swagger.oas.inflector.config.Configuration;
import io.swagger.oas.inflector.config.ControllerFactory;
import io.swagger.oas.inflector.processors.JsonNodeExampleSerializer;
import io.swagger.oas.inflector.processors.XMLExampleProvider;
import io.swagger.v3.jaxrs2.SwaggerSerializers;
import io.swagger.util.Json;
import io.swagger.util.Yaml;
import io.swagger.v3.oas.models.Operation;
import org.eclipse.jetty.servlets.CrossOriginFilter;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -68,7 +69,7 @@ public void run(InflectorServerConfiguration configuration, Environment environm

Configuration config = Configuration.read(configuration.getConfig());
config.setControllerFactory(new GuiceControllerFactory(guiceBundle.getInjector()));
SwaggerInflector inflector = new SwaggerInflector(config);
OpenAPIInflector inflector = new OpenAPIInflector(config);
environment.jersey().getResourceConfig().registerResources(inflector.getResources());

// add serializers for swagger
Expand All @@ -91,7 +92,7 @@ public GuiceControllerFactory(Injector injector) {
this.injector = injector;
}

public Object instantiateController(Class cls) throws IllegalAccessException, InstantiationException {
public Object instantiateController(Class cls, Operation operation) throws IllegalAccessException, InstantiationException {
return this.injector.getInstance(cls);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

package io.swagger.samples.inflector.dropwizard.controllers;

import io.swagger.inflector.models.RequestContext;
import io.swagger.inflector.models.ResponseContext;
import io.swagger.oas.inflector.models.RequestContext;
import io.swagger.oas.inflector.models.ResponseContext;
import io.swagger.samples.inflector.dropwizard.InflectorServerConfiguration;
import io.swagger.samples.inflector.dropwizard.models.Pet;
import org.apache.commons.io.IOUtils;
Expand Down
Loading