@TypeScriptEndpoint @RestController @RequestMapping(value="/api") public class TestTypeScriptEndpoint extends Object
| Constructor and Description |
|---|
TestTypeScriptEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
RootType |
getPerson(Long id) |
List<RootType> |
getPersons() |
org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> |
getPhoto(Long id) |
Map<String,RootType> |
maps() |
RootType |
updatePerson(Long id,
RootType rootType) |
@RequestMapping(value="/persons",
method=GET,
produces="application/json")
@ResponseBody
public List<RootType> getPersons()
@RequestMapping(value="/person/{id}",
method=GET,
produces="application/json")
@ResponseBody
public RootType getPerson(@PathVariable
Long id)
@RequestMapping(value="/person/{id}",
method=POST,
consumes="application/json",
produces="application/json")
@ResponseBody
public RootType updatePerson(@PathVariable
Long id,
@RequestBody
RootType rootType)
@RequestMapping(value="/maps",
method=GET,
consumes="application/json",
produces="application/json")
@ResponseBody
public Map<String,RootType> maps()
@TypeScriptIgnore @RequestMapping(value="/photos/{id}", method=GET, produces="image/png") @ResponseBody public org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> getPhoto(@PathVariable Long id)
Copyright © 2016. All rights reserved.