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