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'] }, diff --git a/spec/netbox_client_ruby/api/circuits/circuit_spec.rb b/spec/netbox_client_ruby/api/circuits/circuit_spec.rb index c2492e7..049d7fc 100644 --- a/spec/netbox_client_ruby/api/circuits/circuit_spec.rb +++ b/spec/netbox_client_ruby/api/circuits/circuit_spec.rb @@ -5,7 +5,7 @@ RSpec.describe NetboxClientRuby::Circuits::Circuit, faraday_stub: true do let(:id) { 1 } let(:base_url) { '/api/circuits/circuits/' } - let(:request_url) { "#{base_url}#{id}.json" } + let(:request_url) { "#{base_url}#{id}/" } let(:response) { File.read("spec/fixtures/circuits/circuit_#{id}.json") } subject { described_class.new id } diff --git a/spec/netbox_client_ruby/api/circuits/circuit_termination_spec.rb b/spec/netbox_client_ruby/api/circuits/circuit_termination_spec.rb index b36164a..63718ed 100644 --- a/spec/netbox_client_ruby/api/circuits/circuit_termination_spec.rb +++ b/spec/netbox_client_ruby/api/circuits/circuit_termination_spec.rb @@ -5,7 +5,7 @@ RSpec.describe NetboxClientRuby::Circuits::CircuitTermination, faraday_stub: true do let(:id) { 1 } let(:base_url) { '/api/circuits/circuit-terminations/' } - let(:request_url) { "#{base_url}#{id}.json" } + let(:request_url) { "#{base_url}#{id}/" } let(:response) { File.read("spec/fixtures/circuits/circuit-termination_#{id}.json") } subject { described_class.new id } diff --git a/spec/netbox_client_ruby/api/circuits/circuit_type_spec.rb b/spec/netbox_client_ruby/api/circuits/circuit_type_spec.rb index 44686e5..88cce4b 100644 --- a/spec/netbox_client_ruby/api/circuits/circuit_type_spec.rb +++ b/spec/netbox_client_ruby/api/circuits/circuit_type_spec.rb @@ -5,7 +5,7 @@ RSpec.describe NetboxClientRuby::Circuits::CircuitType, faraday_stub: true do let(:id) { 1 } let(:base_url) { '/api/circuits/circuit-types/' } - let(:request_url) { "#{base_url}#{id}.json" } + let(:request_url) { "#{base_url}#{id}/" } let(:response) { File.read("spec/fixtures/circuits/circuit-type_#{id}.json") } subject { described_class.new id } diff --git a/spec/netbox_client_ruby/api/circuits/provider_spec.rb b/spec/netbox_client_ruby/api/circuits/provider_spec.rb index 10d32f3..ac5eb6c 100644 --- a/spec/netbox_client_ruby/api/circuits/provider_spec.rb +++ b/spec/netbox_client_ruby/api/circuits/provider_spec.rb @@ -5,7 +5,7 @@ RSpec.describe NetboxClientRuby::Circuits::Provider, faraday_stub: true do let(:id) { 1 } let(:base_url) { '/api/circuits/providers/' } - let(:request_url) { "#{base_url}#{id}.json" } + let(:request_url) { "#{base_url}#{id}/" } let(:response) { File.read("spec/fixtures/circuits/provider_#{id}.json") } subject { described_class.new id } diff --git a/spec/netbox_client_ruby/api/dcim/console_connection_spec.rb b/spec/netbox_client_ruby/api/dcim/console_connection_spec.rb index afe9de8..6360a93 100644 --- a/spec/netbox_client_ruby/api/dcim/console_connection_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/console_connection_spec.rb @@ -8,7 +8,7 @@ let(:base_url) { '/api/dcim/console-connections/' } let(:response) { File.read("spec/fixtures/dcim/console-connection_#{entity_id}.json") } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } subject { described_class.new entity_id } diff --git a/spec/netbox_client_ruby/api/dcim/console_port_spec.rb b/spec/netbox_client_ruby/api/dcim/console_port_spec.rb index 55bc25a..2ac9412 100644 --- a/spec/netbox_client_ruby/api/dcim/console_port_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/console_port_spec.rb @@ -8,7 +8,7 @@ let(:base_url) { '/api/dcim/console-ports/' } let(:response) { File.read("spec/fixtures/dcim/console-port_#{entity_id}.json") } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } subject { described_class.new entity_id } diff --git a/spec/netbox_client_ruby/api/dcim/console_server_port_spec.rb b/spec/netbox_client_ruby/api/dcim/console_server_port_spec.rb index 5038420..61b9cbd 100644 --- a/spec/netbox_client_ruby/api/dcim/console_server_port_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/console_server_port_spec.rb @@ -8,7 +8,7 @@ let(:base_url) { '/api/dcim/console-server-ports/' } let(:response) { File.read("spec/fixtures/dcim/console-server-port_#{entity_id}.json") } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } subject { described_class.new entity_id } diff --git a/spec/netbox_client_ruby/api/dcim/device_role_spec.rb b/spec/netbox_client_ruby/api/dcim/device_role_spec.rb index c00aa1c..5c401ab 100644 --- a/spec/netbox_client_ruby/api/dcim/device_role_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/device_role_spec.rb @@ -8,7 +8,7 @@ let(:sut) { NetboxClientRuby::DCIM::DeviceRole } let(:base_url) { '/api/dcim/device-roles/' } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } let(:response) { File.read("spec/fixtures/dcim/device-role_#{entity_id}.json") } subject { sut.new entity_id } diff --git a/spec/netbox_client_ruby/api/dcim/device_spec.rb b/spec/netbox_client_ruby/api/dcim/device_spec.rb index 4dde31f..72fb5ab 100644 --- a/spec/netbox_client_ruby/api/dcim/device_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/device_spec.rb @@ -9,7 +9,7 @@ let(:base_url) { '/api/dcim/devices/' } let(:response) { File.read("spec/fixtures/dcim/device_#{entity_id}.json") } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } subject { sut.new entity_id } diff --git a/spec/netbox_client_ruby/api/dcim/device_type_spec.rb b/spec/netbox_client_ruby/api/dcim/device_type_spec.rb index b1b0ff7..90648f1 100644 --- a/spec/netbox_client_ruby/api/dcim/device_type_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/device_type_spec.rb @@ -8,7 +8,7 @@ let(:sut) { NetboxClientRuby::DCIM::DeviceType } let(:base_url) { '/api/dcim/device-types/' } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } let(:response) { File.read("spec/fixtures/dcim/device-type_#{entity_id}.json") } subject { sut.new entity_id } diff --git a/spec/netbox_client_ruby/api/dcim/interface_connection_spec.rb b/spec/netbox_client_ruby/api/dcim/interface_connection_spec.rb index 39f181c..a6e708f 100644 --- a/spec/netbox_client_ruby/api/dcim/interface_connection_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/interface_connection_spec.rb @@ -8,7 +8,7 @@ let(:base_url) { '/api/dcim/interface-connections/' } let(:response) { File.read("spec/fixtures/dcim/interface-connection_#{entity_id}.json") } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } subject { described_class.new entity_id } diff --git a/spec/netbox_client_ruby/api/dcim/interface_spec.rb b/spec/netbox_client_ruby/api/dcim/interface_spec.rb index 411053c..90bc5ba 100644 --- a/spec/netbox_client_ruby/api/dcim/interface_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/interface_spec.rb @@ -8,7 +8,7 @@ let(:sut) { NetboxClientRuby::DCIM::Interface } let(:base_url) { '/api/dcim/interfaces/' } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } let(:response) { File.read("spec/fixtures/dcim/interface_#{entity_id}.json") } subject { sut.new entity_id } diff --git a/spec/netbox_client_ruby/api/dcim/inventory_item_spec.rb b/spec/netbox_client_ruby/api/dcim/inventory_item_spec.rb index 32b4c05..f4be6f0 100644 --- a/spec/netbox_client_ruby/api/dcim/inventory_item_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/inventory_item_spec.rb @@ -8,7 +8,7 @@ let(:sut) { NetboxClientRuby::DCIM::InventoryItem } let(:base_url) { '/api/dcim/inventory-items/' } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } let(:response) { File.read("spec/fixtures/dcim/inventory-item_#{entity_id}.json") } subject { sut.new entity_id } diff --git a/spec/netbox_client_ruby/api/dcim/manufacturer_spec.rb b/spec/netbox_client_ruby/api/dcim/manufacturer_spec.rb index b341b75..0e2e1f3 100644 --- a/spec/netbox_client_ruby/api/dcim/manufacturer_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/manufacturer_spec.rb @@ -7,7 +7,7 @@ let(:expected_name) { 'manu1' } let(:sut) { NetboxClientRuby::DCIM::Manufacturer } let(:base_url) { '/api/dcim/manufacturers/' } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } let(:response) { File.read("spec/fixtures/dcim/manufacturer_#{entity_id}.json") } subject { sut.new entity_id } diff --git a/spec/netbox_client_ruby/api/dcim/platform_spec.rb b/spec/netbox_client_ruby/api/dcim/platform_spec.rb index c0945c6..9421005 100644 --- a/spec/netbox_client_ruby/api/dcim/platform_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/platform_spec.rb @@ -8,7 +8,7 @@ let(:sut) { NetboxClientRuby::DCIM::Platform } let(:base_url) { '/api/dcim/platforms/' } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } let(:response) { File.read("spec/fixtures/dcim/platform_#{entity_id}.json") } subject { sut.new entity_id } diff --git a/spec/netbox_client_ruby/api/dcim/power_connection_spec.rb b/spec/netbox_client_ruby/api/dcim/power_connection_spec.rb index 564d88f..8b6fb6e 100644 --- a/spec/netbox_client_ruby/api/dcim/power_connection_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/power_connection_spec.rb @@ -8,7 +8,7 @@ let(:base_url) { '/api/dcim/power-connections/' } let(:response) { File.read("spec/fixtures/dcim/power-connection_#{entity_id}.json") } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } subject { described_class.new entity_id } diff --git a/spec/netbox_client_ruby/api/dcim/power_outlet_spec.rb b/spec/netbox_client_ruby/api/dcim/power_outlet_spec.rb index 19509d1..56783a3 100644 --- a/spec/netbox_client_ruby/api/dcim/power_outlet_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/power_outlet_spec.rb @@ -7,7 +7,7 @@ let(:expected_name) { '3' } let(:base_url) { '/api/dcim/power-outlets/' } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } let(:response) { File.read("spec/fixtures/dcim/power-outlets_#{entity_id}.json") } subject { described_class.new entity_id } diff --git a/spec/netbox_client_ruby/api/dcim/power_port_spec.rb b/spec/netbox_client_ruby/api/dcim/power_port_spec.rb index 89b5862..186178c 100644 --- a/spec/netbox_client_ruby/api/dcim/power_port_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/power_port_spec.rb @@ -7,7 +7,7 @@ let(:expected_name) { 'psu1' } let(:base_url) { '/api/dcim/power-ports/' } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } let(:response) { File.read("spec/fixtures/dcim/power-ports_#{entity_id}.json") } subject { described_class.new entity_id } diff --git a/spec/netbox_client_ruby/api/dcim/rack_group_spec.rb b/spec/netbox_client_ruby/api/dcim/rack_group_spec.rb index ea2afe4..fbad820 100644 --- a/spec/netbox_client_ruby/api/dcim/rack_group_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/rack_group_spec.rb @@ -8,7 +8,7 @@ let(:base_url) { '/api/dcim/rack-groups/' } let(:response) { File.read("spec/fixtures/dcim/rack-group_#{entity_id}.json") } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } subject { described_class.new entity_id } diff --git a/spec/netbox_client_ruby/api/dcim/rack_reservation_spec.rb b/spec/netbox_client_ruby/api/dcim/rack_reservation_spec.rb index 030e087..6397ab5 100644 --- a/spec/netbox_client_ruby/api/dcim/rack_reservation_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/rack_reservation_spec.rb @@ -8,7 +8,7 @@ let(:base_url) { '/api/dcim/rack-reservations/' } let(:response) { File.read("spec/fixtures/dcim/rack-reservation_#{entity_id}.json") } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } subject { described_class.new entity_id } diff --git a/spec/netbox_client_ruby/api/dcim/rack_role_spec.rb b/spec/netbox_client_ruby/api/dcim/rack_role_spec.rb index d774b9e..1421cc0 100644 --- a/spec/netbox_client_ruby/api/dcim/rack_role_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/rack_role_spec.rb @@ -8,7 +8,7 @@ let(:base_url) { '/api/dcim/rack-roles/' } let(:response) { File.read("spec/fixtures/dcim/rack-role_#{entity_id}.json") } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } subject { described_class.new entity_id } diff --git a/spec/netbox_client_ruby/api/dcim/rack_spec.rb b/spec/netbox_client_ruby/api/dcim/rack_spec.rb index 1c1b375..ac7dd2c 100644 --- a/spec/netbox_client_ruby/api/dcim/rack_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/rack_spec.rb @@ -9,7 +9,7 @@ let(:base_url) { '/api/dcim/racks/' } let(:response) { File.read("spec/fixtures/dcim/rack_#{entity_id}.json") } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } subject { sut.new entity_id } diff --git a/spec/netbox_client_ruby/api/dcim/region_spec.rb b/spec/netbox_client_ruby/api/dcim/region_spec.rb index ad2d883..7529416 100644 --- a/spec/netbox_client_ruby/api/dcim/region_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/region_spec.rb @@ -5,7 +5,7 @@ RSpec.describe NetboxClientRuby::DCIM::Region, faraday_stub: true do let(:region_id) { 1 } let(:response) { File.read("spec/fixtures/dcim/region_#{region_id}.json") } - let(:request_url) { "/api/dcim/regions/#{region_id}.json" } + let(:request_url) { "/api/dcim/regions/#{region_id}/" } subject { NetboxClientRuby::DCIM::Region.new region_id } diff --git a/spec/netbox_client_ruby/api/dcim/site_spec.rb b/spec/netbox_client_ruby/api/dcim/site_spec.rb index 3fd918f..a7ce4c5 100644 --- a/spec/netbox_client_ruby/api/dcim/site_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/site_spec.rb @@ -5,7 +5,7 @@ RSpec.describe NetboxClientRuby::DCIM::Site, faraday_stub: true do let(:site_id) { 1 } let(:response) { File.read("spec/fixtures/dcim/site_#{site_id}.json") } - let(:request_url) { "/api/dcim/sites/#{site_id}.json" } + let(:request_url) { "/api/dcim/sites/#{site_id}/" } subject { NetboxClientRuby::DCIM::Site.new site_id } diff --git a/spec/netbox_client_ruby/api/dcim/virtual_chassis_spec.rb b/spec/netbox_client_ruby/api/dcim/virtual_chassis_spec.rb index 270586b..6296e51 100644 --- a/spec/netbox_client_ruby/api/dcim/virtual_chassis_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/virtual_chassis_spec.rb @@ -8,7 +8,7 @@ let(:base_url) { '/api/dcim/virtual-chassis/' } let(:response) { File.read("spec/fixtures/dcim/virtual-chassis_#{entity_id}.json") } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } subject { described_class.new entity_id } diff --git a/spec/netbox_client_ruby/api/extras/config_context_spec.rb b/spec/netbox_client_ruby/api/extras/config_context_spec.rb index 534e372..75e3add 100644 --- a/spec/netbox_client_ruby/api/extras/config_context_spec.rb +++ b/spec/netbox_client_ruby/api/extras/config_context_spec.rb @@ -5,7 +5,7 @@ RSpec.describe NetboxClientRuby::Extras::ConfigContext, faraday_stub: true do let(:entity_id) { 1 } let(:base_url) { '/api/extras/config-contexts/' } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } let(:response) { File.read("spec/fixtures/extras/config_context_#{entity_id}.json") } subject { NetboxClientRuby::Extras::ConfigContext.new entity_id } diff --git a/spec/netbox_client_ruby/api/extras/journal_entry_spec.rb b/spec/netbox_client_ruby/api/extras/journal_entry_spec.rb index 850a81b..6cdd0e1 100644 --- a/spec/netbox_client_ruby/api/extras/journal_entry_spec.rb +++ b/spec/netbox_client_ruby/api/extras/journal_entry_spec.rb @@ -5,7 +5,7 @@ RSpec.describe NetboxClientRuby::Extras::JournalEntry, faraday_stub: true do let(:entity_id) { 1 } let(:base_url) { '/api/extras/journal-entries/' } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } let(:response) { File.read("spec/fixtures/extras/journal_entry_#{entity_id}.json") } subject { NetboxClientRuby::Extras::JournalEntry.new entity_id } diff --git a/spec/netbox_client_ruby/api/extras/tag_spec.rb b/spec/netbox_client_ruby/api/extras/tag_spec.rb index 1abb787..13d4231 100644 --- a/spec/netbox_client_ruby/api/extras/tag_spec.rb +++ b/spec/netbox_client_ruby/api/extras/tag_spec.rb @@ -5,7 +5,7 @@ RSpec.describe NetboxClientRuby::Extras::Tag, faraday_stub: true do let(:entity_id) { 1 } let(:base_url) { '/api/extras/tags/' } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } let(:response) { File.read("spec/fixtures/extras/tag_#{entity_id}.json") } subject { NetboxClientRuby::Extras::Tag.new entity_id } diff --git a/spec/netbox_client_ruby/api/ipam/aggregate_spec.rb b/spec/netbox_client_ruby/api/ipam/aggregate_spec.rb index 0e239e4..97e3536 100644 --- a/spec/netbox_client_ruby/api/ipam/aggregate_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/aggregate_spec.rb @@ -9,7 +9,7 @@ let(:expected_prefix) { '10.0.0.0/8' } let(:entity_id) { 1 } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } subject { class_under_test.new entity_id } diff --git a/spec/netbox_client_ruby/api/ipam/ip_address_spec.rb b/spec/netbox_client_ruby/api/ipam/ip_address_spec.rb index ee37564..02fef88 100644 --- a/spec/netbox_client_ruby/api/ipam/ip_address_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/ip_address_spec.rb @@ -10,7 +10,7 @@ let(:expected_address) { IPAddress.parse('10.0.0.1/8') } let(:entity_id) { 1 } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } subject { class_under_test.new entity_id } diff --git a/spec/netbox_client_ruby/api/ipam/ip_range_spec.rb b/spec/netbox_client_ruby/api/ipam/ip_range_spec.rb index 5226228..99eac8d 100644 --- a/spec/netbox_client_ruby/api/ipam/ip_range_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/ip_range_spec.rb @@ -11,7 +11,7 @@ let(:expected_start_address) { IPAddress.parse '10.2.0.10/16' } let(:expected_end_address) { IPAddress.parse '10.2.0.20/16' } let(:entity_id) { 3 } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } subject { class_under_test.new entity_id } diff --git a/spec/netbox_client_ruby/api/ipam/prefix_spec.rb b/spec/netbox_client_ruby/api/ipam/prefix_spec.rb index 97960ec..fe81776 100644 --- a/spec/netbox_client_ruby/api/ipam/prefix_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/prefix_spec.rb @@ -10,7 +10,7 @@ let(:expected_prefix) { IPAddress.parse '10.2.0.0/16' } let(:entity_id) { 3 } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } subject { class_under_test.new entity_id } diff --git a/spec/netbox_client_ruby/api/ipam/rir_spec.rb b/spec/netbox_client_ruby/api/ipam/rir_spec.rb index 2ad5c4a..fb59131 100644 --- a/spec/netbox_client_ruby/api/ipam/rir_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/rir_spec.rb @@ -9,7 +9,7 @@ let(:response) { File.read("spec/fixtures/ipam/rir_#{entity_id}.json") } let(:entity_id) { 1 } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } subject { class_under_test.new entity_id } diff --git a/spec/netbox_client_ruby/api/ipam/role_spec.rb b/spec/netbox_client_ruby/api/ipam/role_spec.rb index 1667481..b28d12f 100644 --- a/spec/netbox_client_ruby/api/ipam/role_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/role_spec.rb @@ -9,7 +9,7 @@ let(:response) { File.read("spec/fixtures/ipam/role_#{entity_id}.json") } let(:entity_id) { 1 } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } subject { NetboxClientRuby::IPAM::Role.new entity_id } diff --git a/spec/netbox_client_ruby/api/ipam/service_spec.rb b/spec/netbox_client_ruby/api/ipam/service_spec.rb index d15bca6..eaff5e1 100644 --- a/spec/netbox_client_ruby/api/ipam/service_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/service_spec.rb @@ -8,7 +8,7 @@ let(:response) { File.read("spec/fixtures/ipam/service_#{entity_id}.json") } let(:entity_id) { 1 } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } subject { NetboxClientRuby::IPAM::Service.new entity_id } diff --git a/spec/netbox_client_ruby/api/ipam/vlan_group_spec.rb b/spec/netbox_client_ruby/api/ipam/vlan_group_spec.rb index 21f8030..17c679b 100644 --- a/spec/netbox_client_ruby/api/ipam/vlan_group_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/vlan_group_spec.rb @@ -10,7 +10,7 @@ let(:response) { File.read("spec/fixtures/ipam/vlan-group_#{entity_id}.json") } let(:entity_id) { 1 } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } subject { class_under_test.new entity_id } diff --git a/spec/netbox_client_ruby/api/ipam/vlan_spec.rb b/spec/netbox_client_ruby/api/ipam/vlan_spec.rb index 524a149..e1309a1 100644 --- a/spec/netbox_client_ruby/api/ipam/vlan_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/vlan_spec.rb @@ -9,7 +9,7 @@ let(:response) { File.read("spec/fixtures/ipam/vlan_#{entity_id}.json") } let(:entity_id) { 1 } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } subject { class_under_test.new entity_id } diff --git a/spec/netbox_client_ruby/api/ipam/vrf_spec.rb b/spec/netbox_client_ruby/api/ipam/vrf_spec.rb index 73c9e8c..f0f46a8 100644 --- a/spec/netbox_client_ruby/api/ipam/vrf_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/vrf_spec.rb @@ -9,7 +9,7 @@ let(:response) { File.read("spec/fixtures/ipam/vrf_#{entity_id}.json") } let(:entity_id) { 1 } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } subject { class_under_test.new entity_id } diff --git a/spec/netbox_client_ruby/api/secrets/secret_role_spec.rb b/spec/netbox_client_ruby/api/secrets/secret_role_spec.rb index 5f1b444..9424e1d 100644 --- a/spec/netbox_client_ruby/api/secrets/secret_role_spec.rb +++ b/spec/netbox_client_ruby/api/secrets/secret_role_spec.rb @@ -5,7 +5,7 @@ RSpec.describe NetboxClientRuby::Secrets::SecretRole, faraday_stub: true do let(:secret_id) { 1 } let(:base_url) { '/api/secrets/secret-roles/' } - let(:request_url) { "#{base_url}#{secret_id}.json" } + let(:request_url) { "#{base_url}#{secret_id}/" } let(:response) { File.read("spec/fixtures/secrets/secret-role_#{secret_id}.json") } subject { NetboxClientRuby::Secrets::SecretRole.new secret_id } diff --git a/spec/netbox_client_ruby/api/secrets/secret_spec.rb b/spec/netbox_client_ruby/api/secrets/secret_spec.rb index 35e1922..ade9faf 100644 --- a/spec/netbox_client_ruby/api/secrets/secret_spec.rb +++ b/spec/netbox_client_ruby/api/secrets/secret_spec.rb @@ -5,7 +5,7 @@ RSpec.describe NetboxClientRuby::Secrets::Secret, faraday_stub: true do let(:secret_id) { 1 } let(:base_url) { '/api/secrets/secrets/' } - let(:request_url) { "#{base_url}#{secret_id}.json" } + let(:request_url) { "#{base_url}#{secret_id}/" } let(:response) { File.read("spec/fixtures/secrets/secret_#{secret_id}.json") } subject { NetboxClientRuby::Secrets::Secret.new secret_id } diff --git a/spec/netbox_client_ruby/api/tenancy/tenant_group_spec.rb b/spec/netbox_client_ruby/api/tenancy/tenant_group_spec.rb index f5c6f7b..7665024 100644 --- a/spec/netbox_client_ruby/api/tenancy/tenant_group_spec.rb +++ b/spec/netbox_client_ruby/api/tenancy/tenant_group_spec.rb @@ -5,7 +5,7 @@ RSpec.describe NetboxClientRuby::Tenancy::TenantGroup, faraday_stub: true do let(:region_id) { 1 } let(:base_url) { '/api/tenancy/tenant-groups/' } - let(:request_url) { "#{base_url}#{region_id}.json" } + let(:request_url) { "#{base_url}#{region_id}/" } let(:response) { File.read("spec/fixtures/tenancy/tenant-group_#{region_id}.json") } subject { NetboxClientRuby::Tenancy::TenantGroup.new region_id } diff --git a/spec/netbox_client_ruby/api/tenancy/tenant_spec.rb b/spec/netbox_client_ruby/api/tenancy/tenant_spec.rb index d998726..9aaadff 100644 --- a/spec/netbox_client_ruby/api/tenancy/tenant_spec.rb +++ b/spec/netbox_client_ruby/api/tenancy/tenant_spec.rb @@ -5,7 +5,7 @@ RSpec.describe NetboxClientRuby::Tenancy::Tenant, faraday_stub: true do let(:region_id) { 1 } let(:base_url) { '/api/tenancy/tenants/' } - let(:request_url) { "#{base_url}#{region_id}.json" } + let(:request_url) { "#{base_url}#{region_id}/" } let(:response) { File.read("spec/fixtures/tenancy/tenant_#{region_id}.json") } subject { NetboxClientRuby::Tenancy::Tenant.new region_id } diff --git a/spec/netbox_client_ruby/api/virtualization/cluster_group_spec.rb b/spec/netbox_client_ruby/api/virtualization/cluster_group_spec.rb index d2ec1fd..1579b40 100644 --- a/spec/netbox_client_ruby/api/virtualization/cluster_group_spec.rb +++ b/spec/netbox_client_ruby/api/virtualization/cluster_group_spec.rb @@ -8,7 +8,7 @@ let(:base_url) { '/api/virtualization/cluster-groups/' } let(:response) { File.read("spec/fixtures/virtualization/cluster-group_#{entity_id}.json") } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } subject { described_class.new entity_id } diff --git a/spec/netbox_client_ruby/api/virtualization/cluster_spec.rb b/spec/netbox_client_ruby/api/virtualization/cluster_spec.rb index 72f365b..22d4bb9 100644 --- a/spec/netbox_client_ruby/api/virtualization/cluster_spec.rb +++ b/spec/netbox_client_ruby/api/virtualization/cluster_spec.rb @@ -8,7 +8,7 @@ let(:base_url) { '/api/virtualization/clusters/' } let(:response) { File.read("spec/fixtures/virtualization/cluster_#{entity_id}.json") } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } subject { described_class.new entity_id } diff --git a/spec/netbox_client_ruby/api/virtualization/cluster_type_spec.rb b/spec/netbox_client_ruby/api/virtualization/cluster_type_spec.rb index dc6bbaf..4b0ca9f 100644 --- a/spec/netbox_client_ruby/api/virtualization/cluster_type_spec.rb +++ b/spec/netbox_client_ruby/api/virtualization/cluster_type_spec.rb @@ -8,7 +8,7 @@ let(:base_url) { '/api/virtualization/cluster-types/' } let(:response) { File.read("spec/fixtures/virtualization/cluster-type_#{entity_id}.json") } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } subject { described_class.new entity_id } diff --git a/spec/netbox_client_ruby/api/virtualization/interface_spec.rb b/spec/netbox_client_ruby/api/virtualization/interface_spec.rb index bdd4614..643855f 100644 --- a/spec/netbox_client_ruby/api/virtualization/interface_spec.rb +++ b/spec/netbox_client_ruby/api/virtualization/interface_spec.rb @@ -8,7 +8,7 @@ let(:base_url) { '/api/virtualization/interfaces/' } let(:response) { File.read("spec/fixtures/virtualization/interface_#{entity_id}.json") } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } subject { described_class.new entity_id } diff --git a/spec/netbox_client_ruby/api/virtualization/virtual_machine_spec.rb b/spec/netbox_client_ruby/api/virtualization/virtual_machine_spec.rb index b7d2b28..3cc5450 100644 --- a/spec/netbox_client_ruby/api/virtualization/virtual_machine_spec.rb +++ b/spec/netbox_client_ruby/api/virtualization/virtual_machine_spec.rb @@ -8,7 +8,7 @@ let(:base_url) { '/api/virtualization/virtual-machines/' } let(:response) { File.read("spec/fixtures/virtualization/virtual-machine_#{entity_id}.json") } - let(:request_url) { "#{base_url}#{entity_id}.json" } + let(:request_url) { "#{base_url}#{entity_id}/" } subject { described_class.new entity_id }