Change hard-coded actions path 94/106394/10
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:34:53 +0000 (10:34 +0000)
commit206fb9f0c4b589222fc4a9fc3a47c9e203110d70
tree90d24e47feabb43adffc3009a6d13a846351cda6
parentd637bce5174a12c6178bf6fa977735c860d9f821
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>
restconf/restconf-openapi/src/main/java/org/opendaylight/restconf/openapi/impl/BaseYangOpenApiGenerator.java