netbox-community / pynetbox

Python API client library for Netbox.
Apache License 2.0
580 stars 172 forks source link

Underscore-separated Plugins Endpoint name support #655

Closed Ja1rman closed 2 weeks ago

Ja1rman commented 2 weeks ago

pynetbox version

v7.4.1

NetBox version

v4.0.8

Python version

3.11

Steps to Reproduce

https://github.com/netbox-community/pynetbox/issues/332

Expected Behavior

I have link in format api/plugins/some_name But I cant use library because in v6.1.3 formatting has appeared https://github.com/netbox-community/pynetbox/blob/1cb52979a3a1f86e127bcf07b3f77a5beffa840a/pynetbox/core/app.py#L114

Observed Behavior

I think that it should support both formats

for easy fix may be this solution will interesting replace("__", "-") or you need to add a key to change or not change the format

bctiemann commented 2 weeks ago

This is a duplicate of https://github.com/netbox-community/pynetbox/issues/653