mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
rest-api: Swagger scripts were not replacing format variable in file brief
Given resource paths did not have 'json' substituted in for the '{format}'. For some auto generated documentation/comment strings it resulted in something like the following: "... REST handler for /api-docs/sounds.{format}" This patch makes sure the resource api's path is properly substituted. ASTERISK-25472 #close Change-Id: Ie3e950a35db4043e284019d6c9061f3b03922e23
This commit is contained in:
@@ -320,7 +320,7 @@ fin: __attribute__((unused))
|
||||
return;
|
||||
}
|
||||
|
||||
/*! \brief REST handler for /api-docs/deviceStates.{format} */
|
||||
/*! \brief REST handler for /api-docs/deviceStates.json */
|
||||
static struct stasis_rest_handlers deviceStates_deviceName = {
|
||||
.path_segment = "deviceName",
|
||||
.is_wildcard = 1,
|
||||
@@ -332,7 +332,7 @@ static struct stasis_rest_handlers deviceStates_deviceName = {
|
||||
.num_children = 0,
|
||||
.children = { }
|
||||
};
|
||||
/*! \brief REST handler for /api-docs/deviceStates.{format} */
|
||||
/*! \brief REST handler for /api-docs/deviceStates.json */
|
||||
static struct stasis_rest_handlers deviceStates = {
|
||||
.path_segment = "deviceStates",
|
||||
.callbacks = {
|
||||
|
Reference in New Issue
Block a user