Skip to content

Commit

Permalink
fix: disambiguating *.providers fields (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Aug 14, 2020
1 parent c3167d1 commit 0d08455
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions ipfs-pinning-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ A full list of fields and schemas can be found in the `schemas` section of the [
The `Pin` object is a representation of a pin request.
It includes the `cid` of data to be pinned, as well as optional metadata in `providers` and `meta`.
It includes the `cid` of data to be pinned, as well as optional metadata in `origins` and `meta`.
### Pin status object
Expand Down Expand Up @@ -80,13 +80,13 @@ A pin object can be removed via `DELETE /pins/{id}`.
## Provider hints
Pinning of new data can be accelerated by providing a list of known data
sources in `Pin.providers`, and connecting at least one of them to pinning
service nodes at `PinStatus.providers`.
:
sources in `Pin.origins`, and connecting at least one of them to pinning
service nodes at `PinStatus.delegates`.
The most common scenario is a client putting its own IPFS node's multiaddrs in
`Pin.providers`, and then directly connecting to every multiaddr returned by
a pinning service in `PinStatus.providers` to initiate transfer.
`Pin.origins`, and then directly connecting to every multiaddr returned by
a pinning service in `PinStatus.delegates` to initiate transfer.
This ensures data transfer starts immediately (without waiting for provider
Expand Down Expand Up @@ -323,7 +323,7 @@ components:
- status
- created
- pin
- providers
- delegates
properties:
id:
description: Globally unique ID of the pin request; can be used to check status of ongoing pinning, modification of pin object or pin removal
Expand All @@ -338,8 +338,8 @@ components:
example: "2020-07-27T17:32:28Z"
pin:
$ref: '#/components/schemas/Pin'
providers:
$ref: '#/components/schemas/ServiceProviders'
delegates:
$ref: '#/components/schemas/Delegates'
info:
$ref: '#/components/schemas/StatusInfo'

Expand All @@ -358,8 +358,8 @@ components:
type: string
maxLength: 255
example: "my precious data"
providers:
$ref: '#/components/schemas/DataProviders'
origins:
$ref: '#/components/schemas/Origins'
meta:
$ref: '#/components/schemas/PinMeta'

Expand All @@ -372,7 +372,7 @@ components:
- pinned # pinned successfully
- failed # pinning service was unable to finish pinning operation; additional info can be found in info[status_details]

ServiceProviders:
Delegates:
description: List of multiaddrs designated by pinning service for transferring any new data from external peers
type: array
items:
Expand All @@ -382,7 +382,7 @@ components:
maxItems: 20
example: ['/dnsaddr/pin-service.example.com']

DataProviders:
Origins:
description: Optional list of multiaddrs known to provide the data
type: array
items:
Expand Down

0 comments on commit 0d08455

Please sign in to comment.