File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -43,37 +43,37 @@ netbox_api = NetboxAPI(
43
43
Then use multiple available methods to interact with the api:
44
44
45
45
``` python
46
- >> > netbox_api.get(" api/ dcim/sites/1/racks/" )
46
+ >> > netbox_api.get(" dcim/sites/1/racks/" )
47
47
{
48
48
" id" : 1 ,
49
49
" name" : " Some rack" ,
50
50
…
51
51
}
52
52
53
- >> > netbox_api.post(" api/ dcim/device-roles/" , json = {" name" : " test" , …},)
53
+ >> > netbox_api.post(" dcim/device-roles/" , json = {" name" : " test" , …},)
54
54
{
55
55
" id" : 1 ,
56
56
" name" : " test" ,
57
57
…
58
58
}
59
59
60
- >> > netbox_api.patch(" api/ dcim/device-roles/" , json = {" slug" : " test" },)
60
+ >> > netbox_api.patch(" dcim/device-roles/" , json = {" slug" : " test" },)
61
61
{
62
62
" id" : 1 ,
63
63
" name" : " test" ,
64
64
" slug" : " test" ,
65
65
…
66
66
}
67
67
68
- >> > netbox_api.put(" api/ dcim/device-roles/1/" , json = {" name" : " test" , …},)
68
+ >> > netbox_api.put(" dcim/device-roles/1/" , json = {" name" : " test" , …},)
69
69
{
70
70
" id" : 1 ,
71
71
" name" : " test" ,
72
72
" slug" : " test" ,
73
73
…
74
74
}
75
75
76
- >> > netbox_api.delete(" api/ dcim/sites/1/" )
76
+ >> > netbox_api.delete(" dcim/sites/1/" )
77
77
<< Response [204 ]>>
78
78
```
79
79
You can’t perform that action at this time.
0 commit comments