@ Help ( help = "Creates a new service" ) public String create ( String serviceName , List < String > roles ) throws SDKException { HashMap < String , Object > requestBody = new HashMap <> ( ) ; requestBody . put ( "name" , serviceName ) ; requestBody . put ( "roles" , roles ) ; return new String ( ( byte [ ] ) requestPost ( "create" , requestBody , MediaType . APPLICATION_OCTET_STREAM_VALUE , MediaType . APPLICATION_JSON_VALUE ) ) ; }
Creates a new service .