-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Description
Environment
- Python version: 3.7.9
- NetBox version: 2.9.6
Steps to Reproduce
- Look at Swagger definition of response for API call
ipam_prefixes_available-ips_create
:
=> it's described as returns array of objects AvailableIP type
- make POST request to
/api/ipam/prefixes/${subnetID}/available-ips/
and look to response. It's inconsistent with definition:
2.1.: It should be return array, in the fact it returns object.
2.2: Family attribute is described as integer, but server returns object
2.3: It returns id, url, role and lot of other
Expected Behavior
Fixed Swagger description.
Observed Behavior
API call return object on top level:
It does not correspond to swagger definition of response. Object properties also does not match.
Metadata
Metadata
Assignees
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application