Gestion de scope

Récuperez les informations, supprimez de vos scopes

Le service ScopeService expose les opérations suivantes :

  • get : pour récupérer les informations d’un scope

Récupération d’un scope

L’exemple ci dessous indique comment récupérer les informations d’un scope.


# <CORE_HOST>   URL de base de FlowerDocs Core
# <TOKEN>       jeton d'authentification
# <ID_SCOPE>    identifiant du scope à récupérer

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);
    }