Remove OpenAPI docs again

This commit is contained in:
TheOtherP 2022-05-02 17:49:18 +02:00
parent a5ee37772a
commit 358cb6e67f
5 changed files with 4759 additions and 3493 deletions

View File

@ -343,11 +343,6 @@
<version>${spring.boot.version}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<version>1.6.6</version>
</dependency>
<!--logging-->
<dependency>

View File

@ -98,7 +98,7 @@ public class IndexerWebAccess {
if (e.getCause() instanceof HydraUnmarshallingFailureException) {
throw new IndexerAccessException("Unable to parse indexer output", e.getCause());
}
logger.error("Error communicating with indexer", e.getCause());
throw new IndexerUnreachableException("Error while communicating with indexer " + indexerConfig.getName() + ". Server returned: " + e.getMessage(), e.getCause());
} catch (TimeoutException e) {
throw new IndexerUnreachableException("Indexer did not complete request within " + timeout + " seconds");

View File

@ -73,11 +73,6 @@ public class WebConfiguration extends WebMvcConfigurationSupport {
.setCacheControl(CacheControl.noCache())
.resourceChain(false);
//Otherwise swagger is not loaded using /swagger-ui/index.html
registry.addResourceHandler("/swagger-ui/**")
.addResourceLocations("classpath:/META-INF/resources/webjars/swagger-ui/4.5.0/");
registry.setOrder(0);
}

View File

@ -55,24 +55,24 @@ public class WebAccess {
public String postToUrl(String url, MediaType mediaContent, String content, Map<String, String> headers, int timeout) throws IOException {
Builder builder = new Builder()
.url(url)
.post(RequestBody.create(mediaContent, content));
.url(url)
.post(RequestBody.create(mediaContent, content));
return callUrl(url, headers, timeout, builder);
}
public String putToUrl(String url, MediaType mediaContent, String content, Map<String, String> headers, int timeout) throws IOException {
Builder builder = new Builder()
.url(url)
.put(RequestBody.create(mediaContent, content));
.url(url)
.put(RequestBody.create(mediaContent, content));
return callUrl(url, headers, timeout, builder);
}
public String deleteToUrl(String url, Map<String, String> headers, int timeout) throws IOException {
Builder builder = new Builder()
.url(url)
.delete();
.url(url)
.delete();
return callUrl(url, headers, timeout, builder);
}
@ -90,6 +90,7 @@ public class WebAccess {
try {
bodyAsString = body == null ? null : body.string();
} catch (IOException e) {
logger.error("IO Exception loading body from URL " + url, e);
bodyAsString = null;
}
if (!response.isSuccessful()) {

File diff suppressed because it is too large Load Diff