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

feat(dsp): add negotiations/offer endpoint #3854

Merged

Conversation

ndr-brt
Copy link
Member

@ndr-brt ndr-brt commented Feb 13, 2024

What this PR changes/adds

Add the negotiations/offer endpoint, that can be used by a provider to start a negotiation.

Why it does that

dsp compliance

Further notes

  • to create a new negotiation from a ContractOfferMessage I had to move the extraction of the counter party id from the contract validator to the ProtocolTokenValidator, that returns a ServiceResult<ParticipantAgent> now. I left the old methods and I will align the missing services (transfer process and catalog) to the new behavior in a subsequent PR.
  • moved the validation on the ContractRequestMessage for the callbackAddress property to the JsonLdValidator instance, because it didn't make much sense in the controller (and it wasn't properly tested too).

Linked Issue(s)

Closes #3840

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@ndr-brt ndr-brt added enhancement New feature or request dataspace-protocol related to the dataspace protocol labels Feb 13, 2024
@ndr-brt ndr-brt force-pushed the 3840-add-negotiation-offers-endpoint branch 2 times, most recently from c6b9dd5 to 4b8fff5 Compare February 19, 2024 09:08
@ndr-brt ndr-brt force-pushed the 3840-add-negotiation-offers-endpoint branch from 4b8fff5 to 721d2be Compare February 19, 2024 09:55
@ndr-brt ndr-brt merged commit 4d190ae into eclipse-edc:main Feb 19, 2024
17 checks passed
@ndr-brt ndr-brt deleted the 3840-add-negotiation-offers-endpoint branch February 19, 2024 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dataspace-protocol related to the dataspace protocol enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DSP 1.0: Add negotiations/offers endpoint
2 participants