Skip to content

Inaccurate Swagger description for ipam_prefixes_available-ips_create API call #5232

@tomasherout

Description

@tomasherout

Environment

  • Python version: 3.7.9
  • NetBox version: 2.9.6

Steps to Reproduce

  1. Look at Swagger definition of response for API call ipam_prefixes_available-ips_create:

image

=> it's described as returns array of objects AvailableIP type

  1. 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:

image

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 implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions