 
         postData = createPostData(provider_name, resource_name, params)
 
-        @askConfigApiToCreateResource(provider, postData).then(
+        # TODO: Check that the method accepts provider.iud
+        @askConfigApiToCreateResource(provider.uid, postData).then(
           () =>
             @saveRamlToFile()
           , (error) ->


  resourcesForSandbox: () =>
    console.log "Fetching list of resources for your SandboxDB..."
    @getProviderByName('appgyver_sandbox').then (providerUid) =>
      @config_api.get("/app/#{@getAppId()}/service_providers/#{providerUid}/resources.json", (err, req, res, obj) =>
        if err?
          Help.error()
          console.log(


    @getProviderByName(provider_name).then (provider) =>

      console.log "Removing provider #{provider.name}..."
      @config_api.del("/app/#{@getAppId()}/service_providers/#{provider.uid}.json", (err, req, res, obj) =>
        console.log 'Provider was successfully removed'
        @config_api.close()
        deferred.resolve()
