public void create ( ) throws APIException { CreateDirectoryRequest reqObj = new CreateDirectoryRequest ( this . getName ( ) , null ) ; Gson gson = new Gson ( ) ; JsonElement inputJson = gson . toJsonTree ( reqObj ) ; String url = this . getParent ( ) . getUrl ( ) ; HttpResponse response = this . client . post ( url , new StringEntity ( inputJson . toString ( ) , ContentType . APPLICATION_JSON ) ) ; HttpClientHelpers . throwIfNotOk ( response ) ; }
Creates this directory via the Algorithmia Data API