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}")
@Deprecated
public class CategoryResource
extends Object
Deprecated.
Spring Rest Controller defining 'GlossaryCategory' oriented endpoints
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAllCategories
(String serverName, String userId, @PositiveOrZero Integer from, @PositiveOrZero @Max(1000L) Integer size) Deprecated.Extract all categoriesgetCategoriesViaCategoryAnchorRelationships
(String serverName, String userId, @NotBlank String glossaryGUID, @PositiveOrZero Integer from, @PositiveOrZero @Max(1000L) Integer size) Deprecated.Extract category definitions for the given glossary GUID via the 'CategoryAnchor' type relationshipsgetCategory
(String serverName, String userId, @NotBlank String categoryGUID) Deprecated.Extract the category definition for the given GUIDgetExternalGlossaryLinks
(String serverName, String userId, @NotBlank String categoryGUID, @PositiveOrZero Integer from, @PositiveOrZero @Max(1000L) Integer size) Deprecated.Extract external glossary link definitions for the given categorygetSubcategories
(String serverName, String userId, @NotBlank String categoryGUID, @PositiveOrZero Integer from, @PositiveOrZero @Max(1000L) Integer size) Deprecated.Extract subcategory definitions for the given GUID
-
Constructor Details
-
CategoryResource
public CategoryResource()Deprecated.Called by Spring
-
-
Method Details
-
getAllCategories
@GetMapping(path="/categories") public 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) Deprecated.Extract all categories- Parameters:
serverName
- instance to calluserId
- calling userfrom
- fromsize
- size- Returns:
- categories
-
getCategory
@GetMapping(path="/categories/{categoryGUID}") public GlossaryViewEntityDetailResponse getCategory(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PathVariable("categoryGUID") @NotBlank @NotBlank String categoryGUID) Deprecated.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 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) Deprecated.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 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) Deprecated.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 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) Deprecated.Extract external glossary link definitions for the given category- Parameters:
serverName
- instance to calluserId
- calling usercategoryGUID
- category GUIDfrom
- fromsize
- size- Returns:
- external glossary links
-