@RestController @RequestMapping(value="/api/assets") public class AssetSearchController extends Object
| Constructor and Description |
|---|
AssetSearchController() |
| Modifier and Type | Method and Description |
|---|---|
List<Type> |
getTypes() |
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> getTypes() throws PropertyServerException, InvalidParameterException
Copyright © 2018–2020 ODPi. All rights reserved.