nautobot / nautobot-ansible

Ansible Collection for managing Nautobot Data
https://nautobot-ansible.readthedocs.io/en/latest/
GNU General Public License v3.0
40 stars 31 forks source link

Automatic module generation from OpenAPI spec? #357

Open glennmatthews opened 4 weeks ago

glennmatthews commented 4 weeks ago
ISSUE TYPE
SUMMARY

When Nautobot adds new data models and new REST API endpoints in support of those models, nautobot-ansible currently must be manually updated to add new modules (#282, #288, etc.). Similarly, when new fields are added to existing models/endpoints, or even just if some fields were missed in the initial implementation, manual updates are also needed (#273, #275, etc.).

Since ultimately these modules are a "wrapper" around the Nautobot REST API, it seems like it should be possible to (at least in large part) automatically generate module definitions based on Nautobot's REST API OpenAPI schema. A relatively small amount of automation in this area could greatly reduce the amount of manual effort needed to update and maintain these modules.

Possible inspiration: