Add OslcRequestParams and graph accumulation support to OslcClient#468
Draft
Add OslcRequestParams and graph accumulation support to OslcClient#468
Conversation
Contributor
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
Co-authored-by: berezovskyi <64734+berezovskyi@users.noreply.github.com>
Co-authored-by: berezovskyi <64734+berezovskyi@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Merge OslcClient and OslcRestClient with enhancements
Add OslcRequestParams and graph accumulation support to OslcClient
Nov 29, 2025
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #468 +/- ##
==========================================
+ Coverage 50.83% 51.36% +0.53%
==========================================
Files 174 175 +1
Lines 10202 10306 +104
Branches 1010 1032 +22
==========================================
+ Hits 5186 5294 +108
+ Misses 4761 4752 -9
- Partials 255 260 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses #325: Enables configurable request parameters and graph accumulation in
OslcClient, properly resolving #19 and #204 (header overwriting issues).Changes
OslcRequestParamsclass — Configures Accept, Content-Type, OSLC-Core-Version, and custom headers. Supports merge semantics for per-request overrides.Default,RdfXmlOnly,TurtleOnlyBuilder()APIGraph accumulation —
EnableGraphAccumulation()/DisableGraphAccumulation()for discovery phase workflows where responses should merge into a single graphPer-request parameter overrides — New overloads for
GetResourceAsyncandCreateResourceAsyncacceptingOslcRequestParamsDefaultRequestParamsproperty — Set globally in constructor or per-requestUsage
Notes
OslcRestClientremains deprecated (since 0.5.0)Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.