Skip to content

Commit

Permalink
New public preview API for confidential ledger code transparency 2025…
Browse files Browse the repository at this point in the history
…-01-31-preview (#31896)

* CTS new preview API version with updated endpoints to match the draft SCRAPI IETF spec requirements
* Merge TypeSpec files into one
* Adds CBOR errors
* Changes transparency-configuration to respond in either CBOR or JSON
adds CBOR errors to entries responses
* Examples for to the new api version
* Remove older preview api endpoints
* change @nextlink to @TypeSpec.nextLink as otherwise .net sdk does not generate
* use explicit accept header for the sdk geneartor to skip accept parameter
* remove deprecated methods as recommended in the api review as this was never GA'd and is in preview
* simplify the api to only the minimum of required endpoints
* adds content types to examples
* remove unused examples
* use Azure.Core.Versions.v1_0_Preview_1 instead of v2
* add LroExtensionback to supressions
  • Loading branch information
ivarprudnikov authored Mar 6, 2025
1 parent 4bb168b commit 6103692
Show file tree
Hide file tree
Showing 33 changed files with 2,187 additions and 456 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "CreateEntry",
"operationId": "CreateEntry",
"title": "CreateEntryDeprecated",
"operationId": "CreateEntryDeprecated",
"parameters": {
"api-version": "2024-01-11-preview",
"body": "{binary}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@
},
"service_identifier": "did:web:servicename.confidential-ledger.azure.com"
}
},
"500": {
"body": {
"error": {
"code": "zdjbm",
"message": "wftvioyvxidsm"
}
}
},
"503": {
"body": {
"error": {
"code": "zdjbm",
"message": "wftvioyvxidsm"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,22 @@
"body": {
"scitt_version": "0.6.1"
}
},
"500": {
"body": {
"error": {
"code": "zdjbm",
"message": "wftvioyvxidsm"
}
}
},
"503": {
"body": {
"error": {
"code": "zdjbm",
"message": "wftvioyvxidsm"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "GetEntry",
"operationId": "GetEntry",
"title": "GetEntryDeprecated",
"operationId": "GetEntryDeprecated",
"parameters": {
"api-version": "2024-01-11-preview",
"entryId": "2.131"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "GetEntry",
"operationId": "GetEntry",
"title": "GetEntryReceiptDeprecated",
"operationId": "GetEntryReceiptDeprecated",
"parameters": {
"api-version": "2024-01-11-preview",
"entryId": "2.131"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@
"nextLink": "/entries/txIds?from=20&to=40"
}
},
"500": {
"body": {
"error": {
"code": "zdjbm",
"message": "wftvioyvxidsm"
}
}
},
"503": {
"body": {
"error": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"title": "CreateEntry",
"operationId": "CreateEntry",
"parameters": {
"api-version": "2025-01-31-preview",
"body": "{binary}",
"Content-Type": "application/cose",
"accept": "application/cose; application/cbor"
},
"responses": {
"201": {
"headers": {
"Content-Type": "application/cose"
},
"body": "{binary}"
},
"202": {
"headers": {
"Content-Type": "application/cbor"
},
"body": "{binary}"
},
"400": {
"headers": {
"Content-Type": "application/concise-problem-details+cbor"
},
"body": "{binary}"
},
"404": {
"headers": {
"Content-Type": "application/concise-problem-details+cbor"
},
"body": "{binary}"
},
"429": {
"headers": {
"Content-Type": "application/concise-problem-details+cbor"
},
"body": "{binary}"
},
"500": {
"headers": {
"Content-Type": "application/concise-problem-details+cbor"
},
"body": "{binary}"
},
"503": {
"headers": {
"Content-Type": "application/concise-problem-details+cbor"
},
"body": "{binary}"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"title": "GetEntry",
"operationId": "GetEntry",
"parameters": {
"api-version": "2025-01-31-preview",
"accept": "application/cose",
"entryId": "2.131"
},
"responses": {
"200": {
"headers": {
"Content-Type": "application/cose"
},
"body": "{binary}"
},
"400": {
"headers": {
"Content-Type": "application/concise-problem-details+cbor"
},
"body": "{binary}"
},
"404": {
"headers": {
"Content-Type": "application/concise-problem-details+cbor"
},
"body": "{binary}"
},
"429": {
"headers": {
"Content-Type": "application/concise-problem-details+cbor"
},
"body": "{binary}"
},
"500": {
"headers": {
"Content-Type": "application/concise-problem-details+cbor"
},
"body": "{binary}"
},
"503": {
"headers": {
"Content-Type": "application/concise-problem-details+cbor"
},
"body": "{binary}"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"title": "GetEntryStatement",
"operationId": "GetEntryStatement",
"parameters": {
"api-version": "2025-01-31-preview",
"entryId": "2.131",
"accept": "application/cose"
},
"responses": {
"200": {
"headers": {
"Content-Type": "application/cose"
},
"body": "{binary}"
},
"400": {
"headers": {
"Content-Type": "application/concise-problem-details+cbor"
},
"body": "{binary}"
},
"404": {
"headers": {
"Content-Type": "application/concise-problem-details+cbor"
},
"body": "{binary}"
},
"429": {
"headers": {
"Content-Type": "application/concise-problem-details+cbor"
},
"body": "{binary}"
},
"500": {
"headers": {
"Content-Type": "application/concise-problem-details+cbor"
},
"body": "{binary}"
},
"503": {
"headers": {
"Content-Type": "application/concise-problem-details+cbor"
},
"body": "{binary}"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"title": "GetOperation",
"operationId": "GetOperation",
"parameters": {
"api-version": "2025-01-31-preview",
"accept": "application/cbor",
"operationId": "2.131"
},
"responses": {
"200": {
"headers": {
"Content-Type": "application/cbor"
},
"body": "{binary}"
},
"202": {},
"400": {
"headers": {
"Content-Type": "application/concise-problem-details+cbor"
},
"body": "{binary}"
},
"404": {
"headers": {
"Content-Type": "application/concise-problem-details+cbor"
},
"body": "{binary}"
},
"429": {
"headers": {
"Content-Type": "application/concise-problem-details+cbor"
},
"body": "{binary}"
},
"500": {
"headers": {
"Content-Type": "application/concise-problem-details+cbor"
},
"body": "{binary}"
},
"503": {
"headers": {
"Content-Type": "application/concise-problem-details+cbor"
},
"body": "{binary}"
}
}
}
Loading

0 comments on commit 6103692

Please sign in to comment.