Updated route url to /api/v0/devices/hostname/vlans

This commit is contained in:
laf
2014-10-04 01:59:45 +01:00
parent c55c1a71ba
commit d57c0614bf
2 changed files with 3 additions and 5 deletions

View File

@@ -237,7 +237,7 @@ if ($_SESSION['userlevel'] == '10')
<tr>
<td>/api</td>
<td>/v0</td>
<td>/vlans/$hostname</td>
<td>/devices/$hostname/vlans</td>
<td>
<ul class="list-unstyled">
<li>hostname = the hostname to list vlans for</li>
@@ -248,7 +248,7 @@ if ($_SESSION['userlevel'] == '10')
</td>
</tr>
<tr>
<td colspan="5"><code>curl -X DELETE -H "Content-Type: application/json" -H "X-Auth-Token: 91c60e737e342c205be5bba8e2954d27" \<br/> "https://librenms.example.com/api/v0/vlans/localhost"</code></td>
<td colspan="5"><code>curl -X DELETE -H "Content-Type: application/json" -H "X-Auth-Token: 91c60e737e342c205be5bba8e2954d27" \<br/> "https://librenms.example.com/api/v0/devices/localhost/vlans"</code></td>
</tr>
</table>
</div>