Network REST API fix

Fixed REST API in the network module.

This is only the backward compatible API which was already in 1.2, there are no new features (it does not support bridges and VLANs)