3b3882d3ae27f8ba0ce03975e9065ae6d8ad1dc4
[netconf.git] / restconf / sal-rest-connector / src / main / java / org / opendaylight / netconf / sal / rest / api / Draft02.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.sal.rest.api;
9
10 import org.opendaylight.restconf.Draft11;
11 import org.opendaylight.yangtools.yang.common.QName;
12
13 /**
14  * @deprecated Do not use old implementation of restconf draft. It will be
15  *             replaced by {@link Draft11}.
16  *
17  */
18 @Deprecated
19 public class Draft02 {
20     public static interface MediaTypes {
21         String API = "application/yang.api";
22         String DATASTORE = "application/yang.datastore";
23         String DATA = "application/yang.data";
24         String OPERATION = "application/yang.operation";
25         String PATCH = "application/yang.patch";
26         String PATCH_STATUS = "application/yang.patch-status";
27         String STREAM = "application/yang.stream";
28     }
29
30     public static interface RestConfModule {
31         String REVISION = "2013-10-19";
32
33         String NAME = "ietf-restconf";
34
35         String NAMESPACE = "urn:ietf:params:xml:ns:yang:ietf-restconf";
36
37         String RESTCONF_GROUPING_SCHEMA_NODE = "restconf";
38
39         String RESTCONF_CONTAINER_SCHEMA_NODE = "restconf";
40
41         String MODULES_CONTAINER_SCHEMA_NODE = "modules";
42
43         String MODULE_LIST_SCHEMA_NODE = "module";
44
45         String STREAMS_CONTAINER_SCHEMA_NODE = "streams";
46
47         String STREAM_LIST_SCHEMA_NODE = "stream";
48
49         String OPERATIONS_CONTAINER_SCHEMA_NODE = "operations";
50
51         String ERRORS_GROUPING_SCHEMA_NODE = "errors";
52
53         String ERRORS_CONTAINER_SCHEMA_NODE = "errors";
54
55         String ERROR_LIST_SCHEMA_NODE = "error";
56
57         QName IETF_RESTCONF_QNAME = QName.create(Draft02.RestConfModule.NAMESPACE, Draft02.RestConfModule.REVISION,
58                 Draft02.RestConfModule.NAME);
59
60         QName ERRORS_CONTAINER_QNAME = QName.create(IETF_RESTCONF_QNAME, ERRORS_CONTAINER_SCHEMA_NODE);
61
62         QName ERROR_LIST_QNAME = QName.create(IETF_RESTCONF_QNAME, ERROR_LIST_SCHEMA_NODE);
63
64         QName ERROR_TYPE_QNAME = QName.create(IETF_RESTCONF_QNAME, "error-type");
65
66         QName ERROR_TAG_QNAME = QName.create(IETF_RESTCONF_QNAME, "error-tag");
67
68         QName ERROR_APP_TAG_QNAME = QName.create(IETF_RESTCONF_QNAME, "error-app-tag");
69
70         QName ERROR_MESSAGE_QNAME = QName.create(IETF_RESTCONF_QNAME, "error-message");
71
72         QName ERROR_INFO_QNAME = QName.create(IETF_RESTCONF_QNAME, "error-info");
73     }
74
75     public static interface Paths {
76
77     }
78 }