Merge pull request 'fix(swagger): enable in production' (#29) from dev into master
Reviewed-on: #29
This commit is contained in:
commit
7269a8f3ab
@ -9,6 +9,7 @@ import jakarta.ws.rs.GET;
|
|||||||
import jakarta.ws.rs.Path;
|
import jakarta.ws.rs.Path;
|
||||||
import jakarta.ws.rs.Produces;
|
import jakarta.ws.rs.Produces;
|
||||||
import org.eclipse.microprofile.jwt.JsonWebToken;
|
import org.eclipse.microprofile.jwt.JsonWebToken;
|
||||||
|
import org.eclipse.microprofile.openapi.annotations.Operation;
|
||||||
import org.jboss.resteasy.reactive.NoCache;
|
import org.jboss.resteasy.reactive.NoCache;
|
||||||
|
|
||||||
@Path("/hello")
|
@Path("/hello")
|
||||||
@ -58,6 +59,7 @@ public class ExampleResource {
|
|||||||
@GET
|
@GET
|
||||||
@Produces("text/html")
|
@Produces("text/html")
|
||||||
@NoCache
|
@NoCache
|
||||||
|
@Operation(hidden = true)
|
||||||
public String getTokens() {
|
public String getTokens() {
|
||||||
StringBuilder response = new StringBuilder().append("<html>")
|
StringBuilder response = new StringBuilder().append("<html>")
|
||||||
.append("<body>")
|
.append("<body>")
|
||||||
|
|||||||
@ -6,6 +6,7 @@ import jakarta.ws.rs.GET;
|
|||||||
import jakarta.ws.rs.Path;
|
import jakarta.ws.rs.Path;
|
||||||
import jakarta.ws.rs.Produces;
|
import jakarta.ws.rs.Produces;
|
||||||
import jakarta.ws.rs.core.MediaType;
|
import jakarta.ws.rs.core.MediaType;
|
||||||
|
import org.eclipse.microprofile.openapi.annotations.Operation;
|
||||||
|
|
||||||
import static java.util.Objects.requireNonNull;
|
import static java.util.Objects.requireNonNull;
|
||||||
|
|
||||||
@ -20,6 +21,7 @@ public class SomePage {
|
|||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Produces(MediaType.TEXT_HTML)
|
@Produces(MediaType.TEXT_HTML)
|
||||||
|
@Operation(hidden = true)
|
||||||
public Uni<String> get() {
|
public Uni<String> get() {
|
||||||
return Uni.createFrom()
|
return Uni.createFrom()
|
||||||
.completionStage(() -> page
|
.completionStage(() -> page
|
||||||
|
|||||||
@ -34,7 +34,7 @@ public class FrontendForwardingFilterREST implements ExceptionMapper<NotFoundExc
|
|||||||
|
|
||||||
private static String text = null;
|
private static String text = null;
|
||||||
|
|
||||||
private static final String API_NAMESPACE_REGEX = "^/(api/.*|api)";
|
private static final String API_NAMESPACE_REGEX = "^/(api/.*|api|openapi|q/.*)";
|
||||||
private static final String FILENAME_REGEX = "^/.*\\.[^.]+$";
|
private static final String FILENAME_REGEX = "^/.*\\.[^.]+$";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -28,6 +28,9 @@ quarkus.oidc.roles.source=accesstoken
|
|||||||
|
|
||||||
quarkus.http.limits.max-body-size=10M
|
quarkus.http.limits.max-body-size=10M
|
||||||
|
|
||||||
|
quarkus.swagger-ui.always-include=true
|
||||||
|
quarkus.swagger-ui.title=FFSAF API
|
||||||
|
|
||||||
email.enabled=false
|
email.enabled=false
|
||||||
|
|
||||||
database.prefix = test2_
|
database.prefix = test2_
|
||||||
|
|||||||
@ -389,7 +389,7 @@ function MemberSimilar({member, current, setCurrent, mode, index, setEmail}) {
|
|||||||
className={"list-group-item list-group-item-action" + (current === index ? " active" : "")}
|
className={"list-group-item list-group-item-action" + (current === index ? " active" : "")}
|
||||||
onClick={() => setCurrent(index)} disabled={mode !== 1}>
|
onClick={() => setCurrent(index)} disabled={mode !== 1}>
|
||||||
{m.lname} {m.fname}<br/>
|
{m.lname} {m.fname}<br/>
|
||||||
<small>{m.club.name}</small>
|
<small>{m.club ? m.club.name : "Sans club"}</small>
|
||||||
</button>
|
</button>
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user