delfin is the SODA Infrastructure Manager project which provides unified, intelligent and scalable resource management, alert and performance monitoring
Issue/Feature Description:
Found an inconsistentency in the swagger description with implementation (openapi-spec/swagger.yaml)
Why this issue to fixed / feature is needed(give scenarios or use cases):
It must be correct for better user experience as no API document exists other than this swagger description.
How to reproduce, in case of a bug:
Storage not found errors for the name "access-infos" and "snmp-configs" were returned for the following two APIs.
curl -s -X GET http://192.168.231.101:31000/v1/storages/access-infos
{
"error_code": "StorageNotFound",
"error_msg": "Storage access-infos could not be found.",
"error_args": [
"access-infos"
]
}
curl -s -X GET http://192.168.231.101:31000/v1/storages/snmp-configs
{
"error_code": "StorageNotFound",
"error_msg": "Storage snmp-configs could not be found.",
"error_args": [
"snmp-configs"
]
}
Following two APIs work as expected, but not in the swagger.yaml.
Issue/Feature Description: Found an inconsistentency in the swagger description with implementation (openapi-spec/swagger.yaml)
Why this issue to fixed / feature is needed(give scenarios or use cases): It must be correct for better user experience as no API document exists other than this swagger description.
How to reproduce, in case of a bug: Storage not found errors for the name "access-infos" and "snmp-configs" were returned for the following two APIs.
Following two APIs work as expected, but not in the swagger.yaml.
Other Notes / Environment Information: (Please give the env information, log link or any useful information for this issue)