Rename restconf-nb-rfc8040 to restconf-nb
[netconf.git] / restconf / restconf-nb / src / main / java / org / opendaylight / restconf / nb / rfc8040 / rests / services / api / RestconfService.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.nb.rfc8040.rests.services.api;
9
10 import javax.ws.rs.GET;
11 import javax.ws.rs.Path;
12 import javax.ws.rs.Produces;
13 import javax.ws.rs.core.MediaType;
14 import org.opendaylight.restconf.nb.rfc8040.MediaTypes;
15 import org.opendaylight.restconf.nb.rfc8040.legacy.NormalizedNodePayload;
16
17 /**
18  * Service for getting yang library version.
19  */
20 public interface RestconfService {
21     /**
22      * Get yang library version.
23      *
24      * @return {@link NormalizedNodePayload}
25      */
26     @GET
27     @Path("/yang-library-version")
28     @Produces({
29         MediaTypes.APPLICATION_YANG_DATA_JSON,
30         MediaTypes.APPLICATION_YANG_DATA_XML,
31         MediaType.APPLICATION_JSON,
32         MediaType.APPLICATION_XML,
33         MediaType.TEXT_XML
34     })
35     NormalizedNodePayload getLibraryVersion();
36 }