Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/async #1

Merged
merged 23 commits into from
Oct 1, 2023
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
25 changes: 25 additions & 0 deletions docs/spec/components/schemas/Container.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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:
$ref: '#/components/schemas/User'
status:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good practice to make status as enum, but not necessary to change now

type: boolean
example: false

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