Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclusive keyword #44

Open
mattiagiupponi opened this issue Nov 19, 2024 · 0 comments · May be fixed by #45
Open

Exclusive keyword #44

mattiagiupponi opened this issue Nov 19, 2024 · 0 comments · May be fixed by #45
Assignees
Labels
enhancement New feature or request

Comments

@mattiagiupponi
Copy link
Contributor

Exclusive keyword

During the app initialization the subsite will automatically generate a keyword named subsite_exclusive. Each resource with this keyword assigned, will be escluded from the global catalogue (this is valid also for the API/v2 /resources, /datasets, /documents, /maps, /geoapps )

NOTE: The subsite_exclusive keyword is used to exclude a resource from the global catalog. This keyword is commonly applied to all resources. If a resource needs to be accessible only within a specific subsite, utilize the additional configuration provided by that subsite to filter it out from other subsites.

For example:

resource1 -> no keyword
resource2 -> keyword1 assinged
resource3 -> subsite_exclusive keyword assigned

Call -> http://localhost:8000/#/
    - will return resource1 and resource2

Via API/v2 /resources, /datasets, /documents, /maps, /geoapps is possible to return all the value even if the subsite_exclusive keyword is set
For example:

resource1 -> no keyword
resource2 -> keyword1 assinged
resource3 -> subsite_exclusive keyword assigned

Call -> http://localhost:8000/api/v2/resources/
    - will return resource1 and resource2

    
Call -> http://localhost:8000/api/v2/resources/?return_all=true
    - will return resource1, resource2 and resource3
@mattiagiupponi mattiagiupponi self-assigned this Nov 19, 2024
@mattiagiupponi mattiagiupponi added the enhancement New feature or request label Nov 19, 2024
@mattiagiupponi mattiagiupponi linked a pull request Nov 19, 2024 that will close this issue
@mattiagiupponi mattiagiupponi linked a pull request Nov 19, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant