Class: Dcm4chee::Api::V1::TrashesController

Inherits:
BaseController show all
Defined in:
app/controllers/dcm4chee/api/v1/trashes_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject

Clean up the trash.

Examples:

# Request
DELETE /api/trash HTTP/1.1
Accept: application/vnd.menglifang.org; version=1

# Response
HTTP/1.1 200 OK


15
16
17
18
19
# File 'app/controllers/dcm4chee/api/v1/trashes_controller.rb', line 15

def destroy
  Dcm4chee.content_edit_service.empty_trash

  head :ok
end