Skip to content

Commit

Permalink
Spec fixes from vacuum linting
Browse files Browse the repository at this point in the history
  • Loading branch information
rdlrt committed Nov 5, 2023
1 parent 1eeb31c commit ea67f5e
Show file tree
Hide file tree
Showing 10 changed files with 3,716 additions and 2,522 deletions.
1,047 changes: 543 additions & 504 deletions specs/results/koiosapi-guild.yaml

Large diffs are not rendered by default.

1,047 changes: 543 additions & 504 deletions specs/results/koiosapi-mainnet.yaml

Large diffs are not rendered by default.

1,047 changes: 543 additions & 504 deletions specs/results/koiosapi-preprod.yaml

Large diffs are not rendered by default.

1,047 changes: 543 additions & 504 deletions specs/results/koiosapi-preview.yaml

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions specs/templates/1-api-info.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
info:
title: Koios API
contact:
name: Koios Core Team
url: https://t.me/CardanoKoios
email: [email protected]
license:
name: Creative Commons Attribution 4.0 International
url: https://github.com/cardano-community/koios-artifacts/blob/main/LICENSE
version: v1.1.0rc
description: |
Koios is best described as a Decentralized and Elastic RESTful query layer for exploring data on Cardano blockchain to consume within applications/wallets/explorers/etc. This page not only provides an OpenAPI Spec for live implementation, but also ability to execute live demo from client browser against each endpoint with pre-filled examples.
Expand Down
145 changes: 12 additions & 133 deletions specs/templates/2-api-params.yaml
Original file line number Diff line number Diff line change
@@ -1,65 +1,4 @@
parameters:
select:
name: select
description: Filtering Columns
schema:
type: string
in: query
required: false
on_conflict:
name: on_conflict
description: On Conflict
schema:
type: string
in: query
required: false
order:
name: order
description: Ordering
schema:
type: string
in: query
required: false
range:
name: Range
description: Limiting and Pagination
schema:
type: string
in: header
required: false
rangeUnit:
name: Range-Unit
description: Limiting and Pagination
schema:
default: items
type: string
in: header
required: false
offset:
name: offset
description: Limiting and Pagination
schema:
type: string
in: query
required: false
limit:
name: limit
description: Limiting and Pagination
schema:
type: string
in: query
required: false
example: 10
_block_hash:
deprecated: false
name: _block_hash
description: Block Hash in hex format
schema:
type: string
example: ##_block_hash_param##
in: query
required: true
allowEmptyValue: false
_after_block_height:
deprecated: false
name: _after_block_height
Expand All @@ -76,57 +15,17 @@ parameters:
description: Epoch Number to fetch details for
schema:
type: string
example: ##_epoch_no_param##
example: "##_epoch_no_param##"
in: query
required: false
allowEmptyValue: true
_earned_epoch_no:
deprecated: false
name: _epoch_no
description: Filter for earned rewards Epoch Number
schema:
type: string
example: ##_earned_epoch_no_param##
in: query
required: false
allowEmptyValue: true
_any_address:
deprecated: false
name: _address
description: Cardano payment or staking address in bech32 format
schema:
type: string
example: ##_any_address_param##
in: query
required: true
allowEmptyValue: false
_address:
deprecated: false
name: _address
description: Cardano payment address in bech32 format
schema:
type: string
example: ##_address_param##
in: query
required: true
allowEmptyValue: false
_address_assets:
deprecated: false
name: _address
description: Cardano payment address in bech32 format
schema:
type: string
example: ##_address_assets_param##
in: query
required: true
allowEmptyValue: false
_stake_address:
deprecated: false
name: _stake_address
description: Cardano staking address (reward account) in bech32 format
schema:
type: string
example: ##_stake_address_param##
example: "##_stake_address_param##"
in: query
required: true
allowEmptyValue: false
Expand All @@ -136,7 +35,7 @@ parameters:
description: Asset Policy ID in hexadecimal format (hex)
schema:
type: string
example: ##_asset_policy_param##
example: "##_asset_policy_param##"
in: query
required: true
allowEmptyValue: false
Expand All @@ -146,7 +45,7 @@ parameters:
description: Asset Name in hexadecimal format (hex), empty asset name returns royalties
schema:
type: string
example: "##_asset_name_param##"
example: "##_asset_name_param##"
in: query
required: false
allowEmptyValue: true
Expand All @@ -156,7 +55,7 @@ parameters:
description: NFT Policy ID in hexadecimal format (hex)
schema:
type: string
example: ##_asset_policy_nft_param##
example: "##_asset_policy_nft_param##"
in: query
required: true
allowEmptyValue: false
Expand All @@ -166,7 +65,7 @@ parameters:
description: NFT Name in hexadecimal format (hex)
schema:
type: string
example: ##_asset_name_nft_param##
example: "##_asset_name_nft_param##"
in: query
required: false
allowEmptyValue: true
Expand All @@ -176,7 +75,7 @@ parameters:
description: Controls whether or not certain optional fields supported by a given endpoint are populated as a part of the call
schema:
type: boolean
example: "false"
example: false
in: query
required: false
allowEmptyValue: true
Expand All @@ -186,7 +85,7 @@ parameters:
description: Include all historical transactions, setting to false includes only the non-empty ones
schema:
type: boolean
example: "false"
example: false
in: query
required: false
allowEmptyValue: false
Expand All @@ -196,7 +95,7 @@ parameters:
description: Include information about nearing but not yet started epoch, to get access to active stake snapshot information if available
schema:
type: boolean
example: "false"
example: false
in: query
required: false
allowEmptyValue: true
Expand All @@ -206,7 +105,7 @@ parameters:
description: Pool ID in bech32 format
schema:
type: string
example: ##_pool_bech32_param##
example: "##_pool_bech32_param##"
in: query
required: true
allowEmptyValue: false
Expand All @@ -216,7 +115,7 @@ parameters:
description: Pool ID in bech32 format (optional)
schema:
type: string
example: ##_pool_bech32_optional_param##
example: "##_pool_bech32_optional_param##"
in: query
required: false
allowEmptyValue: true
Expand All @@ -226,27 +125,7 @@ parameters:
description: Script hash in hexadecimal format (hex)
schema:
type: string
example: ##_script_hash_param##
example: "##_script_hash_param##"
in: query
required: true
allowEmptyValue: false
_first_only:
deprecated: false
name: _first_only
description: Returns the first entry only (overrides _empty to true)
schema:
type: boolean
example: "false"
in: query
required: false
allowEmptyValue: true
_empty:
deprecated: false
name: _empty
description: Include zero quantity entries
schema:
type: boolean
example: "false"
in: query
required: false
allowEmptyValue: true
Loading

0 comments on commit ea67f5e

Please sign in to comment.