Added /vlans/:hostname route to the API

This commit is contained in:
laf
2014-10-01 20:49:34 +01:00
parent 10e24653be
commit b8a2b7c291
3 changed files with 51 additions and 0 deletions

View File

@ -231,6 +231,25 @@ if ($_SESSION['userlevel'] == '10')
<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/devices/localhost"</code></td>
</tr>
<tr class="success">
<td colspan="5"><strong>List VLANs</strong></td>
</tr>
<tr>
<td>/api</td>
<td>/v0</td>
<td>/vlans/$hostname</td>
<td>
<ul class="list-unstyled">
<li>hostname = the hostname to list vlans for</li>
</ul>
</td>
<td>
JSON
</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>
</tr>
</table>
</div>
</div>