diff --git a/lib/netbox_client_ruby/api/circuits/circuit.rb b/lib/netbox_client_ruby/api/circuits/circuit.rb index a105757..2e603de 100644 --- a/lib/netbox_client_ruby/api/circuits/circuit.rb +++ b/lib/netbox_client_ruby/api/circuits/circuit.rb @@ -16,7 +16,7 @@ class Circuit id id: :id deletable true - path 'circuits/circuits/:id.json' + path 'circuits/circuits/:id/' creation_path 'circuits/circuits/' object_fields( diff --git a/lib/netbox_client_ruby/api/circuits/circuit_termination.rb b/lib/netbox_client_ruby/api/circuits/circuit_termination.rb index 3129c2a..c826b83 100644 --- a/lib/netbox_client_ruby/api/circuits/circuit_termination.rb +++ b/lib/netbox_client_ruby/api/circuits/circuit_termination.rb @@ -7,7 +7,7 @@ class CircuitTermination id id: :id deletable true - path 'circuits/circuit-terminations/:id.json' + path 'circuits/circuit-terminations/:id/' creation_path 'circuits/circuit-terminations/' object_fields( diff --git a/lib/netbox_client_ruby/api/circuits/circuit_type.rb b/lib/netbox_client_ruby/api/circuits/circuit_type.rb index b9a247e..2bdfaa2 100644 --- a/lib/netbox_client_ruby/api/circuits/circuit_type.rb +++ b/lib/netbox_client_ruby/api/circuits/circuit_type.rb @@ -7,7 +7,7 @@ class CircuitType id id: :id deletable true - path 'circuits/circuit-types/:id.json' + path 'circuits/circuit-types/:id/' creation_path 'circuits/circuit-types/' end end diff --git a/lib/netbox_client_ruby/api/circuits/provider.rb b/lib/netbox_client_ruby/api/circuits/provider.rb index 8b9fefe..cfb2bb3 100644 --- a/lib/netbox_client_ruby/api/circuits/provider.rb +++ b/lib/netbox_client_ruby/api/circuits/provider.rb @@ -7,7 +7,7 @@ class Provider id id: :id deletable true - path 'circuits/providers/:id.json' + path 'circuits/providers/:id/' creation_path 'circuits/providers/' end end diff --git a/lib/netbox_client_ruby/api/dcim/console_connection.rb b/lib/netbox_client_ruby/api/dcim/console_connection.rb index 58d0151..1844a7c 100644 --- a/lib/netbox_client_ruby/api/dcim/console_connection.rb +++ b/lib/netbox_client_ruby/api/dcim/console_connection.rb @@ -7,7 +7,7 @@ class ConsoleConnection id id: :id deletable true - path 'dcim/console-connections/:id.json' + path 'dcim/console-connections/:id/' creation_path 'dcim/console-connections/' object_fields( diff --git a/lib/netbox_client_ruby/api/dcim/console_port.rb b/lib/netbox_client_ruby/api/dcim/console_port.rb index 0bd1ba3..f14cc01 100644 --- a/lib/netbox_client_ruby/api/dcim/console_port.rb +++ b/lib/netbox_client_ruby/api/dcim/console_port.rb @@ -7,7 +7,7 @@ class ConsolePort id id: :id deletable true - path 'dcim/console-ports/:id.json' + path 'dcim/console-ports/:id/' creation_path 'dcim/console-ports/' object_fields( diff --git a/lib/netbox_client_ruby/api/dcim/console_server_port.rb b/lib/netbox_client_ruby/api/dcim/console_server_port.rb index 16c9814..a4ba9b5 100644 --- a/lib/netbox_client_ruby/api/dcim/console_server_port.rb +++ b/lib/netbox_client_ruby/api/dcim/console_server_port.rb @@ -7,7 +7,7 @@ class ConsoleServerPort id id: :id deletable true - path 'dcim/console-server-ports/:id.json' + path 'dcim/console-server-ports/:id/' creation_path 'dcim/console-server-ports/' object_fields( diff --git a/lib/netbox_client_ruby/api/dcim/device.rb b/lib/netbox_client_ruby/api/dcim/device.rb index c81326a..ed097cc 100644 --- a/lib/netbox_client_ruby/api/dcim/device.rb +++ b/lib/netbox_client_ruby/api/dcim/device.rb @@ -7,7 +7,7 @@ class Device id id: :id deletable true - path 'dcim/devices/:id.json' + path 'dcim/devices/:id/' creation_path 'dcim/devices/' object_fields( device_type: proc { |raw_data| DeviceType.new raw_data['id'] }, diff --git a/lib/netbox_client_ruby/api/dcim/device_role.rb b/lib/netbox_client_ruby/api/dcim/device_role.rb index 921996f..a14b6fb 100644 --- a/lib/netbox_client_ruby/api/dcim/device_role.rb +++ b/lib/netbox_client_ruby/api/dcim/device_role.rb @@ -7,7 +7,7 @@ class DeviceRole id id: :id deletable true - path 'dcim/device-roles/:id.json' + path 'dcim/device-roles/:id/' creation_path 'dcim/device-roles/' end end diff --git a/lib/netbox_client_ruby/api/dcim/device_type.rb b/lib/netbox_client_ruby/api/dcim/device_type.rb index f8999a3..d1c2c3d 100644 --- a/lib/netbox_client_ruby/api/dcim/device_type.rb +++ b/lib/netbox_client_ruby/api/dcim/device_type.rb @@ -16,7 +16,7 @@ class DeviceType id id: :id deletable true - path 'dcim/device-types/:id.json' + path 'dcim/device-types/:id/' creation_path 'dcim/device-types/' object_fields( manufacturer: proc { |raw_data| Manufacturer.new raw_data['id'] }, diff --git a/lib/netbox_client_ruby/api/dcim/interface.rb b/lib/netbox_client_ruby/api/dcim/interface.rb index 8307e2f..92a59fb 100644 --- a/lib/netbox_client_ruby/api/dcim/interface.rb +++ b/lib/netbox_client_ruby/api/dcim/interface.rb @@ -7,7 +7,7 @@ class Interface id id: :id deletable true - path 'dcim/interfaces/:id.json' + path 'dcim/interfaces/:id/' creation_path 'dcim/interfaces/' object_fields device: proc { |raw_data| Device.new raw_data['id'] } end diff --git a/lib/netbox_client_ruby/api/dcim/interface_connection.rb b/lib/netbox_client_ruby/api/dcim/interface_connection.rb index d86d052..f9ee619 100644 --- a/lib/netbox_client_ruby/api/dcim/interface_connection.rb +++ b/lib/netbox_client_ruby/api/dcim/interface_connection.rb @@ -7,7 +7,7 @@ class InterfaceConnection id id: :id deletable true - path 'dcim/interface-connections/:id.json' + path 'dcim/interface-connections/:id/' creation_path 'dcim/interface-connections/' object_fields( diff --git a/lib/netbox_client_ruby/api/dcim/inventory_item.rb b/lib/netbox_client_ruby/api/dcim/inventory_item.rb index 6cda69e..72020b2 100644 --- a/lib/netbox_client_ruby/api/dcim/inventory_item.rb +++ b/lib/netbox_client_ruby/api/dcim/inventory_item.rb @@ -7,7 +7,7 @@ class InventoryItem id id: :id deletable true - path 'dcim/inventory-items/:id.json' + path 'dcim/inventory-items/:id/' creation_path 'dcim/inventory-items/' object_fields device: proc { |raw_data| Device.new raw_data['id'] }, manufacturer: proc { |raw_data| Manufacturer.new raw_data['id'] } diff --git a/lib/netbox_client_ruby/api/dcim/manufacturer.rb b/lib/netbox_client_ruby/api/dcim/manufacturer.rb index e335a88..c500e1d 100644 --- a/lib/netbox_client_ruby/api/dcim/manufacturer.rb +++ b/lib/netbox_client_ruby/api/dcim/manufacturer.rb @@ -7,7 +7,7 @@ class Manufacturer id id: :id deletable true - path 'dcim/manufacturers/:id.json' + path 'dcim/manufacturers/:id/' creation_path 'dcim/manufacturers/' end end diff --git a/lib/netbox_client_ruby/api/dcim/platform.rb b/lib/netbox_client_ruby/api/dcim/platform.rb index 142d08a..91cb3d3 100644 --- a/lib/netbox_client_ruby/api/dcim/platform.rb +++ b/lib/netbox_client_ruby/api/dcim/platform.rb @@ -7,7 +7,7 @@ class Platform id id: :id deletable true - path 'dcim/platforms/:id.json' + path 'dcim/platforms/:id/' creation_path 'dcim/platforms/' object_fields( manufacturer: proc do |raw_manufacturer| diff --git a/lib/netbox_client_ruby/api/dcim/power_connection.rb b/lib/netbox_client_ruby/api/dcim/power_connection.rb index 25db595..63a3ad6 100644 --- a/lib/netbox_client_ruby/api/dcim/power_connection.rb +++ b/lib/netbox_client_ruby/api/dcim/power_connection.rb @@ -7,7 +7,7 @@ class PowerConnection id id: :id deletable true - path 'dcim/power-connections/:id.json' + path 'dcim/power-connections/:id/' creation_path 'dcim/power-connections/' object_fields( diff --git a/lib/netbox_client_ruby/api/dcim/power_outlet.rb b/lib/netbox_client_ruby/api/dcim/power_outlet.rb index 8a06f87..84ae426 100644 --- a/lib/netbox_client_ruby/api/dcim/power_outlet.rb +++ b/lib/netbox_client_ruby/api/dcim/power_outlet.rb @@ -7,7 +7,7 @@ class PowerOutlet id id: :id deletable true - path 'dcim/power-outlets/:id.json' + path 'dcim/power-outlets/:id/' creation_path 'dcim/power-outlets/' object_fields device: proc { |raw_data| Device.new raw_data['id'] } object_fields connected_port: proc { |raw_data| PowerPort.new raw_data } diff --git a/lib/netbox_client_ruby/api/dcim/power_port.rb b/lib/netbox_client_ruby/api/dcim/power_port.rb index 9d89089..5084b07 100644 --- a/lib/netbox_client_ruby/api/dcim/power_port.rb +++ b/lib/netbox_client_ruby/api/dcim/power_port.rb @@ -7,7 +7,7 @@ class PowerPort id id: :id deletable true - path 'dcim/power-ports/:id.json' + path 'dcim/power-ports/:id/' creation_path 'dcim/power-ports/' object_fields device: proc { |raw_data| Device.new raw_data['id'] } object_fields power_outlet: proc { |raw_data| PowerOutlet.new raw_data['id'] } diff --git a/lib/netbox_client_ruby/api/dcim/rack.rb b/lib/netbox_client_ruby/api/dcim/rack.rb index 2fad4ed..910e4db 100644 --- a/lib/netbox_client_ruby/api/dcim/rack.rb +++ b/lib/netbox_client_ruby/api/dcim/rack.rb @@ -7,7 +7,7 @@ class Rack id id: :id deletable true - path 'dcim/racks/:id.json' + path 'dcim/racks/:id/' creation_path 'dcim/racks/' end end diff --git a/lib/netbox_client_ruby/api/dcim/rack_group.rb b/lib/netbox_client_ruby/api/dcim/rack_group.rb index 07a90d9..03c5b7f 100644 --- a/lib/netbox_client_ruby/api/dcim/rack_group.rb +++ b/lib/netbox_client_ruby/api/dcim/rack_group.rb @@ -7,7 +7,7 @@ class RackGroup id id: :id deletable true - path 'dcim/rack-groups/:id.json' + path 'dcim/rack-groups/:id/' creation_path 'dcim/rack-groups/' object_fields( region: proc { |raw_data| DCIM::Region.new raw_data['id'] }, diff --git a/lib/netbox_client_ruby/api/dcim/rack_reservation.rb b/lib/netbox_client_ruby/api/dcim/rack_reservation.rb index 3a88371..e4f2d76 100644 --- a/lib/netbox_client_ruby/api/dcim/rack_reservation.rb +++ b/lib/netbox_client_ruby/api/dcim/rack_reservation.rb @@ -7,7 +7,7 @@ class RackReservation id id: :id deletable true - path 'dcim/rack-reservations/:id.json' + path 'dcim/rack-reservations/:id/' creation_path 'dcim/rack-reservations/' object_fields( diff --git a/lib/netbox_client_ruby/api/dcim/rack_role.rb b/lib/netbox_client_ruby/api/dcim/rack_role.rb index aa24255..a8db996 100644 --- a/lib/netbox_client_ruby/api/dcim/rack_role.rb +++ b/lib/netbox_client_ruby/api/dcim/rack_role.rb @@ -7,7 +7,7 @@ class RackRole id id: :id deletable true - path 'dcim/rack-roles/:id.json' + path 'dcim/rack-roles/:id/' creation_path 'dcim/rack-roles/' end end diff --git a/lib/netbox_client_ruby/api/dcim/region.rb b/lib/netbox_client_ruby/api/dcim/region.rb index 7266491..01a418b 100644 --- a/lib/netbox_client_ruby/api/dcim/region.rb +++ b/lib/netbox_client_ruby/api/dcim/region.rb @@ -7,7 +7,7 @@ class Region id id: :id deletable true - path 'dcim/regions/:id.json' + path 'dcim/regions/:id/' creation_path 'dcim/regions/' object_fields parent: proc { |raw_data| Region.new raw_data['id'] } end diff --git a/lib/netbox_client_ruby/api/dcim/site.rb b/lib/netbox_client_ruby/api/dcim/site.rb index d751aad..a1aa2b3 100644 --- a/lib/netbox_client_ruby/api/dcim/site.rb +++ b/lib/netbox_client_ruby/api/dcim/site.rb @@ -16,7 +16,7 @@ class Site :count_devices, :count_circuits deletable true - path 'dcim/sites/:id.json' + path 'dcim/sites/:id/' creation_path 'dcim/sites/' object_fields( region: proc { |raw_region| DCIM::Region.new raw_region['id'] }, diff --git a/lib/netbox_client_ruby/api/dcim/virtual_chassis.rb b/lib/netbox_client_ruby/api/dcim/virtual_chassis.rb index a1fd606..90b3eac 100644 --- a/lib/netbox_client_ruby/api/dcim/virtual_chassis.rb +++ b/lib/netbox_client_ruby/api/dcim/virtual_chassis.rb @@ -7,7 +7,7 @@ class VirtualChassis id id: :id deletable true - path 'dcim/virtual-chassis/:id.json' + path 'dcim/virtual-chassis/:id/' creation_path 'dcim/virtual-chassis/' object_fields( diff --git a/lib/netbox_client_ruby/api/extras/config_context.rb b/lib/netbox_client_ruby/api/extras/config_context.rb index adcddaa..ac6ba2d 100644 --- a/lib/netbox_client_ruby/api/extras/config_context.rb +++ b/lib/netbox_client_ruby/api/extras/config_context.rb @@ -7,7 +7,7 @@ class ConfigContext id id: :id deletable true - path 'extras/config-contexts/:id.json' + path 'extras/config-contexts/:id/' creation_path 'extras/config-contexts/' object_fields( regions: proc { |raw_data| DCIM::Region.new raw_data['id'] }, diff --git a/lib/netbox_client_ruby/api/extras/journal_entry.rb b/lib/netbox_client_ruby/api/extras/journal_entry.rb index 4f6ae5d..e3aa419 100644 --- a/lib/netbox_client_ruby/api/extras/journal_entry.rb +++ b/lib/netbox_client_ruby/api/extras/journal_entry.rb @@ -7,7 +7,7 @@ class JournalEntry id id: :id deletable true - path 'extras/journal-entries/:id.json' + path 'extras/journal-entries/:id/' creation_path 'extras/journal-entries/' end end diff --git a/lib/netbox_client_ruby/api/extras/tag.rb b/lib/netbox_client_ruby/api/extras/tag.rb index 81c713f..8326d21 100644 --- a/lib/netbox_client_ruby/api/extras/tag.rb +++ b/lib/netbox_client_ruby/api/extras/tag.rb @@ -7,7 +7,7 @@ class Tag id id: :id deletable true - path 'extras/tags/:id.json' + path 'extras/tags/:id/' creation_path 'extras/tags/' end end diff --git a/lib/netbox_client_ruby/api/ipam/aggregate.rb b/lib/netbox_client_ruby/api/ipam/aggregate.rb index 2f12a96..a20fc38 100644 --- a/lib/netbox_client_ruby/api/ipam/aggregate.rb +++ b/lib/netbox_client_ruby/api/ipam/aggregate.rb @@ -7,7 +7,7 @@ class Aggregate id id: :id deletable true - path 'ipam/aggregates/:id.json' + path 'ipam/aggregates/:id/' creation_path 'ipam/aggregates/' object_fields rir: proc { |raw_data| Rir.new raw_data['id'] } end diff --git a/lib/netbox_client_ruby/api/ipam/ip_address.rb b/lib/netbox_client_ruby/api/ipam/ip_address.rb index 6661b19..1b3d759 100644 --- a/lib/netbox_client_ruby/api/ipam/ip_address.rb +++ b/lib/netbox_client_ruby/api/ipam/ip_address.rb @@ -14,7 +14,7 @@ class IpAddress id id: :id deletable true - path 'ipam/ip-addresses/:id.json' + path 'ipam/ip-addresses/:id/' creation_path 'ipam/ip-addresses/' object_fields( vrf: proc { |raw_data| Vrf.new raw_data['id'] }, diff --git a/lib/netbox_client_ruby/api/ipam/ip_range.rb b/lib/netbox_client_ruby/api/ipam/ip_range.rb index e91d1ee..ba9d715 100644 --- a/lib/netbox_client_ruby/api/ipam/ip_range.rb +++ b/lib/netbox_client_ruby/api/ipam/ip_range.rb @@ -7,7 +7,7 @@ class IpRange id id: :id deletable true - path 'ipam/ip-ranges/:id.json' + path 'ipam/ip-ranges/:id/' creation_path 'ipam/ip-ranges/' object_fields( vrf: proc { |raw_data| Vrf.new raw_data['id'] }, diff --git a/lib/netbox_client_ruby/api/ipam/prefix.rb b/lib/netbox_client_ruby/api/ipam/prefix.rb index 81d2878..f163211 100644 --- a/lib/netbox_client_ruby/api/ipam/prefix.rb +++ b/lib/netbox_client_ruby/api/ipam/prefix.rb @@ -7,7 +7,7 @@ class Prefix id id: :id deletable true - path 'ipam/prefixes/:id.json' + path 'ipam/prefixes/:id/' creation_path 'ipam/prefixes/' object_fields( site: proc { |raw_data| DCIM::Site.new raw_data['id'] }, diff --git a/lib/netbox_client_ruby/api/ipam/rir.rb b/lib/netbox_client_ruby/api/ipam/rir.rb index 03adff3..fbb45ca 100644 --- a/lib/netbox_client_ruby/api/ipam/rir.rb +++ b/lib/netbox_client_ruby/api/ipam/rir.rb @@ -7,7 +7,7 @@ class Rir id id: :id deletable true - path 'ipam/rirs/:id.json' + path 'ipam/rirs/:id/' creation_path 'ipam/rirs/' end end diff --git a/lib/netbox_client_ruby/api/ipam/role.rb b/lib/netbox_client_ruby/api/ipam/role.rb index ff0a7ec..809b9be 100644 --- a/lib/netbox_client_ruby/api/ipam/role.rb +++ b/lib/netbox_client_ruby/api/ipam/role.rb @@ -7,7 +7,7 @@ class Role id id: :id deletable true - path 'ipam/roles/:id.json' + path 'ipam/roles/:id/' creation_path 'ipam/roles/' end end diff --git a/lib/netbox_client_ruby/api/ipam/service.rb b/lib/netbox_client_ruby/api/ipam/service.rb index 64ee7d2..bf5124d 100644 --- a/lib/netbox_client_ruby/api/ipam/service.rb +++ b/lib/netbox_client_ruby/api/ipam/service.rb @@ -7,7 +7,7 @@ class Service id id: :id deletable true - path 'ipam/services/:id.json' + path 'ipam/services/:id/' creation_path 'ipam/services/' object_fields( device: proc { |raw_data| Device.new raw_data['id'] }, diff --git a/lib/netbox_client_ruby/api/ipam/vlan.rb b/lib/netbox_client_ruby/api/ipam/vlan.rb index dcf9bd9..0b24a5f 100644 --- a/lib/netbox_client_ruby/api/ipam/vlan.rb +++ b/lib/netbox_client_ruby/api/ipam/vlan.rb @@ -7,7 +7,7 @@ class Vlan id id: :id deletable true - path 'ipam/vlans/:id.json' + path 'ipam/vlans/:id/' creation_path 'ipam/vlans/' object_fields( tenant: proc { |raw_data| Tenancy::Tenant.new raw_data['id'] }, diff --git a/lib/netbox_client_ruby/api/ipam/vlan_group.rb b/lib/netbox_client_ruby/api/ipam/vlan_group.rb index 61fd9f0..70b81f7 100644 --- a/lib/netbox_client_ruby/api/ipam/vlan_group.rb +++ b/lib/netbox_client_ruby/api/ipam/vlan_group.rb @@ -7,7 +7,7 @@ class VlanGroup id id: :id deletable true - path 'ipam/vlan-groups/:id.json' + path 'ipam/vlan-groups/:id/' creation_path 'ipam/vlan-groups/' object_fields site: proc { |raw_data| DCIM::Site.new raw_data['id'] } end diff --git a/lib/netbox_client_ruby/api/ipam/vrf.rb b/lib/netbox_client_ruby/api/ipam/vrf.rb index f508e69..b136e70 100644 --- a/lib/netbox_client_ruby/api/ipam/vrf.rb +++ b/lib/netbox_client_ruby/api/ipam/vrf.rb @@ -7,7 +7,7 @@ class Vrf id id: :id deletable true - path 'ipam/vrfs/:id.json' + path 'ipam/vrfs/:id/' creation_path 'ipam/vrfs/' object_fields tenant: proc { |raw_data| Tenancy::Tenant.new raw_data['id'] } end diff --git a/lib/netbox_client_ruby/api/secrets/secret.rb b/lib/netbox_client_ruby/api/secrets/secret.rb index 8d5401a..4d47912 100644 --- a/lib/netbox_client_ruby/api/secrets/secret.rb +++ b/lib/netbox_client_ruby/api/secrets/secret.rb @@ -7,7 +7,7 @@ class Secret id id: :id deletable true - path 'secrets/secrets/:id.json' + path 'secrets/secrets/:id/' creation_path 'secrets/secrets/' object_fields device: proc { |raw_data| Device.new raw_data['id'] }, role: proc { |raw_data| SecretRole.new raw_data['id'] } diff --git a/lib/netbox_client_ruby/api/secrets/secret_role.rb b/lib/netbox_client_ruby/api/secrets/secret_role.rb index eaa536c..b5cd158 100644 --- a/lib/netbox_client_ruby/api/secrets/secret_role.rb +++ b/lib/netbox_client_ruby/api/secrets/secret_role.rb @@ -7,7 +7,7 @@ class SecretRole id id: :id deletable true - path 'secrets/secret-roles/:id.json' + path 'secrets/secret-roles/:id/' creation_path 'secrets/secret-roles/' end end diff --git a/lib/netbox_client_ruby/api/tenancy/tenant.rb b/lib/netbox_client_ruby/api/tenancy/tenant.rb index 1e8f816..b983889 100644 --- a/lib/netbox_client_ruby/api/tenancy/tenant.rb +++ b/lib/netbox_client_ruby/api/tenancy/tenant.rb @@ -7,7 +7,7 @@ class Tenant id id: :id deletable true - path 'tenancy/tenants/:id.json' + path 'tenancy/tenants/:id/' creation_path 'tenancy/tenants/' object_fields group: proc { |raw_data| TenantGroup.new raw_data['id'] } end diff --git a/lib/netbox_client_ruby/api/tenancy/tenant_group.rb b/lib/netbox_client_ruby/api/tenancy/tenant_group.rb index 82170a8..11a18b4 100644 --- a/lib/netbox_client_ruby/api/tenancy/tenant_group.rb +++ b/lib/netbox_client_ruby/api/tenancy/tenant_group.rb @@ -7,7 +7,7 @@ class TenantGroup id id: :id deletable true - path 'tenancy/tenant-groups/:id.json' + path 'tenancy/tenant-groups/:id/' creation_path 'tenancy/tenant-groups/' end end diff --git a/lib/netbox_client_ruby/api/virtualization/cluster.rb b/lib/netbox_client_ruby/api/virtualization/cluster.rb index f271269..e3c6598 100644 --- a/lib/netbox_client_ruby/api/virtualization/cluster.rb +++ b/lib/netbox_client_ruby/api/virtualization/cluster.rb @@ -7,7 +7,7 @@ class Cluster id id: :id deletable true - path 'virtualization/clusters/:id.json' + path 'virtualization/clusters/:id/' creation_path 'virtualization/clusters/' object_fields( group: proc { |raw_data| ClusterGroup.new raw_data['id'] }, diff --git a/lib/netbox_client_ruby/api/virtualization/cluster_group.rb b/lib/netbox_client_ruby/api/virtualization/cluster_group.rb index 98dc258..31e23c2 100644 --- a/lib/netbox_client_ruby/api/virtualization/cluster_group.rb +++ b/lib/netbox_client_ruby/api/virtualization/cluster_group.rb @@ -7,7 +7,7 @@ class ClusterGroup id id: :id deletable true - path 'virtualization/cluster-groups/:id.json' + path 'virtualization/cluster-groups/:id/' creation_path 'virtualization/cluster-groups/' end end diff --git a/lib/netbox_client_ruby/api/virtualization/cluster_type.rb b/lib/netbox_client_ruby/api/virtualization/cluster_type.rb index b7786eb..f85e350 100644 --- a/lib/netbox_client_ruby/api/virtualization/cluster_type.rb +++ b/lib/netbox_client_ruby/api/virtualization/cluster_type.rb @@ -7,7 +7,7 @@ class ClusterType id id: :id deletable true - path 'virtualization/cluster-types/:id.json' + path 'virtualization/cluster-types/:id/' creation_path 'virtualization/cluster-types/' end end diff --git a/lib/netbox_client_ruby/api/virtualization/interface.rb b/lib/netbox_client_ruby/api/virtualization/interface.rb index 0a1ca92..c6ae414 100644 --- a/lib/netbox_client_ruby/api/virtualization/interface.rb +++ b/lib/netbox_client_ruby/api/virtualization/interface.rb @@ -7,7 +7,7 @@ class Interface id id: :id deletable true - path 'virtualization/interfaces/:id.json' + path 'virtualization/interfaces/:id/' creation_path 'virtualization/interfaces/' object_fields virtual_machine: proc { |raw_data| VirtualMachine.new raw_data['id'] diff --git a/lib/netbox_client_ruby/api/virtualization/virtual_machine.rb b/lib/netbox_client_ruby/api/virtualization/virtual_machine.rb index b3b7670..e8d7db8 100644 --- a/lib/netbox_client_ruby/api/virtualization/virtual_machine.rb +++ b/lib/netbox_client_ruby/api/virtualization/virtual_machine.rb @@ -7,7 +7,7 @@ class VirtualMachine id id: :id deletable true - path 'virtualization/virtual-machines/:id.json' + path 'virtualization/virtual-machines/:id/' creation_path 'virtualization/virtual-machines/' object_fields( cluster: proc { |raw_data| Cluster.new raw_data['id'] },