2 * Copyright IBM Corporation, 2015. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.neutron.northbound.api;
11 import java.util.ArrayList;
12 import java.util.HashMap;
13 import java.util.Iterator;
14 import java.util.List;
16 import javax.ws.rs.Consumes;
17 import javax.ws.rs.DELETE;
18 import javax.ws.rs.DefaultValue;
19 import javax.ws.rs.GET;
20 import javax.ws.rs.POST;
21 import javax.ws.rs.Path;
22 import javax.ws.rs.PathParam;
23 import javax.ws.rs.Produces;
24 import javax.ws.rs.QueryParam;
25 import javax.ws.rs.core.Context;
26 import javax.ws.rs.core.MediaType;
27 import javax.ws.rs.core.Response;
28 import javax.ws.rs.core.UriInfo;
30 import org.codehaus.enunciate.jaxrs.ResponseCode;
31 import org.codehaus.enunciate.jaxrs.StatusCodes;
32 import org.codehaus.enunciate.jaxrs.TypeHint;
35 * Neutron Northbound REST APIs for Metering Lables.<br>
36 * This class provides REST APIs for managing neutron metering labels
40 * Authentication scheme : <b>HTTP Basic</b><br>
41 * Authentication realm : <b>opendaylight</b><br>
42 * Transport : <b>HTTP and HTTPS</b><br>
44 * HTTPS Authentication is disabled by default. Administrator can enable it in
45 * tomcat-server.xml after adding a proper keystore / SSL certificate from a
46 * trusted authority.<br>
48 * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
52 @Path("/metering/metering-labels")
53 public class NeutronMeteringLabelsNorthbound {
59 * Returns a list of all metering labels */
62 @Produces({ MediaType.APPLICATION_JSON })
63 //@TypeHint(OpenStackNetworks.class)
65 @ResponseCode(code = 501, condition = "Not Implemented") })
66 public Response listMeteringLabels(
68 throw new UnimplementedException("Unimplemented");
72 * Returns a specific metering label */
76 @Produces({ MediaType.APPLICATION_JSON })
78 @ResponseCode(code = 501, condition = "Not Implemented") })
79 public Response showMeteringLabel(
80 @PathParam("labelUUID") String labelUUID
82 throw new UnimplementedException("Unimplemented");
86 * Creates new metering label */
88 @Produces({ MediaType.APPLICATION_JSON })
89 @Consumes({ MediaType.APPLICATION_JSON })
90 //@TypeHint(NeutronNetwork.class)
92 @ResponseCode(code = 501, condition = "Not Implemented") })
93 public Response createMeteringLabel(final NeutronMeteringLabelRequest input) {
94 throw new UnimplementedException("Unimplemented");
98 * Deletes a Metering Label */
103 @ResponseCode(code = 501, condition = "Not Implemented") })
104 public Response deleteMeteringLabel(
105 @PathParam("labelUUID") String labelUUID) {
106 throw new UnimplementedException("Unimplemented");