Skip to content

Commit f6654d6

Browse files
authored
Disable Qpid and redirect root url to swagger web page. (#290)
1 parent e3d2fc0 commit f6654d6

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

pom.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,26 +295,29 @@
295295
<groupId>org.apache.qpid</groupId>
296296
<artifactId>qpid-broker-core</artifactId>
297297
<version>7.1.0</version>
298+
<scope>test</scope>
298299
</dependency>
299300

300301
<!-- https://mvnrepository.com/artifact/org.apache.qpid/qpid-broker-plugins-management-http -->
301302
<dependency>
302303
<groupId>org.apache.qpid</groupId>
303304
<artifactId>qpid-broker-plugins-management-http</artifactId>
304305
<version>7.1.0</version>
305-
<scope>runtime</scope>
306+
<scope>test</scope>
306307
</dependency>
307308

308309
<dependency>
309310
<groupId>org.apache.qpid</groupId>
310311
<artifactId>qpid-broker-plugins-amqp-1-0-protocol</artifactId>
311312
<version>7.1.0</version>
313+
<scope>test</scope>
312314
</dependency>
313315

314316
<dependency>
315317
<groupId>org.apache.qpid</groupId>
316318
<artifactId>qpid-broker-plugins-memory-store</artifactId>
317319
<version>7.1.0</version>
320+
<scope>test</scope>
318321
</dependency>
319322

320323
<dependency>
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
Copyright 2019 Ericsson AB.
3+
For a full list of individual contributors, please see the commit history.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
*/
17+
package com.ericsson.ei.controller;
18+
19+
import org.springframework.stereotype.Controller;
20+
import org.springframework.web.bind.annotation.RequestMapping;
21+
import org.springframework.web.bind.annotation.RequestMethod;
22+
23+
/**
24+
*
25+
* This class redirects the EI root URL to swagger landing page
26+
*
27+
*/
28+
@Controller
29+
public class EIHomeController {
30+
31+
@RequestMapping(value = "/", method = RequestMethod.GET)
32+
public String home() {
33+
return "redirect:/swagger-ui.html";
34+
}
35+
}

0 commit comments

Comments
 (0)