[CONTROLLER-29] API returns both list and object type for the flowprogrammer api when hitting the node endpoint Created: 31/Aug/13  Updated: 25/Jul/23  Resolved: 19/May/16

Status: Resolved
Project: controller
Component/s: adsal
Affects Version/s: None
Fix Version/s: None

Type: Improvement
Reporter: Endre T. Karlson Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC



 Description   

https://jenkins.opendaylight.org/controller/job/controller-merge/ws/opendaylight/northbound/flowprogrammer/target/site/wsdocs/resource_FlowProgrammerNorthbound.html

See the link for examples, the same is happening in a development env.



 Comments   
Comment by Prasanth Pallamreddy [ 03/Sep/13 ]

Can you explain the issue.

The API returns a list of flowConfig objects. The list wraps over the flowConfig objects. Its unclear what the issue is.

<list>
<!-- flowConfig 1 -->
<flowConfig>
</flowConfig>

<!-- flowConfig 2 -->
<flowConfig>
</flowConfig>
</list>

Comment by Madhu Venugopal [ 03/Sep/13 ]

(In reply to comment #1)
> Can you explain the issue.
>
> The API returns a list of flowConfig objects. The list wraps over the
> flowConfig objects. Its unclear what the issue is.
>
> <list>
> <!-- flowConfig 1 -->
> <flowConfig>
> </flowConfig>
>
> <!-- flowConfig 2 -->
> <flowConfig>
> </flowConfig>
> </list>

Prasanth,

set the Accept http header to "application/json" and with just a single flowConfig, the NB API is not returning a list. Rather it returns a FlowConfig object. am looking at this problem & seems like a Jersey issue. Will add more
details once I get to find more.

Thanks,
Madhu

Comment by Carol Sanders [ 04/May/15 ]

This bug is part of the project to Move all ADSAL associated component bugs to ADSAL

Comment by Robert Varga [ 19/May/16 ]

AD-SAL has been removed, this issue will not be fixed.

Generated at Wed Feb 07 19:52:00 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.