[PR #3654] [MERGED] 3538: Add custom script API endpoints #12607

Closed
opened 2025-12-29 22:22:36 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/3654
Author: @jeremystretch
Created: 10/29/2019
Status: Merged
Merged: 10/30/2019
Merged by: @jeremystretch

Base: develop-2.7Head: 3538-scripts-api


📝 Commits (4)

  • 1cfb8ae Initial work on #3538: script execution API
  • 93d28e6 Improve script output serialization
  • fd3f718 Add tests for custom script API
  • 0f65cf2 Only use module.name for human-facing display

📊 Changes

7 files changed (+195 additions, -8 deletions)

View changed files

📝 netbox/extras/api/serializers.py (+46 -0)
📝 netbox/extras/api/urls.py (+3 -0)
📝 netbox/extras/api/views.py (+52 -0)
📝 netbox/extras/scripts.py (+25 -6)
📝 netbox/extras/tests/test_api.py (+67 -0)
📝 netbox/extras/views.py (+1 -1)
📝 netbox/templates/extras/script_list.html (+1 -1)

📄 Description

Fixes: #3538

Introduces REST API endpoints to list, retrieve, and run custom scripts. Includes tests for retrieving and running a script via the API.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/3654 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 10/29/2019 **Status:** ✅ Merged **Merged:** 10/30/2019 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop-2.7` ← **Head:** `3538-scripts-api` --- ### 📝 Commits (4) - [`1cfb8ae`](https://github.com/netbox-community/netbox/commit/1cfb8aea23d736546cf61b3c42296fa86170750f) Initial work on #3538: script execution API - [`93d28e6`](https://github.com/netbox-community/netbox/commit/93d28e6a728aa9ec78e7c59f106561c20c6cf7ee) Improve script output serialization - [`fd3f718`](https://github.com/netbox-community/netbox/commit/fd3f718a0a63e6a72bdc452e82f2aa9155394d6a) Add tests for custom script API - [`0f65cf2`](https://github.com/netbox-community/netbox/commit/0f65cf23a591a28413b35d5abe910980a8469f6c) Only use module.name for human-facing display ### 📊 Changes **7 files changed** (+195 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/api/serializers.py` (+46 -0) 📝 `netbox/extras/api/urls.py` (+3 -0) 📝 `netbox/extras/api/views.py` (+52 -0) 📝 `netbox/extras/scripts.py` (+25 -6) 📝 `netbox/extras/tests/test_api.py` (+67 -0) 📝 `netbox/extras/views.py` (+1 -1) 📝 `netbox/templates/extras/script_list.html` (+1 -1) </details> ### 📄 Description ### Fixes: #3538 Introduces REST API endpoints to list, retrieve, and run custom scripts. Includes tests for retrieving and running a script via the API. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:22:36 +01:00
adam closed this issue 2025-12-29 22:22:36 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12607