Merge "Removing { } from NormalizedNodeJsonBodyWriter"
[controller.git] / opendaylight / md-sal / sal-rest-connector / src / main / java / org / opendaylight / controller / md / sal / rest / schema / SchemaRetrievalService.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.md.sal.rest.schema;
9
10 import com.google.common.annotations.Beta;
11 import javax.ws.rs.GET;
12 import javax.ws.rs.Path;
13 import javax.ws.rs.PathParam;
14 import javax.ws.rs.Produces;
15
16 @Beta
17 public interface SchemaRetrievalService {
18
19     public static final String YANG_MEDIA_TYPE = "application/yang";
20     public static final String YIN_MEDIA_TYPE = "application/yin+xml";
21
22     @GET
23     @Produces({YIN_MEDIA_TYPE,YANG_MEDIA_TYPE})
24     @Path("/modules/module/{identifier:.+}/schema")
25     SchemaExportContext getSchema(@PathParam("identifier") String mountAndModuleId);
26 }