Class GraphRestService


  • @Component("graphRestService")
    @Path("graphs")
    public class GraphRestService
    extends OnmsRestService
    Read-only API for retrieving graph definitions and determining the list of supported graphs on a particular resource.
    Author:
    jwhite
    • Constructor Detail

      • GraphRestService

        public GraphRestService()
    • Method Detail

      • getGraphNames

        @GET
        @Produces({"application/xml","application/json","application/atom+xml"})
        @Transactional(readOnly=true)
        public GraphNameCollection getGraphNames()
      • getGraphByName

        @GET
        @Path("{graphName}")
        @Produces({"application/xml","application/json","application/atom+xml"})
        @Transactional(readOnly=true)
        public PrefabGraph getGraphByName​(@PathParam("graphName")
                                          String graphName)
      • getGraphNamesForResource

        @GET
        @Path("for/{resourceId}")
        @Produces({"application/xml","application/json","application/atom+xml"})
        @Transactional(readOnly=true)
        public GraphNameCollection getGraphNamesForResource​(@PathParam("resourceId")
                                                            String resourceId)
      • getGraphResourcesForNode

        @GET
        @Path("fornode/{nodeCriteria}")
        @Produces({"application/xml","application/json","application/atom+xml"})
        @Transactional(readOnly=true)
        public GraphRestService.GraphResourceDTO getGraphResourcesForNode​(@PathParam("nodeCriteria")
                                                                          String nodeCriteria,
                                                                          @DefaultValue("-1") @QueryParam("depth")
                                                                          int depth)