@RestController
@CrossOrigin(origins="*")
@ConditionalOnProperty(value="openaire.exporter.enable.community",
havingValue="true")
public class CommunityApiController
extends AbstractExporterController
AbstractExporterController.ErrorMessage| Constructor and Description |
|---|
CommunityApiController() |
handle400, handle404, handle500, prepareResponse@GetMapping(value="/community/communities") public List<CommunitySummary> listCommunities() throws CommunityException
CommunityException@PostMapping(value="/community/") public CommunityDetails addCommunity(@RequestBody CommunityDetails details) throws CommunityException
CommunityException@GetMapping(value="/community/{id}")
public CommunityDetails getCommunity(@PathVariable
String id,
@RequestParam(required=false)
Boolean includeSubcommunities)
throws CommunityException
CommunityException@PostMapping(value="/community/{id}")
public CommunityDetails updateCommunity(@PathVariable
String id,
@RequestBody
CommunityWritableProperties properties)
throws CommunityException
CommunityException@DeleteMapping(value="/community/{id}")
public void deleteCommunity(@PathVariable
String id)
throws CommunityException
CommunityException@PostMapping(value="/community/{id}/subjects")
public CommunityDetails addCommunitySubjects(@PathVariable
String id,
@RequestBody
String[] subjects)
throws CommunityException
CommunityException@DeleteMapping(value="/community/{id}/subjects")
public CommunityDetails removeCommunitySubjects(@PathVariable
String id,
@RequestBody
String[] subjects)
throws CommunityException
CommunityException@PostMapping(value="/community/{id}/fos")
public CommunityDetails addCommunityFOS(@PathVariable
String id,
@RequestBody
String[] subjects)
throws CommunityException
CommunityException@DeleteMapping(value="/community/{id}/fos")
public CommunityDetails removeCommunityFOS(@PathVariable
String id,
@RequestBody
String[] subjects)
throws CommunityException
CommunityException@PostMapping(value="/community/{id}/sdg")
public CommunityDetails addCommunitySDG(@PathVariable
String id,
@RequestBody
String[] subjects)
throws CommunityException
CommunityException@DeleteMapping(value="/community/{id}/sdg")
public CommunityDetails removeCommunitySDG(@PathVariable
String id,
@RequestBody
String[] subjects)
throws CommunityException
CommunityException@PostMapping(value="/community/{id}/advancedConstraint")
public CommunityDetails addCommunityAdvancedConstraint(@PathVariable
String id,
@RequestBody
SelectionCriteria advancedConstraint)
throws CommunityException
CommunityException@DeleteMapping(value="/community/{id}/advancedConstraint")
public CommunityDetails removeCommunityAdvancedConstraint(@PathVariable
String id)
throws CommunityException
CommunityException@PostMapping(value="/community/{id}/removeConstraint")
public CommunityDetails addCommunityRemoveConstraint(@PathVariable
String id,
@RequestBody
SelectionCriteria removeConstraint)
throws CommunityException
CommunityException@DeleteMapping(value="/community/{id}/removeConstraint")
public CommunityDetails removeCommunityRemoveConstraint(@PathVariable
String id)
throws CommunityException
CommunityException@PostMapping(value="/community/{id}/zenodocommunities")
public CommunityDetails addCommunityZenodoCommunity(@PathVariable
String id,
@RequestParam(required=false,defaultValue="false")
boolean main,
@RequestParam
String zenodocommunity)
throws CommunityException
CommunityException@DeleteMapping(value="/community/{id}/zenodocommunities")
public CommunityDetails removeCommunityZenodoCommunity(@PathVariable
String id,
@RequestParam(required=false,defaultValue="false")
boolean main,
@RequestParam
String zenodocommunity)
throws CommunityException
CommunityException@GetMapping(value="/community/{id}/projects/{page}/{size}")
public org.springframework.data.domain.Page<CommunityProjectExtended> getCommunityProjects(@PathVariable
String id,
@PathVariable
Integer page,
@PathVariable
Integer size,
@RequestParam(required=false)
String funder,
@RequestParam(required=false)
String searchFilter,
@RequestParam(required=false)
String orderBy)
throws CommunityException
CommunityException@PostMapping(value="/community/{id}/projects")
public CommunityProject addCommunityProject(@PathVariable
String id,
@RequestBody
CommunityProject project)
throws CommunityException
CommunityException@DeleteMapping(value="/community/{id}/projects")
public void deleteCommunityProject(@PathVariable
String id,
@RequestParam
String projectId)
throws CommunityException
CommunityException@PostMapping(value="/community/{id}/projectList")
public CommunityProject[] addCommunityProjectList(@PathVariable
String id,
@RequestBody
CommunityProject[] projects)
throws CommunityException
CommunityException@DeleteMapping(value="/community/{id}/projectList")
public void deleteCommunityProjectList(@PathVariable
String id,
@RequestBody
String[] projectIdList)
throws CommunityException
CommunityException@GetMapping(value="/community/{id}/funders")
public List<String> getCommunityFunders(@PathVariable
String id)
throws CommunityException
CommunityException@GetMapping(value="/community/{id}/datasources")
public List<CommunityDatasourceExtended> getCommunityDatasources(@PathVariable
String id,
@RequestParam(required=false)
Boolean deposit,
@RequestParam(required=false)
Boolean includeSubcommunities)
throws CommunityException
CommunityException@PostMapping(value="/community/{id}/datasources")
public CommunityDatasourceExtended addCommunityDatasource(@PathVariable
String id,
@RequestBody
CommunityDatasource datasource)
throws CommunityException
CommunityException@PostMapping(value="/community/{id}/datasources/deposit")
public CommunityDatasourceExtended addCommunityDatasourceDeposit(@PathVariable
String id,
@RequestBody
DepositionInfo info)
throws CommunityException
CommunityException@DeleteMapping(value="/community/{id}/datasources")
public void removeCommunityDatasource(@PathVariable
String id,
@RequestParam
String dsId)
throws CommunityException
CommunityException@PostMapping(value="/community/{id}/datasourcesList")
public List<CommunityDatasourceExtended> addCommunityDatasourcesList(@PathVariable
String id,
@RequestBody
CommunityDatasource[] dsList)
throws CommunityException
CommunityException@DeleteMapping(value="/community/{id}/datasourcesList")
public void deleteCommunityDatasourcesList(@PathVariable
String id,
@RequestBody
String[] dsIdList)
throws CommunityException
CommunityException@GetMapping(value="/community/{id}/organizations")
public List<CommunityOrganization> getCommunityOrganizations(@PathVariable
String id)
throws CommunityException
CommunityException@PostMapping(value="/community/{id}/organizations")
public CommunityOrganization addCommunityOrganization(@PathVariable
String id,
@RequestBody
CommunityOrganization organization)
throws CommunityException
CommunityException@PostMapping(value="/community/{id}/organizationList")
public CommunityOrganization[] addCommunityOrganizationList(@PathVariable
String id,
@RequestBody
CommunityOrganization[] orgs)
throws CommunityException
CommunityException@DeleteMapping(value="/community/{id}/organizations")
public void removeCommunityOrganization(@PathVariable
String id,
@RequestParam
String organizationName)
throws CommunityException
CommunityException@DeleteMapping(value="/community/{id}/organizationList")
public void removeCommunityOrganizationList(@PathVariable
String id,
@RequestBody
String[] orgNames)
throws CommunityException
CommunityException@GetMapping(value="/community/{id}/propagationOrganizations")
public Set<CommunityPropagationOrganization> getPropagationOrganizationsForCommunity(@PathVariable
String id)
throws CommunityException
CommunityException@PostMapping(value="/community/{id}/propagationOrganizations")
public Set<CommunityPropagationOrganization> addPropagationOrganizationForCommunity(@PathVariable
String id,
@RequestParam
String organizationId,
@RequestParam(required=false)
String description,
@RequestParam(required=false)
Boolean subscribed)
throws CommunityException
CommunityException@DeleteMapping(value="/community/{id}/propagationOrganizations")
public Set<CommunityPropagationOrganization> removePropagationOrganizationForCommunity(@PathVariable
String id,
@RequestParam
String organizationId)
throws CommunityException
CommunityExceptionCopyright © 2025. All rights reserved.