Package io.jenkins.blueocean.rest
Class ApiHead
java.lang.Object
io.jenkins.blueocean.rest.ApiHead
- All Implemented Interfaces:
ExtensionPoint
,Reachable
,RootRoutable
,Routable
Entrypoint for blueocean REST apis. $CONTEXT_PATH/rest being root. e.g. /jenkins/rest
- Author:
- Vivek Pandey
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDynamic
(String route) Exposes allApiRoutable
s to URL space.getLink()
ThisApiHead
gets bound to "/rest"static ApiHead
INSTANCE()
Gives instance of ApiHead by looking in to Extensions.Pageable<?>
Search API Gives collection starting from start parameter value with max numbers <= limit
-
Field Details
-
URL_NAME
- See Also:
-
-
Constructor Details
-
ApiHead
public ApiHead()
-
-
Method Details
-
search
Search API Gives collection starting from start parameter value with max numbers <= limit- Parameters:
query
- query object parsed from value of q URL query parameter- Returns:
- Gives pageable collection always non-null
-
getUrlName
ThisApiHead
gets bound to "/rest"- Specified by:
getUrlName
in interfaceRoutable
-
getDynamic
Exposes allApiRoutable
s to URL space.- Parameters:
route
- current URL route handled by ApiHead- Returns:
ApiRoutable
object
-
getLink
-
INSTANCE
Gives instance of ApiHead by looking in to Extensions. In some cases it might be null, such as when jenkins is booting up.
-