API Documentation Updates (Migrate from drf-yasg -> drf-spectacular) #6600

Closed
opened 2025-12-29 19:42:50 +01:00 by adam · 4 comments
Owner

Originally created by @huntabyte on GitHub (Jun 27, 2022).

Originally assigned to: @arthanson on GitHub.

Proposed Changes

I would like to work on updating the API documentation, however, the current package used to generate and manage the swagger docs lacks functionality, doesn't support OpenAPI 3.0, and isn't being actively maintained.

drf-spectacular is being actively maintained and provides some of the missing functionality.

I'd like to work on making this happen.

Justification

This would improve the developer's experience when building applications that interact with NetBox.

Originally created by @huntabyte on GitHub (Jun 27, 2022). Originally assigned to: @arthanson on GitHub. ### Proposed Changes I would like to work on updating the API documentation, however, the current package used to generate and manage the swagger docs lacks functionality, doesn't support OpenAPI 3.0, and isn't being actively maintained. [drf-spectacular ](https://github.com/tfranzel/drf-spectacular) is being actively maintained and provides some of the missing functionality. I'd like to work on making this happen. ### Justification This would improve the developer's experience when building applications that interact with NetBox.
adam added the status: acceptedtype: housekeeping labels 2025-12-29 19:42:50 +01:00
adam closed this issue 2025-12-29 19:42:50 +01:00
Author
Owner

@arthanson commented on GitHub (Sep 15, 2022):

@huntabyte are you still available and wanting to work on this?

@arthanson commented on GitHub (Sep 15, 2022): @huntabyte are you still available and wanting to work on this?
Author
Owner

@huntabyte commented on GitHub (Sep 15, 2022):

@arthanson Yes, for sure.

@huntabyte commented on GitHub (Sep 15, 2022): @arthanson Yes, for sure.
Author
Owner

@arthanson commented on GitHub (Sep 15, 2022):

@huntabyte That is great - thank you. Please go ahead and start working on this in a new branch. It will probably be tough to fit it into 3.4 release, probably would be 3.5 but we can see.

If possible, it probably makes sense to keep the current OpenAPI 2.0 drf-yasg in and have the drf-spectacular OpenAPI 3.0 in parallel, but I'm not sure if that is possible? If you need any help on it or questions, please let me know.

@arthanson commented on GitHub (Sep 15, 2022): @huntabyte That is great - thank you. Please go ahead and start working on this in a new branch. It will probably be tough to fit it into 3.4 release, probably would be 3.5 but we can see. If possible, it probably makes sense to keep the current OpenAPI 2.0 drf-yasg in and have the drf-spectacular OpenAPI 3.0 in parallel, but I'm not sure if that is possible? If you need any help on it or questions, please let me know.
Author
Owner

@arthanson commented on GitHub (Oct 28, 2022):

@huntabyte any progress on this so far? I saw a couple other issues that OpenAPI 3 would be nice for.

@arthanson commented on GitHub (Oct 28, 2022): @huntabyte any progress on this so far? I saw a couple other issues that OpenAPI 3 would be nice for.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6600