GatewaySerializer

class apirest.gateway_serializers.GatewaySerializer(instance=None, data=<class rest_framework.fields.empty>, **kwargs)

Read:

CURL Usage:

curl -u username:password -H 'Accept: application/json' http://HOSTNAME_IP/rest-api/gateway/

curl -u username:password -H 'Accept: application/json' http://HOSTNAME_IP/rest-api/gateway/%gateway-id%/

Response:

{
    "count": 1,
    "next": null,
    "previous": null,
    "results": [
        {
            "url": "http://HOSTNAME_IP/rest-api/gateway/1/",
            "name": "Default_Gateway"
        }
    ]
}