[PR #2488] [MERGED] Closes #2487: Enable brief API output utilizing nested serializers #12386

Closed
opened 2025-12-29 22:21:13 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/2488
Author: @jeremystretch
Created: 10/4/2018
Status: Merged
Merged: 10/4/2018
Merged by: @jeremystretch

Base: developHead: 2487-api-brief


📝 Commits (3)

  • db2721c Enable brief API output utilizing nested serializers
  • bf47e7c #2487: Require the 'brief' parameter to evaluate True
  • 259da2d #2487: Added API tests

📊 Changes

12 files changed (+424 additions, -4 deletions)

View changed files

📝 netbox/circuits/tests/test_api.py (+30 -0)
📝 netbox/dcim/api/serializers.py (+20 -1)
📝 netbox/dcim/api/views.py (+5 -0)
📝 netbox/dcim/tests/test_api.py (+180 -0)
📝 netbox/ipam/tests/test_api.py (+81 -1)
📝 netbox/project-static/js/forms.js (+1 -1)
📝 netbox/secrets/tests/test_api.py (+10 -0)
📝 netbox/tenancy/tests/test_api.py (+20 -0)
📝 netbox/utilities/api.py (+13 -0)
📝 netbox/virtualization/api/serializers.py (+2 -1)
📝 netbox/virtualization/api/views.py (+12 -0)
📝 netbox/virtualization/tests/test_api.py (+50 -0)

📄 Description

Fixes: #2487

Minimize API output when ?brief is passed as a query parameter.


🔄 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/2488 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 10/4/2018 **Status:** ✅ Merged **Merged:** 10/4/2018 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `2487-api-brief` --- ### 📝 Commits (3) - [`db2721c`](https://github.com/netbox-community/netbox/commit/db2721c5815a153a361611da2ddf1e0cd733727f) Enable brief API output utilizing nested serializers - [`bf47e7c`](https://github.com/netbox-community/netbox/commit/bf47e7cae3c359f18b785bec4b28deda7dfa0c64) #2487: Require the 'brief' parameter to evaluate True - [`259da2d`](https://github.com/netbox-community/netbox/commit/259da2d18a84e9612702a237a8b0ada53a685123) #2487: Added API tests ### 📊 Changes **12 files changed** (+424 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `netbox/circuits/tests/test_api.py` (+30 -0) 📝 `netbox/dcim/api/serializers.py` (+20 -1) 📝 `netbox/dcim/api/views.py` (+5 -0) 📝 `netbox/dcim/tests/test_api.py` (+180 -0) 📝 `netbox/ipam/tests/test_api.py` (+81 -1) 📝 `netbox/project-static/js/forms.js` (+1 -1) 📝 `netbox/secrets/tests/test_api.py` (+10 -0) 📝 `netbox/tenancy/tests/test_api.py` (+20 -0) 📝 `netbox/utilities/api.py` (+13 -0) 📝 `netbox/virtualization/api/serializers.py` (+2 -1) 📝 `netbox/virtualization/api/views.py` (+12 -0) 📝 `netbox/virtualization/tests/test_api.py` (+50 -0) </details> ### 📄 Description ### Fixes: #2487 Minimize API output when `?brief` is passed as a query parameter. --- <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-29 22:21:13 +01:00
adam closed this issue 2025-12-29 22:21:13 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12386