Skip to content

Commit

Permalink
Merge pull request #6213 from ant-media/enable-openapi
Browse files Browse the repository at this point in the history
Enable OpenAPI for REST
  • Loading branch information
mekya authored Mar 24, 2024
2 parents 97591c1 + 401587f commit 519cb7a
Show file tree
Hide file tree
Showing 30 changed files with 1,983 additions and 1,616 deletions.
65 changes: 17 additions & 48 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -214,38 +214,7 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.kongchen</groupId>
<artifactId>swagger-maven-plugin</artifactId>
<version>3.1.8</version>
<configuration>
<apiSources>
<apiSource>
<springmvc>false</springmvc>
<locations>
<location>io.antmedia.rest</location>
<location>io.antmedia.console.rest</location>
</locations>
<swaggerDirectory>target/swagger</swaggerDirectory>
<swaggerFileName>swagger</swaggerFileName>
<outputFormats>json</outputFormats>
<info>
<title>Ant Media Server REST API Reference</title>
<version>${project.parent.version}</version>
</info>
<host>test.antmedia.io:5443/Sandbox/rest/</host>
</apiSource>
</apiSources>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
Expand Down Expand Up @@ -382,16 +351,10 @@
<version>${morphia.version}</version>
</dependency>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-jersey2-jaxrs</artifactId>
<version>${swagger-jersey2-jaxrs.version}</version>
<exclusions>
<exclusion>
<artifactId>jersey-container-servlet-core</artifactId>
<groupId>org.glassfish.jersey.containers</groupId>
</exclusion>
</exclusions>
</dependency>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-jaxrs2-jakarta</artifactId>
<version>${swagger-jaxrs2-jakarta.version}</version>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-dropwizard-metrics</artifactId>
Expand All @@ -417,12 +380,18 @@
<artifactId>commons-io</artifactId>
<version>${commons-io}</version>
</dependency>
<!-- we just override the version of ehcache because of the vulnerability. It's dependency of red5-io -->
<dependency>
<groupId>net.sf.ehcache</groupId>
<version>2.10.9.2</version>
<artifactId>ehcache</artifactId>
</dependency>
<!-- we just override the version of ehcache because of the vulnerability. It's dependency of red5-io -->
<dependency>
<groupId>net.sf.ehcache</groupId>
<version>2.10.9.2</version>
<artifactId>ehcache</artifactId>
</dependency>
<!-- we just override the version of tika because of the vulnerability. It's dependency of red5-io -->
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-core</artifactId>
<version>2.9.1</version>
</dependency>
<dependency>
<groupId>org.red5</groupId>
<artifactId>red5-io</artifactId>
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/io/antmedia/AntMediaApplicationAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentLinkedQueue;

import javax.validation.constraints.NotNull;

import org.apache.commons.io.FileUtils;
import org.apache.commons.io.FilenameUtils;
import org.apache.commons.lang3.RandomStringUtils;
Expand Down Expand Up @@ -82,6 +79,7 @@
import io.vertx.core.Vertx;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.dropwizard.MetricsService;
import jakarta.validation.constraints.NotNull;
public class AntMediaApplicationAdapter extends MultiThreadedApplicationAdapter implements IAntMediaStreamHandler, IShutdownListener {

public static final String BEAN_NAME = "web.handler";
Expand Down
Loading

0 comments on commit 519cb7a

Please sign in to comment.