netbox/contrib
Jason Novinger 82171fce7a
Some checks are pending
CI / build (20.x, 3.10) (push) Waiting to run
CI / build (20.x, 3.11) (push) Waiting to run
CI / build (20.x, 3.12) (push) Waiting to run
CodeQL / Analyze (${{ matrix.language }}) (none, python) (push) Waiting to run
CodeQL / Analyze (${{ matrix.language }}) (none, actions) (push) Waiting to run
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
Fixes #20638: Document bulk create support in OpenAPI schema (#20777)
* Fixes #20638: Document bulk create support in OpenAPI schema

POST operations on NetBoxModelViewSet endpoints accept both single
objects and arrays, but the schema only documented single objects.
This prevented API client generators from producing correct code.

Add explicit bulk_create_enabled flag to NetBoxModelViewSet and
update schema generation to emit oneOf for these endpoints.

* Address PR feedback

- Removed brittle serializer marking mechanism in favor of direct checks
  on behavior.
- Attempted to introduce a bulk_create action and then route to it on
  POST in NetBoxRouter, but ran in to several obstacles including
  breaking HTTP status code reporting in the schema. Opted to simply

* Remove unused bulk_create_enabled attr

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2025-11-24 09:33:39 -05:00
..
apache.conf Disable Directory Browsing for Static file path in Apache2 config 2024-09-09 08:21:05 -04:00
generated_schema.json Release v4.4.2 2025-09-30 16:14:35 -04:00
gunicorn.py Closes #15811: Note potential incompatibilities for remote auth headers containing underscores 2024-04-29 16:46:56 -04:00
netbox-rq.service Closes #9218: Update documentation links with docs.netbox.dev 2022-04-25 09:48:39 -04:00
netbox.service 15154 Add uWSGI as option to gunicorn (#15550) 2024-03-28 15:24:08 -04:00
nginx.conf 15154 Add uWSGI as option to gunicorn (#15550) 2024-03-28 15:24:08 -04:00
openapi.json Fixes #20638: Document bulk create support in OpenAPI schema (#20777) 2025-11-24 09:33:39 -05:00
uwsgi.ini Closes #16056: Add binary-path configuration in uwsgi.ini 2024-05-09 13:11:11 -04:00