Skip to content

Commit

Permalink
feat: updated swagger doc
Browse files Browse the repository at this point in the history
  • Loading branch information
thackerronak committed Jul 20, 2023
1 parent 0760de3 commit e6179d1
Show file tree
Hide file tree
Showing 3 changed files with 535 additions and 87 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ public class DidDocumentController {
@Content(examples = {
@ExampleObject(name = " DID document", value = """
{
"@context": [
"https://www.w3.org/ns/did/v1",
"https://w3c.github.io/vc-jws-2020/contexts/v1"
],
"id": "did:web:localhost:BPNL000000000000",
"verificationMethod": [
{
Expand All @@ -97,10 +101,6 @@ public class DidDocumentController {
},
"type": "JsonWebKey2020"
}
],
"@context": [
"https://www.w3.org/ns/did/v1",
"https://w3c.github.io/vc-jws-2020/contexts/v1"
]
}
""")
Expand Down Expand Up @@ -150,6 +150,10 @@ public ResponseEntity<DidDocument> getDidDocument(@Parameter(description = "Did
@Content(examples = {
@ExampleObject(name = " DID document", value = """
{
"@context": [
"https://www.w3.org/ns/did/v1",
"https://w3c.github.io/vc-jws-2020/contexts/v1"
],
"id": "did:web:localhost:BPNL000000000000",
"verificationMethod": [
{
Expand All @@ -162,10 +166,6 @@ public ResponseEntity<DidDocument> getDidDocument(@Parameter(description = "Did
},
"type": "JsonWebKey2020"
}
],
"@context": [
"https://www.w3.org/ns/did/v1",
"https://w3c.github.io/vc-jws-2020/contexts/v1"
]
}
""")
Expand Down
Loading

0 comments on commit e6179d1

Please sign in to comment.