@RestController @RequestMapping(value="/api/assets") public class AssetController extends Object
| Constructor and Description |
|---|
AssetController() |
| Modifier and Type | Method and Description |
|---|---|
AssetDescription |
getAsset(String guid) |
AssetElements |
getAssetContext(String guid) |
List<Type> |
getSupportedTypes() |
List<AssetElements> |
searchAssets(String searchCriteria,
List<String> types,
String sequencingProperty,
SequencingOrder sequencingOrder,
Integer from,
Integer pageSize) |
@GetMapping(path="/search") public List<AssetElements> searchAssets(@RequestParam(value="q") String searchCriteria, @RequestParam(value="types") List<String> types, @RequestParam(name="sequencingProperty",defaultValue="displayName") String sequencingProperty, @RequestParam(name="sequencingOrder",defaultValue="PROPERTY_ASCENDING") SequencingOrder sequencingOrder, @RequestParam(defaultValue="0") Integer from, @RequestParam(defaultValue="10") Integer pageSize) throws PropertyServerException, InvalidParameterException
searchCriteria - the query parameter with the search phrasetypes - OM types list to search forsequencingProperty - name of the property based on which to sort the resultsequencingOrder - PROPERTY_ASCENDING or PROPERTY_DESCENDINGfrom - the offset for the resultspageSize - the number of results per pagePropertyServerException - if a configuration on the backendInvalidParameterException - if parameter validation fails@GetMapping(path="/types") public List<Type> getSupportedTypes() throws PropertyServerException, InvalidParameterException
PropertyServerException - if a configuration on the backendInvalidParameterException - if parameter validation fails@GetMapping(value="/{guid}")
public AssetDescription getAsset(@PathVariable(value="guid")
String guid)
throws PropertyServerException,
InvalidParameterException
guid - of the Entity to be retrievedPropertyServerException - if a configuration on the backendInvalidParameterException - if parameter validation fails@GetMapping(value="/{guid}/context")
public AssetElements getAssetContext(@PathVariable(value="guid")
String guid)
throws PropertyServerException,
InvalidParameterException
guid - of the Entity to be retrievedPropertyServerException - if a configuration on the backendInvalidParameterException - if parameter validation failsCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.