Skip to content

Swagger vs REST API: type of DCIM/RackElevation request #15101

@janhlavin

Description

@janhlavin

Deployment Type

Self-hosted

NetBox Version

v3.7.2

Python Version

3.11

Steps to Reproduce

  1. create rack
  2. call API for Rack elevation (GET /api/dcim/racks/$ID/elevation)

Expected Behavior

collection of RackElevation items in Swagger schema

[
  {
    "id": 12,
    "name": "U12",
    "face": {
      "value": "front",
      "label": "Front"
    },
    "device": {
      "id": 79,
      "url": "https://demo.netbox.dev/api/dcim/devices/79/",
      "display": "Panduit 48-Port Patch Panel (79)",
      "name": null
    },
    "occupied": true,
    "display": "U12"
  }
]

Observed Behavior

type error, API return RackElevation collection for Rack ID, but in Swagger schema is return type Rack object

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtopic: OpenAPItype: 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