@RestController
@RequestMapping(value="/completions")
@Lazy
public class CompletionsController
extends java.lang.Object
| Constructor and Description |
|---|
CompletionsController(CompletionProvider completionProvider) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
completions(CompletionKind kind,
java.lang.String start,
int detailLevel)
Return a list of possible completions given a prefix string that the user has started typing.
|
@Autowired public CompletionsController(CompletionProvider completionProvider)
@RequestMapping(value="/{kind}")
public java.util.List<java.lang.String> completions(@PathVariable(value="kind")
CompletionKind kind,
@RequestParam(value="start")
java.lang.String start,
@RequestParam(value="detailLevel",defaultValue="1")
int detailLevel)
kind - the kind of definition that is being authoredstart - the amount of text written so fardetailLevel - the level of detail the user wants in completions
(e.g. higher numbers may mean show 'hidden' options)