netbox icon indicating copy to clipboard operation
netbox copied to clipboard

Reports and Scripts definitions are missing from OpenAPI

Open abhi1693 opened this issue 2 years ago • 2 comments

NetBox version

v3.5.4

Python version

3.10

Steps to Reproduce

This can be seen on the demo instance under extras at https://demo.netbox.dev/api/schema/swagger-ui/#/extras. There are no definitions displayed pertaining to scripts or reports.

You can still see these partially at https://demo.netbox.dev/api/extras/scripts/ and https://demo.netbox.dev/api/extras/reports/.

However, the same was available in v3.4.10.

Expected Behavior

GET and POST definitions for scripts and reports should be visible under OpenAPI.

Observed Behavior

No definitions for scripts and reports are visible in OpenAPI definition

abhi1693 avatar Jun 28 '23 13:06 abhi1693

The reports and scripts are not direct models so have to be done a bit different, as these will probably be combined together in 4.0 it makes sense to wait for then to do this.

arthanson avatar Aug 09 '23 08:08 arthanson

Blocked by #14438

abhi1693 avatar Feb 21 '24 07:02 abhi1693

This is fixed as part of #14438 which will be in NB 4.0 (see screenshot of swagger docs) so closing. Monosnap NetBox REST API 2024-02-27 10-18-28

arthanson avatar Feb 27 '24 18:02 arthanson