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