Change hard-coded actions path 59/106859/1
authorŠimon Ukuš <simon.ukus@pantheon.tech>
Wed, 7 Jun 2023 10:29:47 +0000 (12:29 +0200)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Tue, 11 Jul 2023 10:36:11 +0000 (10:36 +0000)
commit8d67fe90a91d27c1b3b2fe10966be725c69eb167
tree78ca92b1c209a74b7c0f52c4df8e30327158dcda
parent9036e9ce97fa027db47a69294178727f460b1eae
Change hard-coded actions path

There was an assumption about the basePath ('rests') when creating
path for POST method for actions. The path was incorrect if instead of
the default basePath a custom one was used.

This patch fixes the path creation while not making any assumptions
about the basePath. The path is resolved when needed.

JIRA: NETCONF-1021
Change-Id: I4b4a7f8f69626874d9c9821205d7c726dfe90919
Signed-off-by: Šimon Ukuš <simon.ukus@pantheon.tech>
(cherry picked from commit 206fb9f0c4b589222fc4a9fc3a47c9e203110d70)
restconf/restconf-openapi/src/main/java/org/opendaylight/restconf/openapi/impl/BaseYangOpenApiGenerator.java