Skip to content

Instantly share code, notes, and snippets.

@tkruse
Created December 14, 2015 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tkruse/35008bf130fc712317aa to your computer and use it in GitHub Desktop.
Save tkruse/35008bf130fc712317aa to your computer and use it in GitHub Desktop.
{"apiVersion":"2.4-SNAPSHOT","apis":[{"description":"initializeGateway","operations":[{"method":"POST","summary":"initializeGateway","notes":"initializeGateway","nickname":"initializeGateway","produces":["*/*"],"consumes":["application/json"],"parameters":[{"allowMultiple":false,"defaultValue":"","description":"unit","name":"body","paramType":"body","type":"NewGatewayJsonIn","required":false}],"responseMessages":[{"code":200,"message":null,"responseModel":"NewGatewayJsonOut"},{"code":400,"message":"Invalid mac address / cipher type / gateway category / gateway type","responseModel":"Void"},{"code":401,"message":"Operation not allowed","responseModel":"Void"},{"code":404,"message":"Unknown business unit key / location","responseModel":"Void"}],"deprecated":"false","type":"NewGatewayJsonOut"}],"path":"/factory/gateway/initialize"}],"basePath":"/api","consumes":["application/json"],"models":{"NewGatewayJsonOut":{"description":"","id":"NewGatewayJsonOut","properties":{"serialNumber":{"description":"unique lifelong id of gateway","required":true,"type":"string"},"activationKey":{"description":"","required":true,"type":"string"},"gatewayCertificate":{"description":"initial certificate to connect gateway to device Management","required":true,"type":"string"},"openVPNCertificate":{"description":"initial certificate to open OpenVPN connection","required":true,"type":"string"},"privateKey":{"description":"","required":true,"type":"string"},"webUIPassword":{"description":"","required":true,"type":"string"}}},"NewGatewayJsonIn":{"description":"","id":"NewGatewayJsonIn","properties":{"serialNumber":{"description":"unique lifelong id of gateway","required":true,"type":"string"},"businessUnitKey":{"description":"","required":true,"type":"string"},"locationKey":{"description":"","required":true,"type":"string"},"cipherType":{"description":"one of the currently allowed ciphers for this gateway type and category","required":true,"type":"string"},"gatewayCategoryId":{"description":"","required":true,"format":"int64","type":"integer"},"gatewayTypeId":{"description":"","required":true,"format":"int64","type":"integer"},"macAddress":{"description":"","required":true,"type":"string"}}}},"produces":["*/*"],"resourcePath":"/factory/gateway/initialize","swaggerVersion":"1.2"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment