Skip to content

Commit

Permalink
Update specs for asset_info to add cip68_metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
rdlrt committed Oct 9, 2023
1 parent 40c2f54 commit f181279
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 126 deletions.
34 changes: 8 additions & 26 deletions specs/results/koiosapi-guild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -957,28 +957,6 @@ paths:
summary: Asset Token Registry
description: Get a list of assets registered via token registry on github
/asset_info: #RPC
get:
deprecated: true
tags:
- Asset
parameters:
- $ref: "#/components/parameters/_asset_policy"
- $ref: "#/components/parameters/_asset_name"
responses:
"200":
description: Array of detailed asset information
content:
application/json:
schema:
$ref: "#/components/schemas/asset_info"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
summary: Asset Information
description: Get the information of an asset including first minting & token registry metadata
post:
tags:
- Asset
Expand Down Expand Up @@ -1631,18 +1609,17 @@ paths:
x-code-samples:
- lang: "Shell"
source: |
# Assuming ${data} is a raw binary serialized transaction on the file-system.
# If using a CLI-generated tx file, please ensure to deserialise (using `xxd -p -r <<< $(jq .cborHex ${tx.signed}) > ${data}`) first before submitting.
# Assuming ${data} contains a CBOR-serialized signed transaction (base16-encoded) as documented on Ogmios v6 site.
curl -X POST \
--header "Content-Type: application/cbor" \
--data-binary @${data} https://api.koios.rest/api/ogmios/?EvaluateTransaction
--data-binary ${data} https://api.koios.rest/api/ogmios/?SubmitTransaction
responses:
"200":
description: OK
"400":
description: An error occured while querying transaction.
summary: Submit Transaction
description: Submit a signed and serialized transaction to the network.
description: Submit a signed and serialized transaction to the network. Please refer to Ogmios documentation [here](https://ogmios.dev/api/#operation-publish-/?SubmitTransaction) for complete spec

components:
parameters:
Expand Down Expand Up @@ -3976,6 +3953,11 @@ components:
decimals:
type: integer
example: 0
cip68_metadata:
type: object
description: CIP 68 metadata if present for asset
nullable: true
example: {"222": {"fields": [{"map": [{"k": {"bytes": "6e616d65"}, "v": {"bytes": "74657374"}}]}], "constructor": 0}}
asset_history:
type: array
items:
Expand Down
34 changes: 8 additions & 26 deletions specs/results/koiosapi-mainnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -957,28 +957,6 @@ paths:
summary: Asset Token Registry
description: Get a list of assets registered via token registry on github
/asset_info: #RPC
get:
deprecated: true
tags:
- Asset
parameters:
- $ref: "#/components/parameters/_asset_policy"
- $ref: "#/components/parameters/_asset_name"
responses:
"200":
description: Array of detailed asset information
content:
application/json:
schema:
$ref: "#/components/schemas/asset_info"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
summary: Asset Information
description: Get the information of an asset including first minting & token registry metadata
post:
tags:
- Asset
Expand Down Expand Up @@ -1631,18 +1609,17 @@ paths:
x-code-samples:
- lang: "Shell"
source: |
# Assuming ${data} is a raw binary serialized transaction on the file-system.
# If using a CLI-generated tx file, please ensure to deserialise (using `xxd -p -r <<< $(jq .cborHex ${tx.signed}) > ${data}`) first before submitting.
# Assuming ${data} contains a CBOR-serialized signed transaction (base16-encoded) as documented on Ogmios v6 site.
curl -X POST \
--header "Content-Type: application/cbor" \
--data-binary @${data} https://api.koios.rest/api/ogmios/?EvaluateTransaction
--data-binary ${data} https://api.koios.rest/api/ogmios/?SubmitTransaction
responses:
"200":
description: OK
"400":
description: An error occured while querying transaction.
summary: Submit Transaction
description: Submit a signed and serialized transaction to the network.
description: Submit a signed and serialized transaction to the network. Please refer to Ogmios documentation [here](https://ogmios.dev/api/#operation-publish-/?SubmitTransaction) for complete spec

components:
parameters:
Expand Down Expand Up @@ -3976,6 +3953,11 @@ components:
decimals:
type: integer
example: 0
cip68_metadata:
type: object
description: CIP 68 metadata if present for asset
nullable: true
example: {"222": {"fields": [{"map": [{"k": {"bytes": "6e616d65"}, "v": {"bytes": "74657374"}}]}], "constructor": 0}}
asset_history:
type: array
items:
Expand Down
34 changes: 8 additions & 26 deletions specs/results/koiosapi-preprod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -957,28 +957,6 @@ paths:
summary: Asset Token Registry
description: Get a list of assets registered via token registry on github
/asset_info: #RPC
get:
deprecated: true
tags:
- Asset
parameters:
- $ref: "#/components/parameters/_asset_policy"
- $ref: "#/components/parameters/_asset_name"
responses:
"200":
description: Array of detailed asset information
content:
application/json:
schema:
$ref: "#/components/schemas/asset_info"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
summary: Asset Information
description: Get the information of an asset including first minting & token registry metadata
post:
tags:
- Asset
Expand Down Expand Up @@ -1631,18 +1609,17 @@ paths:
x-code-samples:
- lang: "Shell"
source: |
# Assuming ${data} is a raw binary serialized transaction on the file-system.
# If using a CLI-generated tx file, please ensure to deserialise (using `xxd -p -r <<< $(jq .cborHex ${tx.signed}) > ${data}`) first before submitting.
# Assuming ${data} contains a CBOR-serialized signed transaction (base16-encoded) as documented on Ogmios v6 site.
curl -X POST \
--header "Content-Type: application/cbor" \
--data-binary @${data} https://api.koios.rest/api/ogmios/?EvaluateTransaction
--data-binary ${data} https://api.koios.rest/api/ogmios/?SubmitTransaction
responses:
"200":
description: OK
"400":
description: An error occured while querying transaction.
summary: Submit Transaction
description: Submit a signed and serialized transaction to the network.
description: Submit a signed and serialized transaction to the network. Please refer to Ogmios documentation [here](https://ogmios.dev/api/#operation-publish-/?SubmitTransaction) for complete spec

components:
parameters:
Expand Down Expand Up @@ -3976,6 +3953,11 @@ components:
decimals:
type: integer
example: 0
cip68_metadata:
type: object
description: CIP 68 metadata if present for asset
nullable: true
example: {"222": {"fields": [{"map": [{"k": {"bytes": "6e616d65"}, "v": {"bytes": "74657374"}}]}], "constructor": 0}}
asset_history:
type: array
items:
Expand Down
34 changes: 8 additions & 26 deletions specs/results/koiosapi-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -957,28 +957,6 @@ paths:
summary: Asset Token Registry
description: Get a list of assets registered via token registry on github
/asset_info: #RPC
get:
deprecated: true
tags:
- Asset
parameters:
- $ref: "#/components/parameters/_asset_policy"
- $ref: "#/components/parameters/_asset_name"
responses:
"200":
description: Array of detailed asset information
content:
application/json:
schema:
$ref: "#/components/schemas/asset_info"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
summary: Asset Information
description: Get the information of an asset including first minting & token registry metadata
post:
tags:
- Asset
Expand Down Expand Up @@ -1631,18 +1609,17 @@ paths:
x-code-samples:
- lang: "Shell"
source: |
# Assuming ${data} is a raw binary serialized transaction on the file-system.
# If using a CLI-generated tx file, please ensure to deserialise (using `xxd -p -r <<< $(jq .cborHex ${tx.signed}) > ${data}`) first before submitting.
# Assuming ${data} contains a CBOR-serialized signed transaction (base16-encoded) as documented on Ogmios v6 site.
curl -X POST \
--header "Content-Type: application/cbor" \
--data-binary @${data} https://api.koios.rest/api/ogmios/?EvaluateTransaction
--data-binary ${data} https://api.koios.rest/api/ogmios/?SubmitTransaction
responses:
"200":
description: OK
"400":
description: An error occured while querying transaction.
summary: Submit Transaction
description: Submit a signed and serialized transaction to the network.
description: Submit a signed and serialized transaction to the network. Please refer to Ogmios documentation [here](https://ogmios.dev/api/#operation-publish-/?SubmitTransaction) for complete spec

components:
parameters:
Expand Down Expand Up @@ -3976,6 +3953,11 @@ components:
decimals:
type: integer
example: 0
cip68_metadata:
type: object
description: CIP 68 metadata if present for asset
nullable: true
example: {"222": {"fields": [{"map": [{"k": {"bytes": "6e616d65"}, "v": {"bytes": "74657374"}}]}], "constructor": 0}}
asset_history:
type: array
items:
Expand Down
5 changes: 5 additions & 0 deletions specs/templates/4-api-schemas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1689,6 +1689,11 @@ schemas:
decimals:
type: integer
example: 0
cip68_metadata:
type: object
description: CIP 68 metadata if present for asset
nullable: true
example: {"222": {"fields": [{"map": [{"k": {"bytes": "6e616d65"}, "v": {"bytes": "74657374"}}]}], "constructor": 0}}
asset_history:
type: array
items:
Expand Down
22 changes: 0 additions & 22 deletions specs/templates/api-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -812,28 +812,6 @@ paths:
summary: Asset Token Registry
description: Get a list of assets registered via token registry on github
/asset_info: #RPC
get:
deprecated: true
tags:
- Asset
parameters:
- $ref: "#/components/parameters/_asset_policy"
- $ref: "#/components/parameters/_asset_name"
responses:
"200":
description: Array of detailed asset information
content:
application/json:
schema:
$ref: "#/components/schemas/asset_info"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
summary: Asset Information
description: Get the information of an asset including first minting & token registry metadata
post:
tags:
- Asset
Expand Down

0 comments on commit f181279

Please sign in to comment.