unicon.matthews.xapi.endpoint.AboutController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 10
rs 10
eloc 7
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A about() 0 4 1
1
/**
2
 * Copyright 2014 Unicon (R) Licensed under the
3
 * Educational Community License, Version 2.0 (the "License"); you may
4
 * not use this file except in compliance with the License. You may
5
 * obtain a copy of the License at
6
 *
7
 * http://www.osedu.org/licenses/ECL-2.0
8
9
 * Unless required by applicable law or agreed to in writing,
10
 * software distributed under the License is distributed on an "AS IS"
11
 * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12
 * or implied. See the License for the specific language governing
13
 * permissions and limitations under the License.
14
 *
15
 */
16
package unicon.matthews.xapi.endpoint;
17
18
import org.springframework.beans.factory.annotation.Value;
19
import org.springframework.web.bind.annotation.RequestMapping;
20
import org.springframework.web.bind.annotation.RequestMethod;
21
import org.springframework.web.bind.annotation.RestController;
22
23
import unicon.matthews.xapi.About;
24
25
/**
26
 * @author ggilbert (ggilbert @ unicon.net)
27
 *
28
 */
29
@RestController
30
public class AboutController {
31
32
	@Value("${xapi.version:1.0.1}")
33
	private String version;
34
	
35
	@RequestMapping(value="/xAPI/about", method=RequestMethod.GET, produces = "application/json;charset=utf-8")
36
	public About about() {
37
		About about = new About(version);
38
		return about;
39
	}
40
}
41