Skip to content

Commit

Permalink
chore: update Cardano database messages in OpenAPI specs
Browse files Browse the repository at this point in the history
  • Loading branch information
jpraynaud committed Jan 3, 2025
1 parent 80f0b79 commit 0ff8adb
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -297,15 +297,15 @@ paths:
schema:
$ref: "#/components/schemas/Error"

/artifact/cardano-database/{merkle_root}:
/artifact/cardano-database/{hash}:
get:
summary: Get Cardano database snapshot information
description: |
Returns the information of a Cardano database snapshot and where to retrieve its binary contents
parameters:
- name: merkle_root
- name: hash
in: path
description: Merkle root of the Cardano database snapshot
description: Hash of the Cardano database snapshot
required: true
schema:
type: string
Expand Down Expand Up @@ -1900,6 +1900,7 @@ components:
examples:
[
{
"hash": "d4071d518a3ace0f6c04a9c0745b9e9560e3e2af1b373bafc4e0398423e9abfb",
"merkle_root": "c8224920b9f5ad7377594eb8a15f34f08eb3103cc5241d57cafc5638403ec7c6",
"beacon":
{
Expand All @@ -1920,12 +1921,17 @@ components:
type: object
additionalProperties: false
required:
- hash
- merkle_root
- beacon
- certificate_hash
- total_db_size_uncompressed
- created_at
properties:
hash:
description: Hash of the Cardano database snapshot
type: string
format: bytes
merkle_root:
description: Merkle root of the Cardano database snapshot
type: string
Expand All @@ -1952,6 +1958,7 @@ components:
type: string
examples:
{
"hash": "d4071d518a3ace0f6c04a9c0745b9e9560e3e2af1b373bafc4e0398423e9abfb",
"merkle_root": "c8224920b9f5ad7377594eb8a15f34f08eb3103cc5241d57cafc5638403ec7c6",
"beacon":
{
Expand All @@ -1971,13 +1978,18 @@ components:
type: object
additionalProperties: false
required:
- hash
- merkle_root
- beacon
- certificate_hash
- total_db_size_uncompressed
- created_at
- locations
properties:
hash:
description: Hash of the Cardano database snapshot
type: string
format: bytes
merkle_root:
description: Merkle root of the Cardano database snapshot
type: string
Expand Down Expand Up @@ -2006,6 +2018,7 @@ components:
type: string
examples:
{
"hash": "d4071d518a3ace0f6c04a9c0745b9e9560e3e2af1b373bafc4e0398423e9abfb",
"merkle_root": "c8224920b9f5ad7377594eb8a15f34f08eb3103cc5241d57cafc5638403ec7c6",
"beacon":
{
Expand Down

0 comments on commit 0ff8adb

Please sign in to comment.