added aliases to Community APIs

This commit is contained in:
Michele Artini 2024-02-26 14:59:57 +01:00
parent 90bb2effc9
commit a9458520e1
1 changed files with 301 additions and 291 deletions

View File

@ -303,7 +303,9 @@ public class CommunityApiController extends AbstractExporterController {
} }
} }
@RequestMapping(value = "/community/{id}/contentproviders", produces = { @RequestMapping(value = {
"/community/{id}/contentproviders", "/community/{id}/datasources"
}, produces = {
"application/json" "application/json"
}, method = RequestMethod.GET) }, method = RequestMethod.GET)
@Operation(summary = "get the list of content providers associated to a given community", description = "get the list of content providers associated to a given community", tags = { @Operation(summary = "get the list of content providers associated to a given community", description = "get the list of content providers associated to a given community", tags = {
@ -324,7 +326,9 @@ public class CommunityApiController extends AbstractExporterController {
} }
} }
@RequestMapping(value = "/community/{id}/contentproviders", produces = { @RequestMapping(value = {
"/community/{id}/contentproviders", "/community/{id}/datasources"
}, produces = {
"application/json" "application/json"
}, method = RequestMethod.POST) }, method = RequestMethod.POST)
@Operation(summary = "associate a content provider to the community", description = "associate a content provider to the community", tags = { @Operation(summary = "associate a content provider to the community", description = "associate a content provider to the community", tags = {
@ -349,7 +353,9 @@ public class CommunityApiController extends AbstractExporterController {
} }
} }
@RequestMapping(value = "/community/{id}/contentproviders", produces = { @RequestMapping(value = {
"/community/{id}/contentproviders", "/community/{id}/datasources"
}, produces = {
"application/json" "application/json"
}, method = RequestMethod.DELETE) }, method = RequestMethod.DELETE)
@Operation(summary = "remove the association between a content provider and the community", description = "remove the association between a content provider and the community", tags = { @Operation(summary = "remove the association between a content provider and the community", description = "remove the association between a content provider and the community", tags = {
@ -372,7 +378,9 @@ public class CommunityApiController extends AbstractExporterController {
} }
} }
@RequestMapping(value = "/community/{id}/contentprovidersList", produces = { @RequestMapping(value = {
"/community/{id}/contentprovidersList", "/community/{id}/datasourcesList"
}, produces = {
"application/json" "application/json"
}, method = RequestMethod.POST) }, method = RequestMethod.POST)
@Operation(summary = "associate a list of content providers to the community", description = "associate a list of content providers to the community", tags = { @Operation(summary = "associate a list of content providers to the community", description = "associate a list of content providers to the community", tags = {
@ -397,7 +405,9 @@ public class CommunityApiController extends AbstractExporterController {
} }
} }
@RequestMapping(value = "/community/{id}/contentprovidersList", produces = { @RequestMapping(value = {
"/community/{id}/contentprovidersList", "/community/{id}/datasourcesList"
}, produces = {
"application/json" "application/json"
}, method = RequestMethod.DELETE) }, method = RequestMethod.DELETE)
@Operation(summary = "remove a list of content providers from the community", description = "remove a list of content providers from the community", tags = { @Operation(summary = "remove a list of content providers from the community", description = "remove a list of content providers from the community", tags = {