diff --git a/blockfrost-openapi.yaml b/blockfrost-openapi.yaml index beb97912..53482d69 100644 --- a/blockfrost-openapi.yaml +++ b/blockfrost-openapi.yaml @@ -5349,14 +5349,6 @@ paths:

Hosted Endpoint only available for hosted variant.

- x-codeSamples: - - lang: Shell - label: cURL - source: | - curl "https://ipfs.blockfrost.io/api/v0/ipfs/add" \ - -X POST \ - -H "project_id: $PROJECT_ID" \ - -F "file=@./README.md" requestBody: content: multipart/form-data: @@ -5366,6 +5358,14 @@ paths: file: type: string format: binary + x-codeSamples: + - lang: Shell + label: cURL + source: | + curl "https://ipfs.blockfrost.io/api/v0/ipfs/add" \ + -X POST \ + -H "project_id: $PROJECT_ID" \ + -F "file=@./README.md" responses: '200': description: Returns information about added IPFS object @@ -5415,6 +5415,12 @@ paths:

Hosted Endpoint only available for hosted variant.

+ x-codeSamples: + - lang: Shell + label: cURL + source: | + curl "https://ipfs.blockfrost.io/api/v0/ipfs/gateway/{IPFS_path}" \ + -H "project_id: $PROJECT_ID" \ parameters: - in: path required: true @@ -5457,6 +5463,12 @@ paths: schema: type: string description: Path to the IPFS object + x-codeSamples: + - lang: Shell + label: cURL + source: | + curl "https://ipfs.blockfrost.io/api/v0/ipfs/pin/add/{IPFS_path}" \ + -H "project_id: $PROJECT_ID" \ responses: '200': description: Returns pinned object @@ -5540,6 +5552,12 @@ paths: description: | The ordering of items from the point of view of the blockchain, not the page listing itself. By default, we return oldest first, newest last. + x-codeSamples: + - lang: Shell + label: cURL + source: | + curl "https://ipfs.blockfrost.io/api/v0/ipfs/pin/list/" \ + -H "project_id: $PROJECT_ID" \ responses: '200': description: Returns pinned objects @@ -5618,6 +5636,12 @@ paths: schema: type: string description: The path to the IPFS object + x-codeSamples: + - lang: Shell + label: cURL + source: | + curl "https://ipfs.blockfrost.io/api/v0/ipfs/pin/list/{IPFS_PATH}" \ + -H "project_id: $PROJECT_ID" \ responses: '200': description: Returns the pins pinned @@ -5695,6 +5719,13 @@ paths: schema: type: string description: The path to the IPFS object + x-codeSamples: + - lang: Shell + label: cURL + source: | + curl "https://ipfs.blockfrost.io/api/v0/ipfs/pin/remove/{IPFS_PATH}" \ + -X POST \ + -H "project_id: $PROJECT_ID" \ responses: '200': description: Returns the pins removed diff --git a/docs/blockfrost-openapi.yaml b/docs/blockfrost-openapi.yaml index 20c0fc12..6e5b09ec 100644 --- a/docs/blockfrost-openapi.yaml +++ b/docs/blockfrost-openapi.yaml @@ -5600,14 +5600,6 @@ paths:

Hosted Endpoint only available for hosted variant.

- x-codeSamples: - - lang: Shell - label: cURL - source: | - curl "https://ipfs.blockfrost.io/api/v0/ipfs/add" \ - -X POST \ - -H "project_id: $PROJECT_ID" \ - -F "file=@./README.md" requestBody: content: multipart/form-data: @@ -5617,6 +5609,14 @@ paths: file: type: string format: binary + x-codeSamples: + - lang: Shell + label: cURL + source: | + curl "https://ipfs.blockfrost.io/api/v0/ipfs/add" \ + -X POST \ + -H "project_id: $PROJECT_ID" \ + -F "file=@./README.md" responses: '200': description: Returns information about added IPFS object @@ -5668,6 +5668,12 @@ paths:

Hosted Endpoint only available for hosted variant.

+ x-codeSamples: + - lang: Shell + label: cURL + source: | + curl "https://ipfs.blockfrost.io/api/v0/ipfs/gateway/{IPFS_path}" \ + -H "project_id: $PROJECT_ID" \ parameters: - in: path required: true @@ -5713,6 +5719,12 @@ paths: schema: type: string description: Path to the IPFS object + x-codeSamples: + - lang: Shell + label: cURL + source: | + curl "https://ipfs.blockfrost.io/api/v0/ipfs/pin/add/{IPFS_path}" \ + -H "project_id: $PROJECT_ID" \ responses: '200': description: Returns pinned object @@ -5798,6 +5810,12 @@ paths: not the page listing itself. By default, we return oldest first, newest last. + x-codeSamples: + - lang: Shell + label: cURL + source: | + curl "https://ipfs.blockfrost.io/api/v0/ipfs/pin/list/" \ + -H "project_id: $PROJECT_ID" \ responses: '200': description: Returns pinned objects @@ -5883,6 +5901,12 @@ paths: schema: type: string description: The path to the IPFS object + x-codeSamples: + - lang: Shell + label: cURL + source: | + curl "https://ipfs.blockfrost.io/api/v0/ipfs/pin/list/{IPFS_PATH}" \ + -H "project_id: $PROJECT_ID" \ responses: '200': description: Returns the pins pinned @@ -5971,6 +5995,14 @@ paths: schema: type: string description: The path to the IPFS object + x-codeSamples: + - lang: Shell + label: cURL + source: > + curl "https://ipfs.blockfrost.io/api/v0/ipfs/pin/remove/{IPFS_PATH}" + \ + -X POST \ + -H "project_id: $PROJECT_ID" \ responses: '200': description: Returns the pins removed diff --git a/openapi.yaml b/openapi.yaml index 20c0fc12..6e5b09ec 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -5600,14 +5600,6 @@ paths:

Hosted Endpoint only available for hosted variant.

- x-codeSamples: - - lang: Shell - label: cURL - source: | - curl "https://ipfs.blockfrost.io/api/v0/ipfs/add" \ - -X POST \ - -H "project_id: $PROJECT_ID" \ - -F "file=@./README.md" requestBody: content: multipart/form-data: @@ -5617,6 +5609,14 @@ paths: file: type: string format: binary + x-codeSamples: + - lang: Shell + label: cURL + source: | + curl "https://ipfs.blockfrost.io/api/v0/ipfs/add" \ + -X POST \ + -H "project_id: $PROJECT_ID" \ + -F "file=@./README.md" responses: '200': description: Returns information about added IPFS object @@ -5668,6 +5668,12 @@ paths:

Hosted Endpoint only available for hosted variant.

+ x-codeSamples: + - lang: Shell + label: cURL + source: | + curl "https://ipfs.blockfrost.io/api/v0/ipfs/gateway/{IPFS_path}" \ + -H "project_id: $PROJECT_ID" \ parameters: - in: path required: true @@ -5713,6 +5719,12 @@ paths: schema: type: string description: Path to the IPFS object + x-codeSamples: + - lang: Shell + label: cURL + source: | + curl "https://ipfs.blockfrost.io/api/v0/ipfs/pin/add/{IPFS_path}" \ + -H "project_id: $PROJECT_ID" \ responses: '200': description: Returns pinned object @@ -5798,6 +5810,12 @@ paths: not the page listing itself. By default, we return oldest first, newest last. + x-codeSamples: + - lang: Shell + label: cURL + source: | + curl "https://ipfs.blockfrost.io/api/v0/ipfs/pin/list/" \ + -H "project_id: $PROJECT_ID" \ responses: '200': description: Returns pinned objects @@ -5883,6 +5901,12 @@ paths: schema: type: string description: The path to the IPFS object + x-codeSamples: + - lang: Shell + label: cURL + source: | + curl "https://ipfs.blockfrost.io/api/v0/ipfs/pin/list/{IPFS_PATH}" \ + -H "project_id: $PROJECT_ID" \ responses: '200': description: Returns the pins pinned @@ -5971,6 +5995,14 @@ paths: schema: type: string description: The path to the IPFS object + x-codeSamples: + - lang: Shell + label: cURL + source: > + curl "https://ipfs.blockfrost.io/api/v0/ipfs/pin/remove/{IPFS_PATH}" + \ + -X POST \ + -H "project_id: $PROJECT_ID" \ responses: '200': description: Returns the pins removed diff --git a/src/paths/ipfs/add.yaml b/src/paths/ipfs/add.yaml index f015a26c..cabad4f5 100644 --- a/src/paths/ipfs/add.yaml +++ b/src/paths/ipfs/add.yaml @@ -12,14 +12,6 @@ post:

Hosted Endpoint only available for hosted variant.

- x-codeSamples: - - lang: "Shell" - label: "cURL" - source: | - curl "https://ipfs.blockfrost.io/api/v0/ipfs/add" \ - -X POST \ - -H "project_id: $PROJECT_ID" \ - -F "file=@./README.md" requestBody: content: multipart/form-data: @@ -29,6 +21,14 @@ post: file: type: string format: binary + x-codeSamples: + - lang: "Shell" + label: "cURL" + source: | + curl "https://ipfs.blockfrost.io/api/v0/ipfs/add" \ + -X POST \ + -H "project_id: $PROJECT_ID" \ + -F "file=@./README.md" responses: "200": description: Returns information about added IPFS object diff --git a/src/paths/ipfs/gateway/{IPFS_path}/index.yaml b/src/paths/ipfs/gateway/{IPFS_path}/index.yaml index 2c10b427..4e3363e0 100644 --- a/src/paths/ipfs/gateway/{IPFS_path}/index.yaml +++ b/src/paths/ipfs/gateway/{IPFS_path}/index.yaml @@ -10,6 +10,12 @@ get:

Hosted Endpoint only available for hosted variant.

+ x-codeSamples: + - lang: "Shell" + label: "cURL" + source: | + curl "https://ipfs.blockfrost.io/api/v0/ipfs/gateway/{IPFS_path}" \ + -H "project_id: $PROJECT_ID" \ parameters: - in: path required: true diff --git a/src/paths/ipfs/pin/add/{IPFS_path}/index.yaml b/src/paths/ipfs/pin/add/{IPFS_path}/index.yaml index 512dc3b4..d9c1e241 100644 --- a/src/paths/ipfs/pin/add/{IPFS_path}/index.yaml +++ b/src/paths/ipfs/pin/add/{IPFS_path}/index.yaml @@ -12,6 +12,12 @@ post: schema: type: string description: Path to the IPFS object + x-codeSamples: + - lang: "Shell" + label: "cURL" + source: | + curl "https://ipfs.blockfrost.io/api/v0/ipfs/pin/add/{IPFS_path}" \ + -H "project_id: $PROJECT_ID" \ responses: "200": description: Returns pinned object diff --git a/src/paths/ipfs/pin/list/index.yaml b/src/paths/ipfs/pin/list/index.yaml index 69d9adb5..0a02f05b 100644 --- a/src/paths/ipfs/pin/list/index.yaml +++ b/src/paths/ipfs/pin/list/index.yaml @@ -39,6 +39,12 @@ get: description: | The ordering of items from the point of view of the blockchain, not the page listing itself. By default, we return oldest first, newest last. + x-codeSamples: + - lang: "Shell" + label: "cURL" + source: | + curl "https://ipfs.blockfrost.io/api/v0/ipfs/pin/list/" \ + -H "project_id: $PROJECT_ID" \ responses: "200": description: Returns pinned objects diff --git a/src/paths/ipfs/pin/list/{IPFS_path}/index.yaml b/src/paths/ipfs/pin/list/{IPFS_path}/index.yaml index c135a1be..cac25e8f 100644 --- a/src/paths/ipfs/pin/list/{IPFS_path}/index.yaml +++ b/src/paths/ipfs/pin/list/{IPFS_path}/index.yaml @@ -17,6 +17,12 @@ get: schema: type: string description: The path to the IPFS object + x-codeSamples: + - lang: "Shell" + label: "cURL" + source: | + curl "https://ipfs.blockfrost.io/api/v0/ipfs/pin/list/{IPFS_PATH}" \ + -H "project_id: $PROJECT_ID" \ responses: "200": description: Returns the pins pinned diff --git a/src/paths/ipfs/pin/remove/{IPFS_path}/index.yaml b/src/paths/ipfs/pin/remove/{IPFS_path}/index.yaml index 8cf29f99..1ac82708 100644 --- a/src/paths/ipfs/pin/remove/{IPFS_path}/index.yaml +++ b/src/paths/ipfs/pin/remove/{IPFS_path}/index.yaml @@ -17,6 +17,13 @@ post: schema: type: string description: The path to the IPFS object + x-codeSamples: + - lang: "Shell" + label: "cURL" + source: | + curl "https://ipfs.blockfrost.io/api/v0/ipfs/pin/remove/{IPFS_PATH}" \ + -X POST \ + -H "project_id: $PROJECT_ID" \ responses: "200": description: Returns the pins removed