mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Merge pull request #2467 from atmire/DS-4298_upload-endpoint-uuid-broken
[DS-4298] changed the PathVariable for the upload method with uuid to…
This commit is contained in:
@@ -566,8 +566,8 @@ public class RestResourceController implements InitializingBean {
|
||||
* the api category
|
||||
* @param model
|
||||
* the rest model that identify the REST resource collection
|
||||
* @param id
|
||||
* the id of the specific rest resource
|
||||
* @param uuid
|
||||
* the uuid of the specific rest resource
|
||||
* @param uploadfile
|
||||
* the file to upload
|
||||
* @return the created resource
|
||||
@@ -578,11 +578,11 @@ public class RestResourceController implements InitializingBean {
|
||||
public <ID extends Serializable> ResponseEntity<ResourceSupport> upload(HttpServletRequest request,
|
||||
@PathVariable String apiCategory,
|
||||
@PathVariable String model,
|
||||
@PathVariable UUID id,
|
||||
@PathVariable UUID uuid,
|
||||
@RequestParam("file") MultipartFile
|
||||
uploadfile)
|
||||
throws HttpRequestMethodNotSupportedException {
|
||||
return uploadInternal(request, apiCategory, model, id, uploadfile);
|
||||
return uploadInternal(request, apiCategory, model, uuid, uploadfile);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user