<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:53:00 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>OpenDaylight JIRA</title>
    <link>https://jira.opendaylight.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.20.10</version>
        <build-number>820010</build-number>
        <build-date>22-06-2022</build-date>
    </build-info>


<item>
            <title>[CONTROLLER-437] RESTConf API Explorer: URL for Toaster is not correct</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-437</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;Devin Avery&apos;s comments:&lt;br/&gt;
I noticed the POST to config isn&apos;t defined correctly. For example, I can&apos;t post to /config/toaster:toaster. You can only put to toaster:toaster ( at least in this example). So there is probably some more logic required here make sure we have the correct arguments that can be posted.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Mac OS&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="24991">CONTROLLER-437</key>
            <summary>RESTConf API Explorer: URL for Toaster is not correct</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <status id="5" iconUrl="https://jira.opendaylight.org/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="jgloncak">Jozef Gloncak</assignee>
                                    <reporter username="abhishk2@cisco.com">Abhishek Kumar</reporter>
                        <labels>
                    </labels>
                <created>Wed, 30 Apr 2014 20:40:36 +0000</created>
                <updated>Tue, 14 Nov 2017 15:17:58 +0000</updated>
                            <resolved>Wed, 20 Aug 2014 13:17:48 +0000</resolved>
                                    <version>Helium</version>
                                                    <component>restconf</component>
                        <due>Fri, 22 Aug 2014 00:00:00 +0000</due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="48216" author="devin.avery@brocade.com" created="Thu, 29 May 2014 14:25:49 +0000"  >&lt;p&gt;Moving to restconf component.&lt;/p&gt;</comment>
                            <comment id="48217" author="jgloncak" created="Wed, 16 Jul 2014 06:00:03 +0000"  >&lt;p&gt;I am referring to chapters of &lt;a href=&quot;http://tools.ietf.org/html/draft-bierman-netconf-restconf-02#section-1.4.2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://tools.ietf.org/html/draft-bierman-netconf-restconf-02#section-1.4.2&lt;/a&gt;&lt;br/&gt;
After investigation PUTting and POST-ing works like this:&lt;/p&gt;

&lt;p&gt;PUT (chapter 1.4.2.2)&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;URI - /restconf/config/uri1/uri2/.../uriN&lt;/li&gt;
	&lt;li&gt;data - &amp;lt;uriN&amp;gt;....&amp;lt;/uriN&amp;gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;POST (chapter 1.4.2.3)&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;URI - /restconf/config/uri1/uri2/.../uriN&lt;/li&gt;
	&lt;li&gt;data - &amp;lt;uriN+1&amp;gt;....&amp;lt;/uriN+1&amp;gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Additionally (chapter 5.3), second sentence: &quot;Only YANG container and list data node&lt;br/&gt;
   types are considered to represent data resources.&quot;&lt;/p&gt;

&lt;p&gt;Toaster (container) contains only elements of type (leaf) so therefore it isn&apos;t posible to&lt;br/&gt;
POST data on uri /restconf/config/toaster:toaster&lt;/p&gt;

&lt;p&gt;At localhost:8080/apidoc/explorer/#!/toaster(2009-11-20) (running controller on localhost:8080) there is for&lt;br/&gt;
POST /config/toaster:toaster and for PUT /config/toaster:toaster the same model:&lt;br/&gt;
(config)toaster {&lt;br/&gt;
  darknessFactor (integer, optional): The darkness factor. Basically, the number of ms to multiple the doneness value by.&lt;br/&gt;
} &lt;br/&gt;
which can be used only for PUT operation. POST operation for this URI is impossible.&lt;/p&gt;

&lt;p&gt;Currently I am trying to:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;remove POST uris for YANG elements which don&apos;t contain lists and containers (POST operation is impossible)&lt;/li&gt;
	&lt;li&gt;create several POST uris for YANG elements which contain several lists and containers.&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="48218" author="jgloncak" created="Wed, 16 Jul 2014 12:35:05 +0000"  >&lt;p&gt;patch set proposed&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/9068/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/9068/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;patch was commited as draft because unit tests are missing&lt;/p&gt;</comment>
                            <comment id="48219" author="jgloncak" created="Mon, 21 Jul 2014 08:28:42 +0000"  >&lt;p&gt;patch set proposed (with tests)&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/9068/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/9068/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="48220" author="jgloncak" created="Thu, 31 Jul 2014 07:19:26 +0000"  >&lt;p&gt;patch set 3 (rebased)&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/9068/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/9068/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="48221" author="jgloncak" created="Thu, 14 Aug 2014 09:33:42 +0000"  >&lt;p&gt;From e-mail communication with Devin following it was identified that current proposal contains partial fix of reported problem + change of documentation design.&lt;/p&gt;

&lt;p&gt;Change of documentation design (more POST URI links - standalone for every subcontainer and sublist) should be tracked as standalone bug and shouldn&apos;t be part of this patch.&lt;/p&gt;

&lt;p&gt;what should be in corrected:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;remove from POST links those models which aren&apos;t lists and containers and which doesn&apos;t exist as subchild (e.g for POST /config/toaster:toaster there is toaster which isn&apos;t child)&lt;/li&gt;
	&lt;li&gt;add generating of POST link also for top level (e.g /config which contains as subchild toaster {} container)&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="48222" author="jgloncak" created="Tue, 19 Aug 2014 08:02:16 +0000"  >&lt;p&gt;POST URI is now generated also for &quot;/config&quot;&lt;br/&gt;
POST URI after &quot;unwrapping&quot; for URI &quot;/config/el&quot; contains specific JSON with list or container children:&lt;br/&gt;
(config)elPOST {&lt;br/&gt;
  listOrContainer1,&lt;br/&gt;
  listOrContainer2,&lt;br/&gt;
  ...&lt;br/&gt;
  listOrContainerN,&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;All of these list or container children are concretely specified below *POST JSON object.&lt;/p&gt;

&lt;p&gt;In parameter section of unwrapped POST there is generated input box with ** prefix for all of list or container children. It means that only one of this boxes should be filled (specified) &lt;/p&gt;

&lt;p&gt;patch set&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/9068/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/9068/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="48223" author="jgloncak" created="Wed, 20 Aug 2014 06:58:26 +0000"  >&lt;p&gt;bug was identified when POST URI link for whole model was generated (not module but its child was evaluated whether it contains any list or container therefore in toaster for URI /config there was no POST).&lt;/p&gt;

&lt;p&gt;It was also distinguished between module &quot;toaster&quot; (toaster_module) and container &quot;toaster&quot; because container toaster overwritten JSON module data for swagger.&lt;/p&gt;

&lt;p&gt;Question for the future:&lt;br/&gt;
what happen if name of the parent element is equal to child element. currently are swagger JSON modules created only from localName which isn&apos;t sufficient. Some quick solution (but not in this bug &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.opendaylight.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;) could be use whole path of local names from root to element, which should be almost suficient (except cases when element with equal name was added via augmentation (local names are equal but namespaces are different))&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="24842">CONTROLLER-288</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_11400" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>932</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10201" key="com.atlassian.jira.plugin.system.customfieldtypes:url">
                        <customfieldname>External issue URL</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[https://bugs.opendaylight.org/show_bug.cgi?id=932]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10370"><![CDATA[Helium]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10202" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Priority</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10312"><![CDATA[High]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i02ke7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>