Skip to content

Commit

Permalink
Change signed statement example (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
OR13 authored Aug 27, 2024
1 parent 888fcfb commit ee2f2ec
Showing 1 changed file with 54 additions and 16 deletions.
70 changes: 54 additions & 16 deletions draft-ietf-scitt-scrapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -358,28 +358,66 @@ Request:
POST /signed-statements/issue HTTP/1.1
Host: transparency.example
Accept: application/json
Content-Type: application/vc+ld+json
Content-Type: application/spdx+json
Payload

{
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://www.w3.org/ns/credentials/examples/v2"
"spdxVersion": "SPDX-2.2",
"dataLicense": "CC0-1.0",
"SPDXID": "SPDXRef-DOCUMENT",
"name": "cli-app 0.1.2",
"documentNamespace": "https://spdx.org/spdxdocs/sbom-tool-2.2.7-38f61e97-e53c-46ef-a37d-62.../cli-app/0.1.2/0d06adf8a36...",
"creationInfo": {
"created": "2024-08-16T21:44:54Z",
"creators": [
"Organization: contoso"
]
},
"files": [
{
"name": "cli-app",
"SPDXID": "SPDXRef-RootPackage",
"downloadLocation": "NOASSERTION",
"packageVerificationCode": {
"packageVerificationCodeValue": "ecf0aae2a849cc51..."
},
"filesAnalyzed": true,
"licenseConcluded": "NOASSERTION",
"licenseInfoFromFiles": [
"NOASSERTION"
],
"licenseDeclared": "NOASSERTION",
"copyrightText": "NOASSERTION",
"versionInfo": "0.1.2",
"externalRefs": [
{
"referenceCategory": "PACKAGE-MANAGER",
"referenceType": "purl",
"referenceLocator": "pkg:swid/contoso/spdx.org/cli-app@0.1.2?tag_id=ac073d0f-0aa7-4d27-87fa-7f..."
}
],
"supplier": "Organization: contoso",
"hasFiles": [
"SPDXRef-File--..."
]
}
],
"id": "https://transparency.example/credentials/1872",
"type": ["VerifiableCredential", "SensorCredential"],
"issuer": "https://transparency.example/device/1234",
"validFrom": "2010-01-01T19:23:24Z",
"credentialSubject": {
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [125.6, 10.1]
"relationships": [
{
"relationshipType": "DESCRIBES",
"relatedSpdxElement": "SPDXRef-RootPackage",
"spdxElementId": "SPDXRef-DOCUMENT"
},
"properties": {
"name": "Dinagat Islands"
{
"relationshipType": "DEPENDS_ON",
"relatedSpdxElement": "SPDXRef-Package-FF36801C1982452...",
"spdxElementId": "SPDXRef-RootPackage"
}
}
],
"documentDescribes": [
"SPDXRef-RootPackage"
],
"externalDocumentRefs": []
}
~~~

Expand Down

0 comments on commit ee2f2ec

Please sign in to comment.