@RestController
@CrossOrigin(origins="*")
@ConditionalOnProperty(value="openaire.exporter.enable.community",
havingValue="true")
public class ContextApiController
extends AbstractExporterController
AbstractExporterController.ErrorMessage| Constructor and Description |
|---|
ContextApiController() |
| Modifier and Type | Method and Description |
|---|---|
List<IISConfigurationEntry> |
getIISConfiguration(String contextId) |
List<CategorySummary> |
listCategories(String contextId,
boolean all) |
List<ConceptSummary> |
listConcepts(String categoryId,
boolean all) |
List<ContextSummary> |
listContexts(Set<CommunityType> type) |
List<ConceptSummary> |
listSubConcepts(String conceptId,
boolean all) |
handle400, handle404, handle500, prepareResponse@RequestMapping(value="/contexts",
produces="application/json",
method=GET)
public List<ContextSummary> listContexts(@RequestParam(required=false)
Set<CommunityType> type)
throws CommunityException
CommunityException@RequestMapping(value="/context/{contextId}",
produces="application/json",
method=GET)
public List<CategorySummary> listCategories(@PathVariable
String contextId,
@RequestParam(required=false,defaultValue="false")
boolean all)
throws CommunityException
CommunityException@RequestMapping(value="/context/iis/conf/{contextId}",
produces="application/json",
method=GET)
public List<IISConfigurationEntry> getIISConfiguration(@PathVariable
String contextId)
throws CommunityException
CommunityException@RequestMapping(value="/context/category/{categoryId}",
produces="application/json",
method=GET)
public List<ConceptSummary> listConcepts(@PathVariable
String categoryId,
@RequestParam(required=false,defaultValue="false")
boolean all)
throws CommunityException
CommunityException@RequestMapping(value="/context/category/concept/{conceptId}",
produces="application/json",
method=GET)
public List<ConceptSummary> listSubConcepts(@PathVariable
String conceptId,
@RequestParam(required=false,defaultValue="false")
boolean all)
throws CommunityException
CommunityExceptionCopyright © 2025. All rights reserved.