Skip to content

Commit

Permalink
Deploying to gh-pages from @ fe442f5 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaptoss committed Oct 8, 2024
1 parent 2d6edde commit ed89b65
Show file tree
Hide file tree
Showing 2 changed files with 139 additions and 126 deletions.
153 changes: 80 additions & 73 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2029,14 +2029,14 @@
}
}
},
"/integrations/geo-points-svc/v2/public/qrcodes": {
"/integrations/geo-points-svc/v2/public/codes": {
"post": {
"tags": [
"QRCodes"
"Bonus Codes"
],
"summary": "Create QR code",
"description": "Create custom qr code",
"operationId": "createQRCode",
"summary": "Createbonus code",
"description": "Create custom bonus code",
"operationId": "createCode",
"security": [
{
"BearerAuth": []
Expand All @@ -2053,7 +2053,7 @@
],
"properties": {
"data": {
"$ref": "#/components/schemas/QRCode"
"$ref": "#/components/schemas/BonusCode"
}
}
}
Expand All @@ -2072,7 +2072,7 @@
],
"properties": {
"data": {
"$ref": "#/components/schemas/QRCode"
"$ref": "#/components/schemas/BonusCode"
}
}
}
Expand All @@ -2091,14 +2091,14 @@
}
}
},
"/integrations/geo-points-svc/v2/public/qrcodes/{qr_code}": {
"/integrations/geo-points-svc/v2/public/codes/{code}": {
"post": {
"tags": [
"QRCodes"
"Bonus Codes"
],
"summary": "Send QR code",
"description": "Send a QR code and get a reward",
"operationId": "submitQRCode",
"summary": "Send code",
"description": "Send a code and get a reward",
"operationId": "submitCode",
"security": [
{
"BearerAuth": []
Expand All @@ -2115,7 +2115,7 @@
],
"properties": {
"data": {
"$ref": "#/components/schemas/QRCodeKey"
"$ref": "#/components/schemas/BonusCodeKey"
}
}
}
Expand Down Expand Up @@ -2382,6 +2382,65 @@
}
}
},
"BonusCode": {
"allOf": [
{
"$ref": "#/components/schemas/BonusCodeKey"
},
{
"type": "object",
"x-go-is-request": true,
"required": [
"attributes"
],
"properties": {
"attributes": {
"type": "object",
"properties": {
"reward": {
"type": "integer",
"format": "int",
"description": "Reward for this bonus code",
"default": 10,
"example": 10
},
"usage_count": {
"type": "integer",
"format": "int",
"description": "Specify how many times bonus code can be scaned. Omit if bonus code must have infinity usage count",
"example": 1
},
"nullifier": {
"type": "string",
"description": "For creating personal bonus codes",
"example": "0xabc...123"
}
}
}
}
}
]
},
"BonusCodeKey": {
"type": "object",
"required": [
"id",
"type"
],
"properties": {
"id": {
"type": "string",
"description": "Bonus code value",
"example": "one_time_abcdefg..xyz"
},
"type": {
"type": "string",
"enum": [
"bonus_code"
]
}
}
},
"ClaimEventKey": {
"type": "object",
"required": [
Expand Down Expand Up @@ -3126,14 +3185,21 @@
"properties": {
"attributes": {
"required": [
"claimed"
"claimed",
"reward"
],
"type": "object",
"properties": {
"claimed": {
"type": "bool",
"example": true,
"description": "If passport scan event was automatically claimed"
},
"reward": {
"type": "integer",
"format": "int64",
"description": "Reward amount in points",
"example": 50
}
}
}
Expand Down Expand Up @@ -3451,65 +3517,6 @@
}
}
},
"QRCode": {
"allOf": [
{
"$ref": "#/components/schemas/QRCodeKey"
},
{
"type": "object",
"x-go-is-request": true,
"required": [
"attributes"
],
"properties": {
"attributes": {
"type": "object",
"properties": {
"reward": {
"type": "integer",
"format": "int",
"description": "Reward for this qr-code",
"default": 10,
"example": 10
},
"usage_count": {
"type": "integer",
"format": "int",
"description": "Specify how many times qr-code can be scaned. Omit if qr-code must have infinity usage count",
"example": 1
},
"nullifier": {
"type": "string",
"description": "For creating personal qr-codes",
"example": "0xabc...123"
}
}
}
}
}
]
},
"QRCodeKey": {
"type": "object",
"required": [
"id",
"type"
],
"properties": {
"id": {
"type": "string",
"description": "QR code value",
"example": "one_time_abcdefg..xyz"
},
"type": {
"type": "string",
"enum": [
"qr_code"
]
}
}
},
"ReferralCode": {
"type": "object",
"required": [
Expand Down
112 changes: 59 additions & 53 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1340,13 +1340,13 @@ paths:
$ref: '#/components/schemas/Errors'
'500':
$ref: '#/components/responses/internalError'
/integrations/geo-points-svc/v2/public/qrcodes:
/integrations/geo-points-svc/v2/public/codes:
post:
tags:
- QRCodes
summary: Create QR code
description: Create custom qr code
operationId: createQRCode
- Bonus Codes
summary: Createbonus code
description: Create custom bonus code
operationId: createCode
security:
- BearerAuth: []
requestBody:
Expand All @@ -1359,7 +1359,7 @@ paths:
- data
properties:
data:
$ref: '#/components/schemas/QRCode'
$ref: '#/components/schemas/BonusCode'
responses:
'200':
description: Success
Expand All @@ -1371,20 +1371,20 @@ paths:
- data
properties:
data:
$ref: '#/components/schemas/QRCode'
$ref: '#/components/schemas/BonusCode'
'400':
$ref: '#/components/responses/invalidParameter'
'401':
$ref: '#/components/responses/invalidAuth'
'500':
$ref: '#/components/responses/internalError'
'/integrations/geo-points-svc/v2/public/qrcodes/{qr_code}':
'/integrations/geo-points-svc/v2/public/codes/{code}':
post:
tags:
- QRCodes
summary: Send QR code
description: Send a QR code and get a reward
operationId: submitQRCode
- Bonus Codes
summary: Send code
description: Send a code and get a reward
operationId: submitCode
security:
- BearerAuth: []
requestBody:
Expand All @@ -1397,7 +1397,7 @@ paths:
- data
properties:
data:
$ref: '#/components/schemas/QRCodeKey'
$ref: '#/components/schemas/BonusCodeKey'
responses:
'200':
description: Success
Expand Down Expand Up @@ -1574,6 +1574,46 @@ components:
type: string
enum:
- balance
BonusCode:
allOf:
- $ref: '#/components/schemas/BonusCodeKey'
- type: object
x-go-is-request: true
required:
- attributes
properties:
attributes:
type: object
properties:
reward:
type: integer
format: int
description: Reward for this bonus code
default: 10
example: 10
usage_count:
type: integer
format: int
description: Specify how many times bonus code can be scaned. Omit if bonus code must have infinity usage count
example: 1
nullifier:
type: string
description: For creating personal bonus codes
example: 0xabc...123
BonusCodeKey:
type: object
required:
- id
- type
properties:
id:
type: string
description: Bonus code value
example: one_time_abcdefg..xyz
type:
type: string
enum:
- bonus_code
ClaimEventKey:
type: object
required:
Expand Down Expand Up @@ -2082,12 +2122,18 @@ components:
attributes:
required:
- claimed
- reward
type: object
properties:
claimed:
type: bool
example: true
description: If passport scan event was automatically claimed
reward:
type: integer
format: int64
description: Reward amount in points
example: 50
EventClaimingStateKey:
type: object
required:
Expand Down Expand Up @@ -2323,46 +2369,6 @@ components:
type: string
enum:
- fulfill_qr_event
QRCode:
allOf:
- $ref: '#/components/schemas/QRCodeKey'
- type: object
x-go-is-request: true
required:
- attributes
properties:
attributes:
type: object
properties:
reward:
type: integer
format: int
description: Reward for this qr-code
default: 10
example: 10
usage_count:
type: integer
format: int
description: Specify how many times qr-code can be scaned. Omit if qr-code must have infinity usage count
example: 1
nullifier:
type: string
description: For creating personal qr-codes
example: 0xabc...123
QRCodeKey:
type: object
required:
- id
- type
properties:
id:
type: string
description: QR code value
example: one_time_abcdefg..xyz
type:
type: string
enum:
- qr_code
ReferralCode:
type: object
required:
Expand Down

0 comments on commit ed89b65

Please sign in to comment.