-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from rarimo/feature/runner
add runner for delete expired proofs; endpoint get proofs list
- Loading branch information
Showing
18 changed files
with
2,456 additions
and
1,715 deletions.
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,13 @@ | ||
type: object | ||
required: | ||
- created_at | ||
- proof | ||
properties: | ||
created_at: | ||
type: string | ||
description: The date and time when the proof was created in the timestamp format | ||
example: '1702480643' | ||
proof: | ||
type: string | ||
description: The proof object in JSON string format | ||
example: "{\"pub_signals\":[...],\"proof\":{\"pi_a\":[...],\"pi_b\":[],\"pi_c\":[...]}}" |
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,71 @@ | ||
get: | ||
summary: Get Proofs by User DID | ||
description: > | ||
Returns information about the all proofs of the user. | ||
operationId: proofByUserDID | ||
tags: | ||
- Proofs | ||
parameters: | ||
- in: path | ||
name: 'user_did' | ||
required: true | ||
description: The User DID | ||
schema: | ||
type: string | ||
example: "did:iden3:readonly:tM1QCJ7ytcbvLB7EFQhGsJPumc11DEE18gEvAzxE7" | ||
responses: | ||
'200': | ||
# { | ||
# "data": { | ||
# "id": "1", | ||
# "type": "proofs", | ||
# "creator": "string", | ||
# "base64_proofs": "string", | ||
# "attributes": [ | ||
# { | ||
# "created_at": "1702480643", | ||
# "proof": "{\"pub_signals\":[...],\"proof\":{\"pi_a\":[...],\"pi_b\":[],\"pi_c\":[...]}}" | ||
# } | ||
# ] | ||
# } | ||
# } | ||
description: OK | ||
content: | ||
application/vnd.api+json: | ||
schema: | ||
type: object | ||
required: | ||
- data | ||
properties: | ||
data: | ||
type: object | ||
required: | ||
- id | ||
- type | ||
- creator | ||
- base64_proofs | ||
- attributes | ||
properties: | ||
id: | ||
type: string | ||
example: "1" | ||
type: | ||
type: string | ||
example: "proofs" | ||
creator: | ||
type: string | ||
example: "string" | ||
base64_proofs: | ||
type: string | ||
example: "string" | ||
attributes: | ||
type: array | ||
items: | ||
$ref: '#/components/schemas/ProofsAttributes' | ||
|
||
400: | ||
$ref: '#/components/responses/invalidParameter' | ||
404: | ||
$ref: '#/components/responses/notFound' | ||
500: | ||
$ref: '#/components/responses/internalError' |
Oops, something went wrong.