You can reference it directly { "Ref" : "ApiGatewayRestApi" }.
See this question I asked before. [Fixed] How do i get/reference api gateway restapi id in serverless.yml?
This is the way to get api gateway id. You need use it and add more path (region, etc) to form the full api gateway url