Skip to content

Commit

Permalink
Merge pull request #298 from blockfrost/srk/hosted
Browse files Browse the repository at this point in the history
Document hosted endpoints
  • Loading branch information
vladimirvolek authored Mar 19, 2023
2 parents 2efa517 + a91035f commit f1d31b0
Show file tree
Hide file tree
Showing 14 changed files with 164 additions and 26 deletions.
64 changes: 54 additions & 10 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,15 @@ info:
</td>
</tr>
</table>
<style>
.hosted {
background-color: #0168fa;
border-radius: 5px;
padding: 4px;
margin-right: 2px;
color: white;
}
</style>
## Milkomeda
Expand Down Expand Up @@ -1650,7 +1659,10 @@ paths:
tags:
- Cardano » Transactions
summary: Submit a transaction
description: Submit an already serialized transaction to the network.
description: |
Submit an already serialized transaction to the network.
<span class="hosted">Hosted</span> Endpoint only available for hosted variant.
parameters:
- in: header
name: Content-Type
Expand Down Expand Up @@ -2291,7 +2303,12 @@ paths:
tags:
- Cardano » Mempool
summary: Mempool
description: Return transactions that are currently stored in Blockfrost mempool, waiting to be included in a newly minted block. Shows only transactions submitted via Blockfrost.io.
description: |
Return transactions that are currently stored in Blockfrost mempool,
waiting to be included in a newly minted block.
Shows only transactions submitted via Blockfrost.io.
<span class="hosted">Hosted</span> Endpoint only available for hosted variant.
parameters:
- in: query
name: count
Expand Down Expand Up @@ -2347,7 +2364,10 @@ paths:
tags:
- Cardano » Mempool
summary: Specific transaction
description: Return content of the requested transaction.
description: |
Return content of the requested transaction.
<span class="hosted">Hosted</span> Endpoint only available for hosted variant.
parameters:
- in: path
name: hash
Expand Down Expand Up @@ -2381,7 +2401,11 @@ paths:
tags:
- Cardano » Mempool
summary: Mempool by address
description: List of mempool transactions where at least one of the transaction inputs or outputs belongs to the address. Shows only transactions submitted via Blockfrost.io.
description: |
List of mempool transactions where at least one of the transaction inputs or outputs belongs to the address.
Shows only transactions submitted via Blockfrost.io.
<span class="hosted">Hosted</span> Endpoint only available for hosted variant.
parameters:
- in: path
name: address
Expand Down Expand Up @@ -4324,7 +4348,10 @@ paths:
tags:
- Cardano » Utilities
summary: Submit a transaction for execution units evaluation
description: Submit an already serialized transaction to evaluate how much execution units it requires.
description: |
Submit an already serialized transaction to evaluate how much execution units it requires.
<span class="hosted">Hosted</span> Endpoint only available for hosted variant.
parameters:
- in: header
name: Content-Type
Expand Down Expand Up @@ -4374,7 +4401,10 @@ paths:
tags:
- Cardano » Utilities
summary: Submit a transaction for execution units evaluation (additional UTXO set)
description: Submit a JSON payload with transaction CBOR and additional utxo set to evaluate how much execution units it requires.
description: |
Submit a JSON payload with transaction CBOR and additional UTXO set to evaluate how much execution units it requires.
<span class="hosted">Hosted</span> Endpoint only available for hosted variant.
parameters:
- in: header
name: Content-Type
Expand Down Expand Up @@ -4489,6 +4519,8 @@ paths:
description: |
You need to `/ipfs/pin/add` an object to avoid it being garbage collected. This usage
is being counted in your user account quota.
<span class="hosted">Hosted</span> Endpoint only available for hosted variant.
x-codeSamples:
- lang: curl
source: |
Expand Down Expand Up @@ -4539,7 +4571,10 @@ paths:
tags:
- IPFS » Gateway
summary: Relay to an IPFS gateway
description: Retrieve an object from the IPFS gateway (useful if you do not want to rely on a public gateway, such as `ipfs.blockfrost.dev`).
description: |
Retrieve an object from the IPFS gateway (useful if you do not want to rely on a public gateway, such as `ipfs.blockfrost.dev`).
<span class="hosted">Hosted</span> Endpoint only available for hosted variant.
parameters:
- in: path
required: true
Expand Down Expand Up @@ -4619,7 +4654,10 @@ paths:
tags:
- IPFS » Pins
summary: List pinned objects
description: List objects pinned to local storage
description: |
List objects pinned to local storage
<span class="hosted">Hosted</span> Endpoint only available for hosted variant.
parameters:
- in: query
name: count
Expand Down Expand Up @@ -4712,7 +4750,10 @@ paths:
tags:
- IPFS » Pins
summary: Get details about pinned object
description: Get information about locally pinned IPFS object
description: |
Get information about locally pinned IPFS object
<span class="hosted">Hosted</span> Endpoint only available for hosted variant.
parameters:
- in: path
required: true
Expand Down Expand Up @@ -4780,7 +4821,10 @@ paths:
tags:
- IPFS » Pins
summary: Remove a IPFS pin
description: Remove pinned objects from local storage
description: |
Remove pinned objects from local storage
<span class="hosted">Hosted</span> Endpoint only available for hosted variant.
parameters:
- in: path
required: true
Expand Down
9 changes: 9 additions & 0 deletions src/definitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,15 @@ info:
</td>
</tr>
</table>
<style>
.hosted {
background-color: #0168fa;
border-radius: 5px;
padding: 4px;
margin-right: 2px;
color: white;
}
</style>
## Milkomeda
Expand Down
62 changes: 56 additions & 6 deletions src/generated-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1251,11 +1251,15 @@ export interface paths {
/**
* Submit a transaction
* @description Submit an already serialized transaction to the network.
*
* <span class="hosted">Hosted</span> Endpoint only available for hosted variant.
*/
post: {
/**
* Submit a transaction
* @description Submit an already serialized transaction to the network.
*
* <span class="hosted">Hosted</span> Endpoint only available for hosted variant.
*/
parameters: {
header: {
Expand Down Expand Up @@ -1726,12 +1730,20 @@ export interface paths {
"/mempool": {
/**
* Mempool
* @description Return transactions that are currently stored in Blockfrost mempool, waiting to be included in a newly minted block. Shows only transactions submitted via Blockfrost.io.
* @description Return transactions that are currently stored in Blockfrost mempool,
* waiting to be included in a newly minted block.
* Shows only transactions submitted via Blockfrost.io.
*
* <span class="hosted">Hosted</span> Endpoint only available for hosted variant.
*/
get: {
/**
* Mempool
* @description Return transactions that are currently stored in Blockfrost mempool, waiting to be included in a newly minted block. Shows only transactions submitted via Blockfrost.io.
* @description Return transactions that are currently stored in Blockfrost mempool,
* waiting to be included in a newly minted block.
* Shows only transactions submitted via Blockfrost.io.
*
* <span class="hosted">Hosted</span> Endpoint only available for hosted variant.
*/
parameters?: {
/** @description The number of results displayed on one page. */
Expand Down Expand Up @@ -1766,11 +1778,15 @@ export interface paths {
/**
* Specific transaction
* @description Return content of the requested transaction.
*
* <span class="hosted">Hosted</span> Endpoint only available for hosted variant.
*/
get: {
/**
* Specific transaction
* @description Return content of the requested transaction.
*
* <span class="hosted">Hosted</span> Endpoint only available for hosted variant.
*/
parameters: {
/**
Expand Down Expand Up @@ -1800,12 +1816,18 @@ export interface paths {
"/mempool/addresses/{address}": {
/**
* Mempool by address
* @description List of mempool transactions where at least one of the transaction inputs or outputs belongs to the address. Shows only transactions submitted via Blockfrost.io.
* @description List of mempool transactions where at least one of the transaction inputs or outputs belongs to the address.
* Shows only transactions submitted via Blockfrost.io.
*
* <span class="hosted">Hosted</span> Endpoint only available for hosted variant.
*/
get: {
/**
* Mempool by address
* @description List of mempool transactions where at least one of the transaction inputs or outputs belongs to the address. Shows only transactions submitted via Blockfrost.io.
* @description List of mempool transactions where at least one of the transaction inputs or outputs belongs to the address.
* Shows only transactions submitted via Blockfrost.io.
*
* <span class="hosted">Hosted</span> Endpoint only available for hosted variant.
*/
parameters: {
/** @description The number of results displayed on one page. */
Expand Down Expand Up @@ -3347,11 +3369,15 @@ export interface paths {
/**
* Submit a transaction for execution units evaluation
* @description Submit an already serialized transaction to evaluate how much execution units it requires.
*
* <span class="hosted">Hosted</span> Endpoint only available for hosted variant.
*/
post: {
/**
* Submit a transaction for execution units evaluation
* @description Submit an already serialized transaction to evaluate how much execution units it requires.
*
* <span class="hosted">Hosted</span> Endpoint only available for hosted variant.
*/
parameters: {
header: {
Expand Down Expand Up @@ -3384,12 +3410,16 @@ export interface paths {
"/utils/txs/evaluate/utxos": {
/**
* Submit a transaction for execution units evaluation (additional UTXO set)
* @description Submit a JSON payload with transaction CBOR and additional utxo set to evaluate how much execution units it requires.
* @description Submit a JSON payload with transaction CBOR and additional UTXO set to evaluate how much execution units it requires.
*
* <span class="hosted">Hosted</span> Endpoint only available for hosted variant.
*/
post: {
/**
* Submit a transaction for execution units evaluation (additional UTXO set)
* @description Submit a JSON payload with transaction CBOR and additional utxo set to evaluate how much execution units it requires.
* @description Submit a JSON payload with transaction CBOR and additional UTXO set to evaluate how much execution units it requires.
*
* <span class="hosted">Hosted</span> Endpoint only available for hosted variant.
*/
parameters: {
header: {
Expand Down Expand Up @@ -3435,12 +3465,16 @@ export interface paths {
* Add a file to IPFS
* @description You need to `/ipfs/pin/add` an object to avoid it being garbage collected. This usage
* is being counted in your user account quota.
*
* <span class="hosted">Hosted</span> Endpoint only available for hosted variant.
*/
post: {
/**
* Add a file to IPFS
* @description You need to `/ipfs/pin/add` an object to avoid it being garbage collected. This usage
* is being counted in your user account quota.
*
* <span class="hosted">Hosted</span> Endpoint only available for hosted variant.
*/
responses: {
/** @description Returns information about added IPFS object */
Expand Down Expand Up @@ -3478,11 +3512,15 @@ export interface paths {
/**
* Relay to an IPFS gateway
* @description Retrieve an object from the IPFS gateway (useful if you do not want to rely on a public gateway, such as `ipfs.blockfrost.dev`).
*
* <span class="hosted">Hosted</span> Endpoint only available for hosted variant.
*/
get: {
/**
* Relay to an IPFS gateway
* @description Retrieve an object from the IPFS gateway (useful if you do not want to rely on a public gateway, such as `ipfs.blockfrost.dev`).
*
* <span class="hosted">Hosted</span> Endpoint only available for hosted variant.
*/
parameters: {
path: {
Expand Down Expand Up @@ -3549,11 +3587,15 @@ export interface paths {
/**
* List pinned objects
* @description List objects pinned to local storage
*
* <span class="hosted">Hosted</span> Endpoint only available for hosted variant.
*/
get: {
/**
* List pinned objects
* @description List objects pinned to local storage
*
* <span class="hosted">Hosted</span> Endpoint only available for hosted variant.
*/
parameters?: {
/** @description The number of results displayed on one page. */
Expand Down Expand Up @@ -3619,11 +3661,15 @@ export interface paths {
/**
* Get details about pinned object
* @description Get information about locally pinned IPFS object
*
* <span class="hosted">Hosted</span> Endpoint only available for hosted variant.
*/
get: {
/**
* Get details about pinned object
* @description Get information about locally pinned IPFS object
*
* <span class="hosted">Hosted</span> Endpoint only available for hosted variant.
*/
parameters: {
path: {
Expand Down Expand Up @@ -3682,11 +3728,15 @@ export interface paths {
/**
* Remove a IPFS pin
* @description Remove pinned objects from local storage
*
* <span class="hosted">Hosted</span> Endpoint only available for hosted variant.
*/
post: {
/**
* Remove a IPFS pin
* @description Remove pinned objects from local storage
*
* <span class="hosted">Hosted</span> Endpoint only available for hosted variant.
*/
parameters: {
path: {
Expand Down
6 changes: 5 additions & 1 deletion src/paths/api/mempool/addresses/{address}/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ get:
tags:
- Cardano » Mempool
summary: Mempool by address
description: List of mempool transactions where at least one of the transaction inputs or outputs belongs to the address. Shows only transactions submitted via Blockfrost.io.
description: |
List of mempool transactions where at least one of the transaction inputs or outputs belongs to the address.
Shows only transactions submitted via Blockfrost.io.
<span class="hosted">Hosted</span> Endpoint only available for hosted variant.
parameters:
- in: path
name: address
Expand Down
7 changes: 6 additions & 1 deletion src/paths/api/mempool/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ get:
tags:
- Cardano » Mempool
summary: Mempool
description: Return transactions that are currently stored in Blockfrost mempool, waiting to be included in a newly minted block. Shows only transactions submitted via Blockfrost.io.
description: |
Return transactions that are currently stored in Blockfrost mempool,
waiting to be included in a newly minted block.
Shows only transactions submitted via Blockfrost.io.
<span class="hosted">Hosted</span> Endpoint only available for hosted variant.
parameters:
- in: query
name: count
Expand Down
5 changes: 4 additions & 1 deletion src/paths/api/mempool/{hash}/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ get:
tags:
- Cardano » Mempool
summary: Specific transaction
description: Return content of the requested transaction.
description: |
Return content of the requested transaction.
<span class="hosted">Hosted</span> Endpoint only available for hosted variant.
parameters:
- in: path
name: hash
Expand Down
Loading

0 comments on commit f1d31b0

Please sign in to comment.