[PR #20394] [MERGED] Closes #20295: Make cable terminations REST API endpoint read-only #15918

Closed
opened 2025-12-30 00:24:47 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20394
Author: @jeremystretch
Created: 9/18/2025
Status: Merged
Merged: 9/19/2025
Merged by: @arthanson

Base: featureHead: 20295-api-cable-terms-read-only


📝 Commits (1)

  • ae6fb28 Closes #20295: Make cable terminations REST API endpoint read-only

📊 Changes

4 files changed (+41 additions, -394 deletions)

View changed files

📝 contrib/openapi.json (+6 -388)
📝 netbox/dcim/api/serializers_/cables.py (+6 -4)
📝 netbox/dcim/api/views.py (+2 -2)
📝 netbox/dcim/tests/test_api.py (+27 -0)

📄 Description

Closes: #20295

  • Convert CableTerminationViewSet to a NetBoxReadOnlyModelViewSet
  • Set all fields on CableTerminationSerializer to read-only
  • Add a REST API test case for cable terminations
  • Update the OpenAPI schema

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/20394 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 9/18/2025 **Status:** ✅ Merged **Merged:** 9/19/2025 **Merged by:** [@arthanson](https://github.com/arthanson) **Base:** `feature` ← **Head:** `20295-api-cable-terms-read-only` --- ### 📝 Commits (1) - [`ae6fb28`](https://github.com/netbox-community/netbox/commit/ae6fb2827c7f93fc1c4173765a704884978eec55) Closes #20295: Make cable terminations REST API endpoint read-only ### 📊 Changes **4 files changed** (+41 additions, -394 deletions) <details> <summary>View changed files</summary> 📝 `contrib/openapi.json` (+6 -388) 📝 `netbox/dcim/api/serializers_/cables.py` (+6 -4) 📝 `netbox/dcim/api/views.py` (+2 -2) 📝 `netbox/dcim/tests/test_api.py` (+27 -0) </details> ### 📄 Description ### Closes: #20295 - Convert `CableTerminationViewSet` to a `NetBoxReadOnlyModelViewSet` - Set all fields on `CableTerminationSerializer` to read-only - Add a REST API test case for cable terminations - Update the OpenAPI schema --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-30 00:24:47 +01:00
adam closed this issue 2025-12-30 00:24:47 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15918