strongloop-community / loopback-sdk-android

Android Client SDK for the LoopBack framework.
Other
67 stars 45 forks source link

Add a method to delete a Container? #79

Open hideya opened 9 years ago

hideya commented 9 years ago

Maybe I'm overlooking but I don't find any way to delete a Container. I'd expect Container class to have destroy method, but I don't find any. How can I delete a Container (= remove the directory on the server that is associated with the container) ?

raymondfeng commented 9 years ago

The backend has the following REST api to delete a container:

https://github.com/strongloop/loopback-component-storage/blob/master/lib/storage-service.js#L277-L283

It should be mapped to DELETE /api/containers/<container>

hideya commented 9 years ago

Thanks, @raymondfeng. I see. I guess the SDK just haven't implemented the destroy method that is mapped to the REST API. I think it better be fixed.

bajtos commented 9 years ago

:+1:

I agree the destroy method should be added to the API.