Skip to content

Commit

Permalink
WIP: Return raw or link qrcode for backward compatibillity
Browse files Browse the repository at this point in the history
  • Loading branch information
x1m3 committed Nov 17, 2023
1 parent 54d4a01 commit fabcd26
Show file tree
Hide file tree
Showing 11 changed files with 204 additions and 44 deletions.
35 changes: 34 additions & 1 deletion api_ui/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,18 @@ paths:
tags:
- Auth
- Connection
parameters:
- name: type
in: query
required: false
description: >
Type:
* `link` - (default value) Return a QR code with a link redirection to the raw content. Easier to scan.
* `raw` - Return the raw QR code. (default value)
schema:
type: string
enum: [ raw, link ]

responses:
'200':
description: ok
Expand Down Expand Up @@ -396,7 +408,18 @@ paths:
tags:
- Credential
parameters:
- name: type
in: query
required: false
schema:
type: string
enum: [ raw, link ]
description: >
Type:
* `link` - (default value) Return a QR code with a link redirection to the raw content. Easier to scan.
* `raw` - Return the raw QR code. (default value)
- $ref: '#/components/parameters/id'

responses:
'200':
description: ok
Expand Down Expand Up @@ -772,6 +795,16 @@ paths:
summary: Create Authentication Link QRCode
operationId: CreateLinkQrCode
parameters:
- name: type
in: query
required: false
schema:
type: string
enum: [ raw, link ]
description: >
Type:
* `link` - (default value) Return a QR code with a link redirection to the raw content. Easier to scan.
* `raw` - Return the raw QR code. (default value)
- $ref: '#/components/parameters/id'
tags:
- Links
Expand Down Expand Up @@ -990,7 +1023,7 @@ components:
- qrCodeLink
- schemaType
properties:
qrCodeLink:
qrCodeLink: # TODO: Rename to QRCode. It can be a Link or a Raw QR
type: string
example: iden3comm://?request_uri=https%3A%2F%2Fissuer-demo.polygonid.me%2Fapi%2Fqr-store%3Fid%3Df780a169-8959-4380-9461-f7200e2ed3f4
schemaType:
Expand Down
121 changes: 107 additions & 14 deletions internal/api_ui/api.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fabcd26

Please sign in to comment.