7abb2b2ab5
Closes #15131 : Dynamic queryset annotations for REST API endpoints ( #15152 )
...
* Introduce RelatedObjectCountField
* Introduce get_annotations_for_serializer() and enable dynamic annotations
* Add RelatedObjectCountFields to serializers; remove static annotations from querysets
* Remove annotations cleanup logic from BriefModeMixin
* Annotate type for RelatedObjectCountField
* Remove redundant field on TagSerializer
* Add missing reverse relationship for power feeds to rack
* Refactor RelatedObjectCountField to take a single relationship name
2024-02-15 14:49:27 -05:00
ecd0c56554
Closes #9608 : Move from drf-yasg to spectacular
...
Co-authored-by: arthanson <worldnomad@gmail.com >
Co-authored-by: jeremystretch <jstretch@netboxlabs.com >
2023-03-30 14:32:59 -04:00
9d709c84e7
Closes : #9047 - Add Provider Accounts ( #12057 )
...
* #9047 - ProviderAccount
* #9047 - Move to new selector types
* #9047 - Re-introduce provider FK to Circuit model
* #9047 - Fix broken tests
* Misc cleanup
* Revert errant change
* Fix tests
* Update circuit filter form
---------
Co-authored-by: jeremystretch <jstretch@netboxlabs.com >
2023-03-29 08:27:11 -04:00
3eb6b6c07f
Clean up core API imports
2022-07-13 16:18:55 -04:00
fe78f60b1f
Fixes #6357 : Fix ProviderNetwork nested API serializer
2021-05-06 13:06:10 -04:00
d57222328b
Rename Cloud to ProviderNetwork
2021-04-01 10:21:41 -04:00
6ff8a267e9
Introduce the Cloud model
2021-03-18 11:20:09 -04:00
fb48c1f6dd
Add 'display' field to all REST API serializers
2021-03-16 10:06:25 -04:00
8dd7123923
Closes #3648 : Mark cable termination models as connected without attaching a cable
2021-03-01 21:34:42 -05:00
c0c5f52ed9
Reorganize REST API components under netbox app
2020-10-13 15:57:21 -04:00
a7cd09d6d4
Fixes #4993 : Add cable to nested CircuitTermination serializer
2020-08-13 10:19:50 -04:00
a46b43bff6
Added child counts to API serializers (WIP)
2019-04-12 17:07:56 -04:00
75f0d8ee90
Closes #2578 : Reorganized nested serializers
2018-11-12 11:36:44 -05:00