a20d0411887a6aa3e948d98d07d9956c69e830c8
[netconf.git] / restconf / restconf-nb-bierman02 / src / main / java / org / opendaylight / netconf / 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.netconf.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 import org.opendaylight.restconf.common.schema.SchemaExportContext;
16 import org.opendaylight.yangtools.yang.common.YangConstants;
17
18 /**
19  * Retrieval of the YANG modules which server supports.
20  *
21  * @deprecated do not use this api. It is replaced by RestconfSchemaService
22  */
23 @Deprecated
24 @Beta
25 public interface SchemaRetrievalService {
26     @GET
27     @Produces({YangConstants.RFC6020_YIN_MEDIA_TYPE, YangConstants.RFC6020_YANG_MEDIA_TYPE})
28     @Path("/modules/module/{identifier:.+}/schema")
29     SchemaExportContext getSchema(@PathParam("identifier") String mountAndModuleId);
30 }