[CONTROLLER-437] RESTConf API Explorer: URL for Toaster is not correct Created: 30/Apr/14 Updated: 14/Nov/17 Due: 22/Aug/14 Resolved: 20/Aug/14 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | restconf |
| Affects Version/s: | Helium |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Abhishek Kumar | Assignee: | Jozef Gloncak |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Mac OS |
||
| Issue Links: |
|
||||||||
| External issue ID: | 932 | ||||||||
| Priority: | High | ||||||||
| Description |
|
Devin Avery's comments: |
| Comments |
| Comment by Devin Avery [ 29/May/14 ] |
|
Moving to restconf component. |
| Comment by Jozef Gloncak [ 16/Jul/14 ] |
|
I am referring to chapters of http://tools.ietf.org/html/draft-bierman-netconf-restconf-02#section-1.4.2 PUT (chapter 1.4.2.2)
POST (chapter 1.4.2.3)
Additionally (chapter 5.3), second sentence: "Only YANG container and list data node Toaster (container) contains only elements of type (leaf) so therefore it isn't posible to At localhost:8080/apidoc/explorer/#!/toaster(2009-11-20) (running controller on localhost:8080) there is for Currently I am trying to:
|
| Comment by Jozef Gloncak [ 16/Jul/14 ] |
|
patch set proposed patch was commited as draft because unit tests are missing |
| Comment by Jozef Gloncak [ 21/Jul/14 ] |
|
patch set proposed (with tests) |
| Comment by Jozef Gloncak [ 31/Jul/14 ] |
|
patch set 3 (rebased) |
| Comment by Jozef Gloncak [ 14/Aug/14 ] |
|
From e-mail communication with Devin following it was identified that current proposal contains partial fix of reported problem + change of documentation design. Change of documentation design (more POST URI links - standalone for every subcontainer and sublist) should be tracked as standalone bug and shouldn't be part of this patch. what should be in corrected:
|
| Comment by Jozef Gloncak [ 19/Aug/14 ] |
|
POST URI is now generated also for "/config" All of these list or container children are concretely specified below *POST JSON object. 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) |
| Comment by Jozef Gloncak [ 20/Aug/14 ] |
|
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). It was also distinguished between module "toaster" (toaster_module) and container "toaster" because container toaster overwritten JSON module data for swagger. Question for the future: |