Allow to POST and MO directly in the hierarchy #41
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
allowing to POST the whole subtree starting from topRoot. Taking
advantage of this capability. This is beneficial in cases like this
one, let assume we have a hierarchy like:
the tagAnnotation can be posted by posting the whole hierarchy under
"api/mo.xml" or by posting only the necessary MO:
under "api/mo/uni/tn-foo/ap-base/epg-lab/cep-58:F3:9C:89:3A:98/ip-[10.23.143.103].xml"
This helps to avoid to construct a nested tree of configuration. The
reason why this was not working was because the POST method for an MO
was calculating the URL of the MO itself instead of the parent for
doing the POST.