Class CategoryResource
java.lang.Object
org.odpi.openmetadata.accessservices.glossaryview.server.spring.CategoryResource
@RestController
@Validated
@RequestMapping("/servers/{serverName}/open-metadata/access-services/glossary-view/users/{userId}")
public class CategoryResource
extends Object
Spring Rest Controller defining 'GlossaryCategory' oriented endpoints
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.odpi.openmetadata.accessservices.glossaryview.rest.GlossaryViewEntityDetailResponsegetAllCategories(String serverName, String userId, @PositiveOrZero Integer from, @PositiveOrZero @Max(1000L) Integer size) Extract all categoriesorg.odpi.openmetadata.accessservices.glossaryview.rest.GlossaryViewEntityDetailResponsegetCategoriesViaCategoryAnchorRelationships(String serverName, String userId, @NotBlank String glossaryGUID, @PositiveOrZero Integer from, @PositiveOrZero @Max(1000L) Integer size) Extract category definitions for the given glossary GUID via the 'CategoryAnchor' type relationshipsorg.odpi.openmetadata.accessservices.glossaryview.rest.GlossaryViewEntityDetailResponsegetCategory(String serverName, String userId, @NotBlank String categoryGUID) Extract the category definition for the given GUIDorg.odpi.openmetadata.accessservices.glossaryview.rest.GlossaryViewEntityDetailResponsegetExternalGlossaryLinks(String serverName, String userId, @NotBlank String categoryGUID, @PositiveOrZero Integer from, @PositiveOrZero @Max(1000L) Integer size) Extract external glossary link definitions for the given categoryorg.odpi.openmetadata.accessservices.glossaryview.rest.GlossaryViewEntityDetailResponsegetSubcategories(String serverName, String userId, @NotBlank String categoryGUID, @PositiveOrZero Integer from, @PositiveOrZero @Max(1000L) Integer size) Extract subcategory definitions for the given GUID
-
Constructor Details
-
CategoryResource
public CategoryResource()Called by Spring
-
-
Method Details
-
getAllCategories
@GetMapping(path="/categories") public org.odpi.openmetadata.accessservices.glossaryview.rest.GlossaryViewEntityDetailResponse getAllCategories(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @RequestParam(name="from",defaultValue="0") @PositiveOrZero @PositiveOrZero Integer from, @RequestParam(name="size",defaultValue="100") @PositiveOrZero @Max(1000L) @PositiveOrZero @Max(1000L) Integer size) Extract all categories- Parameters:
serverName- instance to calluserId- calling userfrom- fromsize- size- Returns:
- categories
-
getCategory
@GetMapping(path="/categories/{categoryGUID}") public org.odpi.openmetadata.accessservices.glossaryview.rest.GlossaryViewEntityDetailResponse getCategory(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PathVariable("categoryGUID") @NotBlank @NotBlank String categoryGUID) Extract the category definition for the given GUID- Parameters:
serverName- instance to calluserId- calling usercategoryGUID- category GUID- Returns:
- a category
-
getCategoriesViaCategoryAnchorRelationships
@GetMapping(path="/glossaries/{glossaryGUID}/categories") public org.odpi.openmetadata.accessservices.glossaryview.rest.GlossaryViewEntityDetailResponse getCategoriesViaCategoryAnchorRelationships(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PathVariable("glossaryGUID") @NotBlank @NotBlank String glossaryGUID, @RequestParam(name="from",defaultValue="0") @PositiveOrZero @PositiveOrZero Integer from, @RequestParam(name="size",defaultValue="100") @PositiveOrZero @Max(1000L) @PositiveOrZero @Max(1000L) Integer size) Extract category definitions for the given glossary GUID via the 'CategoryAnchor' type relationships- Parameters:
serverName- instance to calluserId- calling userglossaryGUID- glossary GUIDfrom- fromsize- size- Returns:
- categories
-
getSubcategories
@GetMapping(path="/categories/{categoryGUID}/subcategories") public org.odpi.openmetadata.accessservices.glossaryview.rest.GlossaryViewEntityDetailResponse getSubcategories(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PathVariable("categoryGUID") @NotBlank @NotBlank String categoryGUID, @RequestParam(name="from",defaultValue="0") @PositiveOrZero @PositiveOrZero Integer from, @RequestParam(name="size",defaultValue="100") @PositiveOrZero @Max(1000L) @PositiveOrZero @Max(1000L) Integer size) Extract subcategory definitions for the given GUID- Parameters:
serverName- instance to calluserId- calling usercategoryGUID- category GUIDfrom- fromsize- size- Returns:
- subcategories
-
getExternalGlossaryLinks
@GetMapping(path="/categories/{categoryGUID}/external-glossary-links") public org.odpi.openmetadata.accessservices.glossaryview.rest.GlossaryViewEntityDetailResponse getExternalGlossaryLinks(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PathVariable("categoryGUID") @NotBlank @NotBlank String categoryGUID, @RequestParam(name="from",defaultValue="0") @PositiveOrZero @PositiveOrZero Integer from, @RequestParam(name="size",defaultValue="100") @PositiveOrZero @Max(1000L) @PositiveOrZero @Max(1000L) Integer size) Extract external glossary link definitions for the given category- Parameters:
serverName- instance to calluserId- calling usercategoryGUID- category GUIDfrom- fromsize- size- Returns:
- external glossary links
-