Skip to content

Commit

Permalink
chore: update api version to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsaporiti committed Aug 29, 2024
1 parent 2ba0d8c commit 046cfda
Show file tree
Hide file tree
Showing 19 changed files with 247 additions and 247 deletions.
70 changes: 35 additions & 35 deletions api/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ paths:
'500':
$ref: '#/components/responses/500'

/v1/supported-networks:
/v2/supported-networks:
get:
summary: Get Supported Networks
operationId: GetSupportedNetworks
Expand Down Expand Up @@ -61,7 +61,7 @@ paths:
$ref: '#/components/responses/500'

#authentication
/v1/authentication/sessions/{id}:
/v2/authentication/sessions/{id}:
get:
summary: Get Authentication Connection
operationId: getAuthenticationConnection
Expand Down Expand Up @@ -89,7 +89,7 @@ paths:
'500':
$ref: '#/components/responses/500'

/v1/{identifier}/authentication/qrcode:
/v2/{identifier}/authentication/qrcode:
post:
summary: Get Connection QRCode
operationId: authQRCode
Expand Down Expand Up @@ -121,7 +121,7 @@ paths:
'500':
$ref: '#/components/responses/500'

/v1/authentication/callback:
/v2/authentication/callback:
post:
summary: Authentication Callback
operationId: authCallback
Expand All @@ -147,7 +147,7 @@ paths:


#identity:
/v1/identities:
/v2/identities:
post:
summary: Create Identity
operationId: CreateIdentity
Expand Down Expand Up @@ -207,7 +207,7 @@ paths:
'500':
$ref: '#/components/responses/500'

/v1/identities/{identifier}:
/v2/identities/{identifier}:
patch:
summary: Update Identity
operationId: UpdateIdentity
Expand Down Expand Up @@ -248,7 +248,7 @@ paths:
'500':
$ref: '#/components/responses/500-CreateIdentity'

/v1/identities/{identifier}/details:
/v2/identities/{identifier}/details:
get:
summary: Get Identity Detail
operationId: GetIdentityDetails
Expand All @@ -273,7 +273,7 @@ paths:
'500':
$ref: '#/components/responses/500'

/v1/identities/{identifier}/state/retry:
/v2/identities/{identifier}/state/retry:
post:
summary: Retry Publish Identity State
operationId: RetryPublishState
Expand All @@ -296,7 +296,7 @@ paths:
'500':
$ref: '#/components/responses/500'

/v1/identities/{identifier}/state/publish:
/v2/identities/{identifier}/state/publish:
post:
summary: Publish Identity State
operationId: PublishIdentityState
Expand Down Expand Up @@ -327,7 +327,7 @@ paths:
'500':
$ref: '#/components/responses/500'

/v1/identities/{identifier}/state/transactions:
/v2/identities/{identifier}/state/transactions:
get:
summary: Get Identity State Transactions
operationId: GetStateTransactions
Expand Down Expand Up @@ -374,7 +374,7 @@ paths:
'500':
$ref: '#/components/responses/500'

/v1/identities/{identifier}/state/status:
/v2/identities/{identifier}/state/status:
get:
summary: Get Identity State Status
operationId: GetStateStatus
Expand All @@ -400,7 +400,7 @@ paths:
$ref: '#/components/responses/500'

#connections:
/v1/identities/{identifier}/connections/{id}:
/v2/identities/{identifier}/connections/{id}:
get:
summary: Get Connection
operationId: getConnection
Expand Down Expand Up @@ -460,7 +460,7 @@ paths:
'500':
$ref: '#/components/responses/500'

/v1/identities/{identifier}/connections/{id}/credentials:
/v2/identities/{identifier}/connections/{id}/credentials:
delete:
summary: Delete Connection Credentials
operationId: deleteConnectionCredentials
Expand All @@ -484,7 +484,7 @@ paths:
'500':
$ref: '#/components/responses/500'

/v1/identities/{identifier}/connections:
/v2/identities/{identifier}/connections:
get:
summary: Get Connections
operationId: getConnections
Expand Down Expand Up @@ -574,7 +574,7 @@ paths:
'500':
$ref: '#/components/responses/500'

/v1/identities/{identifier}/connections/{id}/credentials/revoke:
/v2/identities/{identifier}/connections/{id}/credentials/revoke:
post:
summary: Revoke Connection Credentials
operationId: revokeConnectionCredentials
Expand All @@ -599,7 +599,7 @@ paths:
$ref: '#/components/responses/500'

#credentials:
/v1/identities/{identifier}/credentials:
/v2/identities/{identifier}/credentials:
post:
summary: Create Credential
operationId: CreateCredential
Expand Down Expand Up @@ -633,7 +633,7 @@ paths:
$ref: '#/components/responses/500'


/v1/identities/{identifier}/credentials/search:
/v2/identities/{identifier}/credentials/search:
get:
summary: Get Credentials
operationId: GetCredentials
Expand Down Expand Up @@ -710,7 +710,7 @@ paths:
'500':
$ref: '#/components/responses/500'

/v1/identities/{identifier}/credentials/{id}:
/v2/identities/{identifier}/credentials/{id}:
get:
summary: Get Credential
operationId: GetCredential
Expand Down Expand Up @@ -762,7 +762,7 @@ paths:
'500':
$ref: '#/components/responses/500'

/v1/identities/{identifier}/credentials/revoke/{nonce}:
/v2/identities/{identifier}/credentials/revoke/{nonce}:
post:
summary: Revoke Credential
operationId: RevokeCredential
Expand Down Expand Up @@ -790,7 +790,7 @@ paths:
'500':
$ref: '#/components/responses/500'

/v1/identities/{identifier}/credentials/revocation/status/{nonce}:
/v2/identities/{identifier}/credentials/revocation/status/{nonce}:
get:
summary: Get Revocation Status
operationId: GetRevocationStatus
Expand All @@ -812,7 +812,7 @@ paths:
'500':
$ref: '#/components/responses/500'

/v1/identities/{identifier}/credentials/{id}/qrcode:
/v2/identities/{identifier}/credentials/{id}/qrcode:
get:
summary: Get Credentials QR code
operationId: GetCredentialQrCode
Expand Down Expand Up @@ -852,7 +852,7 @@ paths:
$ref: '#/components/responses/500'

#agent
/v1/agent:
/v2/agent:
post:
summary: Agent
operationId: Agent
Expand All @@ -878,7 +878,7 @@ paths:
'500':
$ref: '#/components/responses/500'

/v1/qr-store:
/v2/qr-store:
get:
summary: Get QrCode from store
operationId: GetQrFromStore
Expand Down Expand Up @@ -910,7 +910,7 @@ paths:
$ref: '#/components/responses/500'

#schemas:
/v1/identities/{identifier}/schemas:
/v2/identities/{identifier}/schemas:
post:
summary: Import JSON schema
operationId: ImportSchema
Expand Down Expand Up @@ -966,7 +966,7 @@ paths:
'500':
$ref: '#/components/responses/500'

/v1/identities/{identifier}/schemas/{id}:
/v2/identities/{identifier}/schemas/{id}:
get:
summary: Get Schema
operationId: GetSchema
Expand Down Expand Up @@ -994,7 +994,7 @@ paths:


# Links
/v1/identities/{identifier}/credentials/links:
/v2/identities/{identifier}/credentials/links:
get:
summary: Get Links
operationId: GetLinks
Expand Down Expand Up @@ -1067,7 +1067,7 @@ paths:
'500':
$ref: '#/components/responses/500'

/v1/identities/{identifier}/credentials/links/{id}:
/v2/identities/{identifier}/credentials/links/{id}:
get:
summary: Get Link
operationId: GetLink
Expand Down Expand Up @@ -1151,7 +1151,7 @@ paths:
$ref: '#/components/responses/500'


/v1/identities/{identifier}/credentials/links/{id}/qrcode:
/v2/identities/{identifier}/credentials/links/{id}/qrcode:
post:
summary: Create Link QR Code
operationId: CreateLinkQrCode
Expand All @@ -1175,7 +1175,7 @@ paths:
'500':
$ref: '#/components/responses/500'

/v1/identities/{identifier}/credentials/links/callback:
/v2/identities/{identifier}/credentials/links/callback:
post:
summary: Create Link QR Code Callback
operationId: CreateLinkQrCodeCallback
Expand Down Expand Up @@ -1301,7 +1301,7 @@ components:
type: string
x-omitempty: true
example: "Iden3ReverseSparseMerkleTreeProof"
enum: [ Iden3commRevocationStatusV1.0, Iden3ReverseSparseMerkleTreeProof, Iden3OnchainSparseMerkleTreeProof2023 ]
enum: [ Iden3commRevocationStatusv2.0, Iden3ReverseSparseMerkleTreeProof, Iden3OnchainSparseMerkleTreeProof2023 ]
displayName:
type: string
x-omitempty: true
Expand Down Expand Up @@ -1332,7 +1332,7 @@ components:
credentialStatusType:
type: string
example: "Iden3ReverseSparseMerkleTreeProof"
enum: [ Iden3commRevocationStatusV1.0, Iden3ReverseSparseMerkleTreeProof, Iden3OnchainSparseMerkleTreeProof2023 ]
enum: [ Iden3commRevocationStatusv2.0, Iden3ReverseSparseMerkleTreeProof, Iden3OnchainSparseMerkleTreeProof2023 ]


GetIdentityDetailsResponse:
Expand Down Expand Up @@ -1360,7 +1360,7 @@ components:
credentialStatusType:
type: string
example: "Iden3ReverseSparseMerkleTreeProof"
enum: [ Iden3commRevocationStatusV1.0, Iden3ReverseSparseMerkleTreeProof, Iden3OnchainSparseMerkleTreeProof2023 ]
enum: [ Iden3commRevocationStatusv2.0, Iden3ReverseSparseMerkleTreeProof, Iden3OnchainSparseMerkleTreeProof2023 ]

authCoreClaimRevocationStatus:
type: object
Expand Down Expand Up @@ -1506,7 +1506,7 @@ components:
type: string
x-omitempty: true
example: "Iden3ReverseSparseMerkleTreeProof"
enum: [ Iden3commRevocationStatusV1.0, Iden3ReverseSparseMerkleTreeProof, Iden3OnchainSparseMerkleTreeProof2023 ]
enum: [ Iden3commRevocationStatusv2.0, Iden3ReverseSparseMerkleTreeProof, Iden3OnchainSparseMerkleTreeProof2023 ]
method:
type: string
x-omitempty: false
Expand Down Expand Up @@ -1673,7 +1673,7 @@ components:
type: string
x-omitempty: false
enum:
- "Iden3BasicDisplayMethodV1"
- "Iden3BasicDisplayMethodv2"

#Credentials
CreateCredentialRequest:
Expand Down Expand Up @@ -1724,7 +1724,7 @@ components:
type: string
x-omitempty: true
example: "Iden3ReverseSparseMerkleTreeProof"
enum: [ Iden3commRevocationStatusV1.0, Iden3ReverseSparseMerkleTreeProof, Iden3OnchainSparseMerkleTreeProof2023 ]
enum: [ Iden3commRevocationStatusv2.0, Iden3ReverseSparseMerkleTreeProof, Iden3OnchainSparseMerkleTreeProof2023 ]
example:
credentialSchema: "https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json/KYCAgeCredential-v3.json"
type: "KYCAgeCredential"
Expand Down
Loading

0 comments on commit 046cfda

Please sign in to comment.