Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
janhlavin opened this issue Feb 9, 2024 · 0 comments · Fixed by #15214
Closed

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

janhlavin opened this issue Feb 9, 2024 · 0 comments · Fixed by #15214
Assignees
Labels
severity: low Does not significantly disrupt application functionality, or a workaround is available status: accepted This issue has been accepted for implementation topic: OpenAPI type: bug A confirmed report of unexpected behavior in the application

Comments

@janhlavin
Copy link

janhlavin commented Feb 9, 2024

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

@janhlavin janhlavin added the type: bug A confirmed report of unexpected behavior in the application label Feb 9, 2024
@jeremystretch jeremystretch added topic: OpenAPI status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation severity: low Does not significantly disrupt application functionality, or a workaround is available labels Feb 12, 2024
@abhi1693 abhi1693 self-assigned this Feb 21, 2024
@abhi1693 abhi1693 added status: accepted This issue has been accepted for implementation and removed status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation labels Feb 21, 2024
jeremystretch pushed a commit that referenced this issue Feb 21, 2024
* fixes the rackelevation api schema #15101

* fixes the rackelevation api schema #15101
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
severity: low Does not significantly disrupt application functionality, or a workaround is available status: accepted This issue has been accepted for implementation topic: OpenAPI type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants