Interface SRARouteService

    • Method Detail

      • list

        @GET
        @Produces({"application/json","application/yaml","application/xml"})
        List<SRARouteTO> list()
        Returns a list of all existing routes.
        Returns:
        paged list of existing routes matching the given query
      • create

        @POST
        @Consumes({"application/json","application/yaml","application/xml"})
        @Produces({"application/json","application/yaml","application/xml"})
        javax.ws.rs.core.Response create​(@NotNull
                                         @NotNull SRARouteTO routeTO)
        Creates a new route.
        Parameters:
        routeTO - route to be created
        Returns:
        Response object featuring Location header of created route
      • read

        @GET
        @Path("{key}")
        @Produces({"application/json","application/yaml","application/xml"})
        SRARouteTO read​(@NotNull @PathParam("key")
                        @NotNull String key)
        Returns route with matching key.
        Parameters:
        key - key of route to be read
        Returns:
        route with matching key
      • update

        @PUT
        @Path("{key}")
        @Consumes({"application/json","application/yaml","application/xml"})
        @Produces({"application/json","application/yaml","application/xml"})
        void update​(@NotNull
                    @NotNull SRARouteTO routeTO)
        Updates route with matching key.
        Parameters:
        routeTO - route to be stored
      • delete

        @DELETE
        @Path("{key}")
        @Produces({"application/json","application/yaml","application/xml"})
        void delete​(@NotNull @PathParam("key")
                    @NotNull String key)
        Deletes route with matching key.
        Parameters:
        key - route key
      • pushToSRA

        @POST
        @Path("push")
        @Produces({"application/json","application/yaml","application/xml"})
        void pushToSRA()
        Push all routes to SRA.