Establish a base AvailableObjectsView API view class #7866

Closed
opened 2025-12-29 20:29:10 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Apr 5, 2023).

Originally assigned to: @jeremystretch on GitHub.

Proposed Changes

Introduce a base API view class to serve the following endpoints:

  • /api/asn-ranges/<id>/available-asns/
  • /api/ip-ranges/<id>/available-ips/
  • /api/prefixes/<id>/available-prefixes/
  • /api/prefixes/<id>/available-ips/
  • /api/vlan-groups/<id>/available-vlans/

Justification

Reduce boilerplate code and ensure consistent functionality across all related endpoints.

Originally created by @jeremystretch on GitHub (Apr 5, 2023). Originally assigned to: @jeremystretch on GitHub. ### Proposed Changes Introduce a base API view class to serve the following endpoints: * ` /api/asn-ranges/<id>/available-asns/` * ` /api/ip-ranges/<id>/available-ips/` * ` /api/prefixes/<id>/available-prefixes/` * ` /api/prefixes/<id>/available-ips/` * ` /api/vlan-groups/<id>/available-vlans/` ### Justification Reduce boilerplate code and ensure consistent functionality across all related endpoints.
adam added the status: acceptedtype: housekeeping labels 2025-12-29 20:29:10 +01:00
adam closed this issue 2025-12-29 20:29:10 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7866