param type

This commit is contained in:
Michele Artini 2023-07-05 10:49:07 +02:00
parent 7d91da1099
commit c40eeee1d1
1 changed files with 3 additions and 3 deletions

View File

@ -528,7 +528,7 @@ public class CommunityApiController {
public CommunityDetails addCommunityZenodoCommunity(
@PathVariable final String id,
@RequestParam(required = false, defaultValue = "false") final boolean main,
@RequestBody final String zenodocommunity) throws CommunityException {
@RequestParam final String zenodocommunity) throws CommunityException {
return communityService.addCommunityZenodoCommunity(id, zenodocommunity, main);
@ -548,9 +548,9 @@ public class CommunityApiController {
public void removeCommunityZenodoCommunity(
@PathVariable final String id,
@RequestParam(required = false, defaultValue = "false") final boolean main,
@RequestBody final String zenodoCommId) throws CommunityException {
@RequestParam final String zenodocommunity) throws CommunityException {
communityService.removeCommunityZenodoCommunity(id, zenodoCommId, main);
communityService.removeCommunityZenodoCommunity(id, zenodocommunity, main);
}
@RequestMapping(value = "/community/{zenodoId}/openairecommunities", produces = {