SwaggerClient::PinningApi
All URIs are relative to https://api.estuary.tech
Method | HTTP request | Description |
---|---|---|
pinning_pins_get | GET /pinning/pins | List all pin status objects |
pinning_pins_pinid_delete | DELETE /pinning/pins/{pinid} | Delete a pinned object |
pinning_pins_pinid_get | GET /pinning/pins/{pinid} | Get a pin status object |
pinning_pins_pinid_post | POST /pinning/pins/{pinid} | Replace a pinned object |
pinning_pins_post | POST /pinning/pins | Add and pin object |
pinning_pins_get
pinning_pins_get
List all pin status objects
This endpoint lists all pin status objects
Example
# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: bearerAuth
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end
api_instance = SwaggerClient::PinningApi.new
begin
#List all pin status objects
api_instance.pinning_pins_get
rescue SwaggerClient::ApiError => e
puts "Exception when calling PinningApi->pinning_pins_get: #{e}"
end
Parameters
This endpoint does not need any parameter.
Return type
nil (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
pinning_pins_pinid_delete
pinning_pins_pinid_delete(pinid)
Delete a pinned object
This endpoint deletes a pinned object.
Example
# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: bearerAuth
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end
api_instance = SwaggerClient::PinningApi.new
pinid = 'pinid_example' # String | Pin ID
begin
#Delete a pinned object
api_instance.pinning_pins_pinid_delete(pinid)
rescue SwaggerClient::ApiError => e
puts "Exception when calling PinningApi->pinning_pins_pinid_delete: #{e}"
end
Parameters
Name | Type | Description | Notes |
---|---|---|---|
pinid | String | Pin ID |
Return type
nil (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
pinning_pins_pinid_get
pinning_pins_pinid_get(pinid)
Get a pin status object
This endpoint returns a pin status object.
Example
# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: bearerAuth
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end
api_instance = SwaggerClient::PinningApi.new
pinid = 'pinid_example' # String | cid
begin
#Get a pin status object
api_instance.pinning_pins_pinid_get(pinid)
rescue SwaggerClient::ApiError => e
puts "Exception when calling PinningApi->pinning_pins_pinid_get: #{e}"
end
Parameters
Name | Type | Description | Notes |
---|---|---|---|
pinid | String | cid |
Return type
nil (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
pinning_pins_pinid_post
pinning_pins_pinid_post(pinid)
Replace a pinned object
This endpoint replaces a pinned object.
Example
# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: bearerAuth
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end
api_instance = SwaggerClient::PinningApi.new
pinid = 'pinid_example' # String | Pin ID
begin
#Replace a pinned object
api_instance.pinning_pins_pinid_post(pinid)
rescue SwaggerClient::ApiError => e
puts "Exception when calling PinningApi->pinning_pins_pinid_post: #{e}"
end
Parameters
Name | Type | Description | Notes |
---|---|---|---|
pinid | String | Pin ID |
Return type
nil (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
pinning_pins_post
pinning_pins_post(cid, name)
Add and pin object
This endpoint adds a pin to the IPFS daemon.
Example
# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: bearerAuth
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end
api_instance = SwaggerClient::PinningApi.new
cid = 'cid_example' # String | cid
name = 'name_example' # String | name
begin
#Add and pin object
api_instance.pinning_pins_post(cid, name)
rescue SwaggerClient::ApiError => e
puts "Exception when calling PinningApi->pinning_pins_post: #{e}"
end
Parameters
Name | Type | Description | Notes |
---|---|---|---|
cid | String | cid | |
name | String | name |
Return type
nil (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json