Skip to content

Feat/policy endpoint examples#60

Merged
woutslabbinck merged 8 commits into
SolidLabResearch:feat/policy-endpointfrom
bramcomyn:feat/policy-endpoint
Aug 18, 2025
Merged

Feat/policy endpoint examples#60
woutslabbinck merged 8 commits into
SolidLabResearch:feat/policy-endpointfrom
bramcomyn:feat/policy-endpoint

Conversation

@bramcomyn
Copy link
Copy Markdown
Contributor

I added examples in the policy management endpoint documentation for the PUT, PATCH and DELETE endpoints. All examples when executed sequentially without leaving one out. I could write a test for this, but I'm not sure that is anything useful to do.

I also noticed that there is a minor discrepancy in the code handling the PATCH requests. The documentation states that these requests should include the Content-Type: application/sparql-query header, yet the code checks for Content-Type: application/sparql-update. I didn't change any of these, but the example uses application/sparql-update to make it work.

I tracked a small mistake in EditPolicies where the error message wouldn't be printed. Solution is pretty straightforward. Didn't include, but I can sync my local changes immediately if allowed.

@woutslabbinck woutslabbinck self-requested a review August 18, 2025 12:29
Copy link
Copy Markdown
Contributor

@woutslabbinck woutslabbinck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good already.
It needs some minor tweaks, but this should not take a lot of time.

Comment thread documentation/policy-management.md Outdated
Comment thread documentation/policy-management.md Outdated
@woutslabbinck woutslabbinck merged commit 8f0a74f into SolidLabResearch:feat/policy-endpoint Aug 18, 2025
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.

2 participants