963bc36ec7d194d7d406187b997687164c3d6133
[netconf.git] / restconf / restconf-nb-bierman02 / src / main / java / org / opendaylight / restconf / base / services / api / RestconfSchemaService.java
1 /*
2  * Copyright (c) 2016 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.restconf.base.services.api;
9
10 import javax.ws.rs.GET;
11 import javax.ws.rs.Path;
12 import javax.ws.rs.PathParam;
13 import javax.ws.rs.Produces;
14 import org.opendaylight.restconf.Rfc8040;
15 import org.opendaylight.restconf.common.schema.SchemaExportContext;
16 import org.opendaylight.restconf.utils.RestconfConstants;
17
18 /**
19  * Retrieval of the YANG modules which server
20  * supports.
21  * @deprecated move to splitted module restconf-nb-rfc8040
22  */
23 @Deprecated
24 @Path("/")
25 public interface RestconfSchemaService {
26
27     /**
28      * Get schema of specific module.
29      *
30      * @param identifier
31      *             path parameter
32      * @return {@link SchemaExportContext}
33      */
34     @GET
35     @Produces({ Rfc8040.MediaTypes.YIN + RestconfConstants.XML, Rfc8040.MediaTypes.YANG })
36     @Path("modules/{identifier:.+}")
37     SchemaExportContext getSchema(@PathParam("identifier") String identifier);
38 }