public static class WebService.Context extends Object
Constructor and Description |
---|
Context() |
Modifier and Type | Method and Description |
---|---|
WebService.Controller |
controller(String key) |
List<WebService.Controller> |
controllers() |
WebService.NewController |
createController(String path)
Create a new controller.
|
public Context()
public WebService.NewController createController(String path)
http://<server>/<controller path>/<action path>?<parameters>
.path
- the controller path must not start or end with "/". It is recommended to start with "api/"
and to use lower-case format with underscores, for example "api/coding_rules". Usual actions
are "search", "list", "show", "create" and "delete".
the plural form is recommended - ex: api/projects@CheckForNull public WebService.Controller controller(String key)
public List<WebService.Controller> controllers()
Copyright © 2009–2017 SonarSource. All rights reserved.