mirror of
https://github.com/theotherp/nzbhydra2.git
synced 2026-02-06 11:17:18 +00:00
Remove OpenAPI docs again
This commit is contained in:
parent
a5ee37772a
commit
358cb6e67f
@ -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>
|
||||
|
||||
@ -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");
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
@ -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
Loading…
Reference in New Issue
Block a user