@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) |
@GetMapping(path="/search") public List<AssetElements> searchAssets(@RequestParam(value="q") String searchCriteria, @RequestParam(value="types") List<String> types) throws PropertyServerException, InvalidParameterException
searchCriteria - the query parameter with the search phrasePropertyServerExceptionInvalidParameterException@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–2020 ODPi. All rights reserved.