Skip to content

Commit 84c7fdf

Browse files
committed
Fix README since last change in NetboxAPI url
1 parent 44adec9 commit 84c7fdf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,37 +43,37 @@ netbox_api = NetboxAPI(
4343
Then use multiple available methods to interact with the api:
4444

4545
```python
46-
>>> netbox_api.get("api/dcim/sites/1/racks/")
46+
>>> netbox_api.get("dcim/sites/1/racks/")
4747
{
4848
"id": 1,
4949
"name": "Some rack",
5050
5151
}
5252

53-
>>> netbox_api.post("api/dcim/device-roles/", json={"name": "test", …},)
53+
>>> netbox_api.post("dcim/device-roles/", json={"name": "test", …},)
5454
{
5555
"id": 1,
5656
"name": "test",
5757
5858
}
5959

60-
>>> netbox_api.patch("api/dcim/device-roles/", json={"slug": "test"},)
60+
>>> netbox_api.patch("dcim/device-roles/", json={"slug": "test"},)
6161
{
6262
"id": 1,
6363
"name": "test",
6464
"slug": "test",
6565
6666
}
6767

68-
>>> netbox_api.put("api/dcim/device-roles/1/", json={"name": "test", …},)
68+
>>> netbox_api.put("dcim/device-roles/1/", json={"name": "test", …},)
6969
{
7070
"id": 1,
7171
"name": "test",
7272
"slug": "test",
7373
7474
}
7575

76-
>>> netbox_api.delete("api/dcim/sites/1/")
76+
>>> netbox_api.delete("dcim/sites/1/")
7777
<<Response [204]>>
7878
```
7979

0 commit comments

Comments
 (0)