-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New public preview API for confidential ledger code transparency 2025…
…-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
1 parent
4bb168b
commit 6103692
Showing
33 changed files
with
2,187 additions
and
456 deletions.
There are no files selected for viewing
66 changes: 0 additions & 66 deletions
66
specification/confidentialledger/Microsoft.CodeTransparency/entries.tsp
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...4-01-11-preview/examples/CreateEntry.json → ...-01-11-preview/CreateEntryDeprecated.json
This file contains 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
This file contains 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
This file contains 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
4 changes: 2 additions & 2 deletions
4
...2024-01-11-preview/examples/GetEntry.json → ...024-01-11-preview/GetEntryDeprecated.json
This file contains 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
4 changes: 2 additions & 2 deletions
4
...examples/2024-01-11-preview/GetEntry.json → ...11-preview/GetEntryReceiptDeprecated.json
This file contains 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
This file contains 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
54 changes: 54 additions & 0 deletions
54
...onfidentialledger/Microsoft.CodeTransparency/examples/2025-01-31-preview/CreateEntry.json
This file contains 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
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}" | ||
} | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
...n/confidentialledger/Microsoft.CodeTransparency/examples/2025-01-31-preview/GetEntry.json
This file contains 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
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}" | ||
} | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
...ntialledger/Microsoft.CodeTransparency/examples/2025-01-31-preview/GetEntryStatement.json
This file contains 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
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}" | ||
} | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
...nfidentialledger/Microsoft.CodeTransparency/examples/2025-01-31-preview/GetOperation.json
This file contains 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
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}" | ||
} | ||
} | ||
} |
Oops, something went wrong.