jeremystretch
59aba52b03
Rename OrderedDefaultRouter to NetBoxRouter & document for plugins
2022-03-11 15:59:03 -05:00
jeremystretch
bbdeae0ed9
Move CustomFieldModelViewSet functionality into NetBoxModelViewSet
2022-03-09 11:44:55 -05:00
jeremystretch
efd5a73a18
Refactor API views
2022-03-09 11:27:42 -05:00
jeremystretch
478eefb74c
Merge v3.1.7
2022-02-03 12:55:34 -05:00
jeremystretch
3bb7184f28
Fixes #8499 : Content types REST API endpoint should not require model permission
2022-02-01 15:14:13 -05:00
jeremystretch
3fcae36cf1
Closes #8307 : Add data_type indicator to REST API serializer for custom fields
2022-01-18 16:57:54 -05:00
jeremystretch
3e3880823b
Merge v3.1.6
2022-01-17 11:12:54 -05:00
Jason Yates
0181a25d70
Fixes #8342
...
created & last_updated fields are missing from some REST API calls. Added missing fields to the following API calls
/api/dcim/virtual-chassis/
/api/dcim/cables/
/api/dcim/power-panels/
/api/dcim/rack-reservations/
/api/circuits/circuit-terminations/
/api/extras/webhooks/
/api/extras/custom-fields/
/api/extras/custom-links/
/api/extras/export-templates/
/api/extras/tags/
2022-01-13 19:13:28 -08:00
jeremystretch
72e17914e2
Closes #8296 : Allow disabling custom links
2022-01-10 12:11:37 -05:00
jeremystretch
271b7adeb8
Extend to support the assignment of multiple objects per field
2022-01-05 17:05:54 -05:00
jeremystretch
fa1e28e860
Initial work on #7006
2022-01-04 16:59:52 -05:00
jeremystretch
77dd684916
Closes #7784 : Support cluster type assignment for config contexts
2021-12-23 14:20:03 -05:00
jeremystretch
7ba45b2887
Clean up imports
2021-12-21 10:48:10 -05:00
jeremystretch
b92e34556f
Fixes #8077 : Fix exception when attaching image to location, circuit, or power panel
2021-12-15 08:45:17 -05:00
jeremystretch
424ac29131
Closes #7812 : Enable change logging for image attachments
2021-11-17 11:52:50 -05:00
jeremystretch
78ecc8673c
Add conditions for webhooks
2021-10-22 17:15:08 -04:00
jeremystretch
b806220074
Closes #6850 : Default to current user when creating journal entries via REST API
2021-10-06 10:56:50 -04:00
jeremystretch
2d44bade4b
Merge branch 'develop' into feature
2021-06-02 20:35:38 -04:00
jeremystretch
1c0f3e1b81
Fixes #6502 : Correct permissions evaluation for running a report via the REST API
2021-05-28 13:16:25 -04:00
jeremystretch
5856275347
Closes #5991 : Remove display_name attribute from serializers
2021-05-04 15:56:36 -04:00
jeremystretch
c4e88fd11a
Consolidate FilterSet classes
2021-04-29 15:59:11 -04:00
Martin Rødvand
878154c305
Closes #5830 : Add as_attachment field to API serializers and admin view.
2021-03-30 23:26:55 +02:00
Jeremy Stretch
cd629fc737
Closes #4833 : Allow assigning config contexts by device type
2021-03-29 15:40:09 -04:00
Jeremy Stretch
82fbd975f1
Add kind field to JournalEntry
2021-03-17 12:51:39 -04:00
Jeremy Stretch
f2c079de87
Add JournalEntry tests
2021-03-16 16:47:35 -04:00
Jeremy Stretch
1f1a62da67
Initial work on #151 : Object journaling
2021-03-16 15:00:08 -04:00
Jeremy Stretch
fb48c1f6dd
Add 'display' field to all REST API serializers
2021-03-16 10:06:25 -04:00
Jeremy Stretch
fca5accba8
Clean up base serializers
2021-03-12 13:31:28 -05:00
Jeremy Stretch
6ffadb501b
Closes #5610 : Add REST API endpoint for webhooks
2021-03-09 09:22:58 -05:00
Jeremy Stretch
38ded66c4e
Closes #5608 : Add REST API endpoint for custom links
2021-03-08 20:57:44 -05:00
Jeremy Stretch
79b19821f6
Closes #5892 : Introduce SiteGroup model ( #5937 )
...
* Initial work on #5892
* Add site group selection to object edit forms
* Add documentation for site groups
* Changelog for #5892
* Finish application of site groups to config context
2021-03-08 13:28:53 -05:00
Jeremy Stretch
9c967ee3ea
Fixes #5913 : Improve change logging ( #5924 )
...
* Initial work on #5913
* Provide per-line diff highlighting
* BulkDeteView should delete objects individually to secure a pre-change snapshot
* Add changelog tests for bulk operations
2021-03-04 13:06:04 -05:00
Jeremy Stretch
12fbd34962
Introduce NestedGroupModelSerializer
2021-02-25 17:15:42 -05:00
Jeremy Stretch
8ae3331d04
Closes #5549 : Eliminate extraneous database queries when using brief API calls
2020-12-29 11:41:44 -05:00
Jeremy Stretch
4a066a1913
Rename get_subquery() to count_related()
2020-12-17 14:47:49 -05:00
Jeremy Stretch
91083fd6c5
Call Coalesce() inside get_queryset()
2020-12-17 14:45:50 -05:00
Daniel Sheppard
3c2b2f26b9
Fixes : #5450 - Added Coalesce to viewsets for the _count functions
2020-12-15 12:50:28 -06:00
Jeremy Stretch
cc271aefe1
Closes #5400 : Store custom field defaults as JSON values
2020-12-01 16:05:23 -05:00
Jeremy Stretch
915cf3e715
Merge branch 'develop' into develop-2.10
2020-12-01 11:42:55 -05:00
Jeremy Stretch
f55e966c8f
Closes #4865 : Replace all Count() annotations with subqueries ( #5385 )
...
* Convert circuits to use subqueries
* Convert dcim to use subqueries
* Convert extras to use subqueries
* Convert ipam to use subqueries
* Convert secrets to use subqueries
* Convert virtualization to use subqueries
* Update global search view to use subqueries where appropriate
* Remove extraneous order_by() calls
2020-11-25 15:49:18 -05:00
Jeremy Stretch
6cae4d7ee4
Fix CustomFieldSerializer content_types queryset
2020-11-23 18:55:17 -05:00
Jeremy Stretch
a05fe69043
Add REST API endpoint for custom fields
2020-11-23 15:54:42 -05:00
Jeremy Stretch
f3f3993963
Enforce custom field validation on the model
2020-11-12 14:23:08 -05:00
Jeremy Stretch
fcb5e6ae1c
Merge branch 'develop' into develop-2.10
2020-10-30 10:38:05 -04:00
John Anderson
28c17f33ab
move get_queryset() to common mixin
2020-10-30 02:56:43 -04:00
Jeremy Stretch
8781cf1c57
Closes #609 : Add min/max value and regex validation for custom fields
2020-10-15 15:06:01 -04:00
Jeremy Stretch
143f3cc27c
#4711 : Rename CustomField.obj_type to content_types
2020-10-14 15:26:46 -04:00
Jeremy Stretch
c0c5f52ed9
Reorganize REST API components under netbox app
2020-10-13 15:57:21 -04:00
Jeremy Stretch
d61d62088f
Ditch hard-coded filtering of ContentTypes API endpoint
2020-10-09 15:11:56 -04:00
Jeremy Stretch
3df3706f27
Closes #5190 : Add a REST API endpoint for content types
2020-10-09 15:08:29 -04:00