blob: c198a66fa4da96ef00c23e9680e080ba8f3ab523 [file] [log] [blame]
Andrea Campanella545edb42018-03-20 16:37:29 -07001/*
2 * Copyright 2017-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.mcast.web;
18
19import com.google.common.annotations.Beta;
20import org.onosproject.rest.AbstractWebResource;
21
22import javax.ws.rs.GET;
23import javax.ws.rs.Path;
24import javax.ws.rs.Produces;
25import javax.ws.rs.core.MediaType;
26import javax.ws.rs.core.Response;
27
28/**
29 * Manage the multicast routing information.
30 */
31@Beta
32@Path("mcast")
33public class McastRouteWebResource extends AbstractWebResource {
34
35 /**
36 * Get all multicast routes.
37 * Returns array of all known multicast routes.
38 *
39 * @return 200 OK with array of all known multicast routes
40 */
41 @GET
42 @Produces(MediaType.APPLICATION_JSON)
43 public Response getRoutes() {
44 return Response.noContent().build();
45 }
46
47}