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

Review of endpoints to return a single resource #393

Merged
merged 3 commits into from
Jan 21, 2025

Conversation

axl8713
Copy link
Collaborator

@axl8713 axl8713 commented Jan 21, 2025

Changes as per #380:

  • Added following information to the resource fetching, controlled by query parameters:

    • attributes (parameter includeAttributes): the returned payload contains an AttributeList element
    • permissions (parameter includePermissions): the returned payload contains a SecurityRuleList element

    Example:

    <ShortResource>
        <advertised>false</advertised>
        <canDelete>false</canDelete>
        <canEdit>false</canEdit>
        <creation>2025-01-17T19:04:03.379+00:00</creation>
        <creator>Y</creator>
        <editor>editore</editor>
        <id>101</id>
        <name>user owned readonly</name>
        <attributeList>
            <Attribute>
                <name>resource 101 attr</name>
                <type>STRING</type>
                <value>prova</value>
            </Attribute>
        </attributeList>
        <securityRuleList>
            <SecurityRule>
                <canRead>true</canRead>
                <canWrite>false</canWrite>
                <group>
                    <groupName>testGroup1</groupName>
                    <id>4</id>
                </group>
            </SecurityRule>
            <SecurityRule>
                <canRead>true</canRead>
                <canWrite>false</canWrite>
                <user>
                    <id>7</id>
                    <name>user</name>
                </user>
            </SecurityRule>
        </securityRuleList>
    </ShortResource>
    

Closes #380

@axl8713 axl8713 self-assigned this Jan 21, 2025
@axl8713 axl8713 marked this pull request as draft January 21, 2025 12:01
@axl8713 axl8713 marked this pull request as ready for review January 21, 2025 14:11
@axl8713 axl8713 requested a review from afabiani January 21, 2025 14:12
@afabiani afabiani merged commit daf9987 into geosolutions-it:master Jan 21, 2025
2 checks passed
@axl8713 axl8713 deleted the geostore-380 branch January 22, 2025 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Review of endpoints to return a single resource
2 participants