Skip to content

Commit

Permalink
Update identity-api.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
srprasanna authored Sep 22, 2023
1 parent b636df6 commit af9ddbf
Showing 1 changed file with 84 additions and 1 deletion.
85 changes: 84 additions & 1 deletion api-documentation/identity-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,12 @@ paths:
$ref: '#/components/schemas/GenerateDidDTO'
responses:
'200':
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/DidResponseDTO'
description: DID Generated
'400':
description: Bad request
Expand All @@ -162,6 +168,10 @@ paths:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/DidResponseDTO'
description: DID resolved
'400':
description: Bad Request
Expand All @@ -182,6 +192,10 @@ paths:
$ref: '#/components/schemas/SignJsonDTO'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/SignedVCDTO'
description: VC Signed
'400':
description: Bad Request
Expand All @@ -202,6 +216,11 @@ paths:
$ref: '#/components/schemas/VerifyJsonDTO'
responses:
'201':
content:
application/json:
schema:
type: boolean
example: true
description: ''
components:
schemas:
Expand Down Expand Up @@ -291,9 +310,73 @@ components:
type: string
required:
- DID
DidResponseDTO:
type: object
properties:
id:
type: string
example: did:rcw:71364c7e-0abe-49cf-9269-4661699f274b
alsoKnownAs:
description: AlsoKnownAs property is a unique combination aadhaar and username.
type: array
items:
type: string
example: ramesh@gmail.com
service:
description: An array of services that are used, for example a user registration
service.
type: array
items:
type: object
properties:
id:
type: string
type:
type: string
serviceEndpoint:
type: object
additionalProperties: true
example: '{
"id": "IdentityHub",
"type": "IdentityHub",
"serviceEndpoint": {
"@context": "schema.identity.foundation/hub",
"@type": "UserServiceEndpoint",
"instance": [
"did:test:hub.id"
]
}
}'
verificationMethod:
type: object
properties:
id:
type: string
example: auth-key
type:
type: string
example: RS256
publicKeyJwk:
type: object
controller:
type: string
example: did:rcw:71364c7e-0abe-49cf-9269-4661699f274b
description: The method of DID
authentication:
type: string
example: auth-key
SignedVCDTO:
type: object
properties:
publicKey:
type: object
description: Public Key of issuer
example: '{"kty": "EC","crv": "secp256k1","x": "1iTtnvgP141NM-4qC6BgmkeTAjV7u-gZWni71G7cAKo","y": "VSGqq6yS0w7riXXRqFxXwKvHgIpQaUNMlFQKh-xgKMI"}'
signed:
type: string
description: Signed VC
securitySchemes:
Authorization:
type: apiKey
name: Token
in: header

0 comments on commit af9ddbf

Please sign in to comment.