Skip to content

Commit

Permalink
Fix README since last change in NetboxAPI url
Browse files Browse the repository at this point in the history
  • Loading branch information
aruhier committed Jun 7, 2017
1 parent 44adec9 commit 84c7fdf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,37 +43,37 @@ netbox_api = NetboxAPI(
Then use multiple available methods to interact with the api:

```python
>>> netbox_api.get("api/dcim/sites/1/racks/")
>>> netbox_api.get("dcim/sites/1/racks/")
{
"id": 1,
"name": "Some rack",
}

>>> netbox_api.post("api/dcim/device-roles/", json={"name": "test", …},)
>>> netbox_api.post("dcim/device-roles/", json={"name": "test", …},)
{
"id": 1,
"name": "test",
}

>>> netbox_api.patch("api/dcim/device-roles/", json={"slug": "test"},)
>>> netbox_api.patch("dcim/device-roles/", json={"slug": "test"},)
{
"id": 1,
"name": "test",
"slug": "test",
}

>>> netbox_api.put("api/dcim/device-roles/1/", json={"name": "test", …},)
>>> netbox_api.put("dcim/device-roles/1/", json={"name": "test", …},)
{
"id": 1,
"name": "test",
"slug": "test",
}

>>> netbox_api.delete("api/dcim/sites/1/")
>>> netbox_api.delete("dcim/sites/1/")
<<Response [204]>>
```

Expand Down

1 comment on commit 84c7fdf

@Taeclimax
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good

Please sign in to comment.