swe574-2015fall-group2 / core_repo

0 stars 2 forks source link

Resources - Download service #256

Open ssurucu opened 8 years ago

ssurucu commented 8 years ago

There is no service for downloading an internal resource. It can be handled by including a "url" in query resource service, as an another solution to this problem.

barisozcanli commented 8 years ago

Download link is as below : http://localhost:9000/v1/resource/downloadResource?resourceId=5682d0c4d4c69699ca0bd5b1&authToken=wert

I'll put this link in resource entity as an attribute named "url" soon

barisozcanli commented 8 years ago

@ssurucu is it okey for you, using the download link as above? you need to put the resourceId and authToken as parameters combined with this url : http://localhost:9000/v1/resource/downloadResource

ssurucu commented 8 years ago

@barisozcanli I tried it downloads but the file size is always 0kb and it does not open the file.