##### Coverage Report - com.ctrip.apollo.common.controller.ApolloInfoController

Classes in this File | Line Coverage | Branch Coverage | Complexity
ApolloInfoController |
0% | 0/6
N/A | N/A
| 1.0;1

1 |  |
     package com.ctrip.apollo.common.controller;
2 |  |
3 |  |
     import org.springframework.web.bind.annotation.RequestMapping;
4 |  |
     import org.springframework.web.bind.annotation.RestController;
5 |  |
6 |  |
     import com.ctrip.apollo.Apollo;
7 |  |
     import com.ctrip.framework.foundation.Foundation;
8 |  |
9 |  |
     @RestController
10 |  |
     @RequestMapping(path = "/apollo")
11 | 0 |
     public class ApolloInfoController {
12 |  |
13 |  |
       @RequestMapping("app")
14 |  |
       public String getApp() {
15 | 0 |
         return Foundation.app().toString();
16 |  |
       }
17 |  |
18 |  |
       @RequestMapping("web")
19 |  |
       public String getEnv() {
20 | 0 |
         return Foundation.web().toString();
21 |  |
       }
22 |  |
23 |  |
       @RequestMapping("net")
24 |  |
       public String getNet() {
25 | 0 |
         return Foundation.net().toString();
26 |  |
       }
27 |  |
28 |  |
       @RequestMapping("server")
29 |  |
       public String getServer() {
30 | 0 |
         return Foundation.server().toString();
31 |  |
       }
32 |  |
33 |  |
       @RequestMapping("version")
34 |  |
       public String getVersion() {
35 | 0 |
         return Apollo.VERSION;
36 |  |
       }
37 |  |
     }