openapi: 3.0.1 info: version: v3 paths: /v2/contractagreements/request: post: deprecated: true description: Gets all contract agreements according to a particular query operationId: queryAgreementsV2 requestBody: content: application/json: schema: $ref: "#/components/schemas/QuerySpec" responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/ContractAgreement" description: The contract agreements matching the query "400": content: application/json: schema: type: array items: $ref: "#/components/schemas/ApiErrorDetail" description: Request body was malformed tags: - Contract Agreement V2 /v2/contractagreements/{id}: get: deprecated: true description: Gets an contract agreement with the given ID operationId: getAgreementByIdV2 parameters: - in: path name: id required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/ContractAgreement" description: The contract agreement "400": content: application/json: schema: type: array items: $ref: "#/components/schemas/ApiErrorDetail" description: "Request was malformed, e.g. id was null" "404": content: application/json: schema: type: array items: $ref: "#/components/schemas/ApiErrorDetail" description: An contract agreement with the given ID does not exist tags: - Contract Agreement V2 /v2/contractagreements/{id}/negotiation: get: deprecated: true description: Gets a contract negotiation with the given contract agreement ID operationId: getNegotiationByAgreementIdV2 parameters: - in: path name: id required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/ContractNegotiation" description: The contract negotiation "400": content: application/json: schema: type: array items: $ref: "#/components/schemas/ApiErrorDetail" description: "Request was malformed, e.g. id was null" "404": content: application/json: schema: type: array items: $ref: "#/components/schemas/ApiErrorDetail" description: An contract agreement with the given ID does not exist tags: - Contract Agreement V2 /v3/contractagreements/request: post: description: Gets all contract agreements according to a particular query operationId: queryAgreementsV3 requestBody: content: application/json: schema: $ref: "#/components/schemas/QuerySpec" responses: "200": content: application/json: schema: type: array items: $ref: "#/components/schemas/ContractAgreement" description: The contract agreements matching the query "400": content: application/json: schema: type: array items: $ref: "#/components/schemas/ApiErrorDetail" description: Request body was malformed tags: - Contract Agreement V3 /v3/contractagreements/{id}: get: description: Gets an contract agreement with the given ID operationId: getAgreementByIdV3 parameters: - in: path name: id required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/ContractAgreement" description: The contract agreement "400": content: application/json: schema: type: array items: $ref: "#/components/schemas/ApiErrorDetail" description: "Request was malformed, e.g. id was null" "404": content: application/json: schema: type: array items: $ref: "#/components/schemas/ApiErrorDetail" description: An contract agreement with the given ID does not exist tags: - Contract Agreement V3 /v3/contractagreements/{id}/negotiation: get: description: Gets a contract negotiation with the given contract agreement ID operationId: getNegotiationByAgreementIdV3 parameters: - in: path name: id required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/ContractNegotiation" description: The contract negotiation "400": content: application/json: schema: type: array items: $ref: "#/components/schemas/ApiErrorDetail" description: "Request was malformed, e.g. id was null" "404": content: application/json: schema: type: array items: $ref: "#/components/schemas/ApiErrorDetail" description: An contract agreement with the given ID does not exist tags: - Contract Agreement V3 components: schemas: ApiErrorDetail: type: object example: message: error message type: ErrorType path: object.error.path invalidValue: this value is not valid properties: invalidValue: type: string message: type: string path: type: string type: type: string CallbackAddress: type: object properties: '@type': type: string example: https://w3id.org/edc/v0.0.1/ns/CallbackAddress authCodeId: type: string authKey: type: string events: type: array items: type: string uniqueItems: true transactional: type: boolean uri: type: string ContractAgreement: type: object example: '@context': '@vocab': https://w3id.org/edc/v0.0.1/ns/ '@type': https://w3id.org/edc/v0.0.1/ns/ContractAgreement '@id': negotiation-id providerId: provider-id consumerId: consumer-id assetId: asset-id contractSigningDate: 1688465655 policy: '@context': http://www.w3.org/ns/odrl.jsonld '@type': Set '@id': offer-id permission: - target: asset-id action: display properties: '@id': type: string '@type': type: string example: https://w3id.org/edc/v0.0.1/ns/ContractAgreement assetId: type: string consumerId: type: string contractSigningDate: type: integer format: int64 policy: $ref: "#/components/schemas/Policy" providerId: type: string ContractNegotiation: type: object example: '@context': '@vocab': https://w3id.org/edc/v0.0.1/ns/ '@type': https://w3id.org/edc/v0.0.1/ns/ContractNegotiation '@id': negotiation-id type: PROVIDER protocol: dataspace-protocol-http counterPartyId: counter-party-id counterPartyAddress: http://counter/party/address state: VERIFIED contractAgreementId: contract:agreement:id errorDetail: eventual-error-detail createdAt: 1688465655 callbackAddresses: - transactional: false uri: http://callback/url events: - contract.negotiation - transfer.process authKey: auth-key authCodeId: auth-code-id properties: '@id': type: string '@type': type: string example: https://w3id.org/edc/v0.0.1/ns/ContractNegotiation callbackAddresses: type: array items: $ref: "#/components/schemas/CallbackAddress" contractAgreementId: type: string counterPartyAddress: type: string counterPartyId: type: string errorDetail: type: string protocol: type: string state: type: string type: type: string enum: - CONSUMER - PROVIDER Criterion: type: object example: '@context': '@vocab': https://w3id.org/edc/v0.0.1/ns/ '@type': Criterion operandLeft: fieldName operator: = operandRight: some value properties: '@type': type: string example: https://w3id.org/edc/v0.0.1/ns/Criterion operandLeft: type: object operandRight: type: object operator: type: string required: - operandLeft - operandRight - operator JsonArray: type: array items: $ref: "#/components/schemas/JsonValue" properties: empty: type: boolean valueType: type: string enum: - ARRAY - OBJECT - STRING - NUMBER - "TRUE" - "FALSE" - "NULL" JsonObject: type: object additionalProperties: $ref: "#/components/schemas/JsonValue" properties: empty: type: boolean valueType: type: string enum: - ARRAY - OBJECT - STRING - NUMBER - "TRUE" - "FALSE" - "NULL" JsonValue: type: object properties: valueType: type: string enum: - ARRAY - OBJECT - STRING - NUMBER - "TRUE" - "FALSE" - "NULL" Policy: type: object description: ODRL policy example: '@context': http://www.w3.org/ns/odrl.jsonld '@id': 0949ba30-680c-44e6-bc7d-1688cbe1847e '@type': odrl:Set permission: target: http://example.com/asset:9898.movie action: type: http://www.w3.org/ns/odrl/2/use constraint: leftOperand: https://w3id.org/edc/v0.0.1/ns/left operator: eq rightOperand: value prohibition: [] obligation: [] QuerySpec: type: object example: '@context': '@vocab': https://w3id.org/edc/v0.0.1/ns/ '@type': QuerySpec offset: 5 limit: 10 sortOrder: DESC sortField: fieldName filterExpression: [] properties: '@type': type: string example: https://w3id.org/edc/v0.0.1/ns/QuerySpec filterExpression: type: array items: $ref: "#/components/schemas/Criterion" limit: type: integer format: int32 offset: type: integer format: int32 sortField: type: string sortOrder: type: string enum: - ASC - DESC