Skip to content

Commit

Permalink
Merge pull request #1 from Digital-Certificates-DL/feature/async
Browse files Browse the repository at this point in the history
Feature/async
  • Loading branch information
MarkCherepovskyi authored Oct 1, 2023
2 parents 8fe04f2 + 4f29e00 commit 507221d
Show file tree
Hide file tree
Showing 224 changed files with 3,252 additions and 10,685 deletions.
26 changes: 11 additions & 15 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,31 @@ log:
level: info

db:
url: postgres://postgres:password@localhost:5432/certificate?sslmode=disable
url:

listener:
addr: :8000

signature:
key: "5HtbQzoofDVmEvzAMd89iq5nRpFUm8xudgkSNZ4rPN9z5AWcGEJ"
key: ""

networks:
rpc_eth: "https://goerli.infura.io/v3/45efc27205e746adb3a1d6c3da69a7ba"
rpc_eth: ""
ipfs: "https://ipfs.infura.io:5001"
ipfs_pr_id: "2LgGs3QZ5Ndz065ZVu4xoSTWzcU"
ipfs_pr_key: "4afcd5182cb6e849fa72726d44f77186"
ipfs_pr_id: ""
ipfs_pr_key: ""

sbt:
external_url: "https://dlt-academy.com/certificates"

google:
secret_path: "./client.json"
qr_path: "qr"
pdf_path: "pdf"
api_key: ""
# api_key: "AIzaSyB5JPdmDD-BCyOs7WpQaXqz_wiZJ-VMQ"
code: ""
enable: true
#
#google:
# secret_path: "./client.json"
# qr_path: "qr"
# pdf_path: "pdf"
# api_key: ""
## api_key: "AIzaSyB5JPdmDD-BCyOs7WpQaXqz_wiZJ-VMQ"
# code: "4/0AVHEtk6nkskIwm0pcZEhcrOpoXZG14GYeuoeQ4akl5HOHJLcuwpDRryMZydgBekmjzgElg"
# enable: true


tables:
result: "test.xlsx"
Expand Down Expand Up @@ -76,6 +70,8 @@ exams:
"graduated with honors": "Exam passed with honors"
"Listener only": "Listener only. Exam not passed"



cop:
disabled: true
endpoint: "http://..."
Expand Down
30 changes: 30 additions & 0 deletions docs/spec/components/schemas/Container.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
allOf:
- $ref: '#/components/schemas/ContainerKey'
- type: object
required:
- attributes
properties:
attributes:
type: object
required:
- container_id
- certificates
- status
properties:
container_id:
type: string
format: string
example: "1"
certificates:
type: array
items:
type: object
$ref: '#/components/schemas/User'
status:
type: string
enum:
- "is_processing"
- "ready"
- "not_found"


9 changes: 9 additions & 0 deletions docs/spec/components/schemas/ContainerKey.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
type: object
required:
- type
- id
properties:
type:
type: string
enum:
- container
3 changes: 1 addition & 2 deletions docs/spec/components/schemas/IpfsFile.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
allOf:
- $ref: '#/components/schemas/IpfsFile'
- $ref: '#/components/schemas/IpfsFileUploadKey'
- type: object
required:
- attributes
Expand All @@ -11,5 +11,4 @@ allOf:
properties:
url:
type: string
format: string
example: "ipfs://..."
9 changes: 9 additions & 0 deletions docs/spec/components/schemas/IpfsFileKey.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
type: object
required:
- type
- id
properties:
type:
type: string
enum:
- ipfs_file
27 changes: 27 additions & 0 deletions docs/spec/components/schemas/IpfsFileUpload.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
allOf:
- $ref: '#/components/schemas/IpfsFileUploadKey'
- type: object
required:
- attributes
- relationships
properties:
attributes:
type: object
required:
- img
- description
- name
properties:
name:
type: string
format: string
example: "Name"
img:
type: array
items:
type: byte
description:
type: string
format: string
example: "Some description"

9 changes: 9 additions & 0 deletions docs/spec/components/schemas/IpfsFileUploadKey.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
type: object
required:
- type
- id
properties:
type:
type: string
enum:
- ipfs_file_upload
19 changes: 0 additions & 19 deletions docs/spec/components/schemas/IpfsFileUploadRequest.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion docs/spec/components/schemas/Link.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ allOf:
properties:
link:
type: string
example: "httpL//localhost/*"
example: "http://localhost/*"
20 changes: 20 additions & 0 deletions docs/spec/components/schemas/ParseUsers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
allOf:
- $ref: '#/components/schemas/ParseUsersKey'
- type: object
required:
- attributes
- relationships
properties:
attributes:
type: object
required:
- name
- url
properties:
name:
type: string
example: "DL"
url:
type: string
example: "https://google.sheet....."

9 changes: 9 additions & 0 deletions docs/spec/components/schemas/ParseUsersKey.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
type: object
required:
- type
- id
properties:
type:
type: string
enum:
- parse_users
25 changes: 0 additions & 25 deletions docs/spec/components/schemas/PdfsCreateRequest.yaml

This file was deleted.

32 changes: 32 additions & 0 deletions docs/spec/components/schemas/PrepareCertificates.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
allOf:
- $ref: '#/components/schemas/PrepareCertificatesKey'
- type: object
required:
- attributes
properties:
attributes:
type: object
required:
- url
- name
- address
- certificates_data
properties:
name:
type: string
example: "DL"
url:
type: string
example: "ipfs://..."
address:
type: string
example: "0xa0f254..."
certificates_data:
type: array
items:
anyOf:
- $ref: '#/components/schemas/UserBlob'
description: "user"



9 changes: 9 additions & 0 deletions docs/spec/components/schemas/PrepareCertificatesKey.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
type: object
required:
- type
- id
properties:
type:
type: string
enum:
- prepare_certificate
30 changes: 19 additions & 11 deletions docs/spec/components/schemas/Settings.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
type: object
required:
- name
- code
properties:
name:
type: string
example: ""
code:
type: string
example: ""
allOf:
- $ref: '#/components/schemas/SettingsKey'
- type: object
required:
- attributes
- relationships
properties:
attributes:
type: object
required:
- name
- code
properties:
name:
type: string
example: ""
code:
type: string
example: ""

Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ properties:
type:
type: string
enum:
- ipfs
- settings
Loading

0 comments on commit 507221d

Please sign in to comment.