The ScopeService service displays the following operations:
get: to retrieve information from a scope
Scope fetch
The example below shows how to retrieve information from a scope.
# <CORE_HOST> FlowerDocs Core base URL
# <TOKEN> authentication token
# <ID_SCOPE> identifier of scope to be recovered
curl -X GET "<CORE_HOST>/rest/scope/<ID_SCOPE>" \
-H "token: <TOKEN>"
@Autowired
private ScopeService scopeService;
public List<Scope> get() throws TechnicalException, FunctionalException
{
List<Id> ids = Lists.newArrayList(new Id("scopeId"));
return service.get(ids);
}