* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.neutron.northbound.api;
import java.net.HttpURLConnection;
/**
* Neutron Northbound REST APIs for Subnets.<br>
- * This class provides REST APIs for managing neutron Subnets
- *
- * <br>
- * <br>
- * Authentication scheme : <b>HTTP Basic</b><br>
- * Authentication realm : <b>opendaylight</b><br>
- * Transport : <b>HTTP and HTTPS</b><br>
- * <br>
- * HTTPS Authentication is disabled by default. Administrator can enable it in
- * tomcat-server.xml after adding a proper keystore / SSL certificate from a
- * trusted authority.<br>
- * More info :
- * http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration
- *
*/
-
@Path("/subnets")
public final class NeutronSubnetsNorthbound
extends AbstractNeutronNorthbound<NeutronSubnet, NeutronSubnetRequest, INeutronSubnetCRUD> {
+
private static final String RESOURCE_NAME = "Subnet";
@Override
/**
* Returns a specific Subnet.
*/
-
@Path("{subnetUUID}")
@GET
@Produces({ MediaType.APPLICATION_JSON })
/**
* Creates new Subnets.
*/
-
@POST
@Produces({ MediaType.APPLICATION_JSON })
@Consumes({ MediaType.APPLICATION_JSON })
* complete updated object. So, that needs to be sent down to
* folks to check
*/
-
delta.setID(uuid);
delta.setNetworkUUID(original.getNetworkUUID());
delta.setTenantID(original.getTenantID());
/**
* Updates a Subnet.
*/
-
@Path("{subnetUUID}")
@PUT
@Produces({ MediaType.APPLICATION_JSON })
/**
* Deletes a Subnet.
*/
-
@Path("{subnetUUID}")
@DELETE
@StatusCodes({ @ResponseCode(code = HttpURLConnection.HTTP_NO_CONTENT, condition = "No Content"),