Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
Update API spec
Browse files Browse the repository at this point in the history
  • Loading branch information
gammazero committed Oct 11, 2023
1 parent 52e9e23 commit be28246
Showing 1 changed file with 32 additions and 24 deletions.
56 changes: 32 additions & 24 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,34 +99,42 @@ paths:
id:
type: string
description: 'ID associated with the blob.'
replicas:
type: array
items:
type: object
properties:
provider:
type: string
description: 'ID of the Filecoin storage provider.'
status:
type: string
description: 'Status of this replica. Can be "active", "slashed" or "expired".'
lastVerified:
type: string
format: date-time
description: 'Last verification time of the replica. Follows the RFC 3339 format.'
expiration:
type: string
format: date-time
description: 'Expiration time of the blob storage. Follows the RFC 3339 format.'
replica:
type: object
properties:
provider:
type: string
description: 'ID of the Filecoin storage provider.'
pieces:
type: array
items:
type: object
properties:
expiration:
type: string
format: date-time
description: 'Expiration time of the blob storage. Follows the RFC 3339 format.'
lastVerified:
type: string
format: date-time
description: 'Last verification time of the replica. Follows the RFC 3339 format.'
pieceCid:
type: string
description: 'Piece CID identifying this piece.'
status:
type: string
description: 'Status of this replica. Can be "active", "slashed" or "expired".'
examples:
default:
value:
id: 'unique-blob-id'
replicas:
- provider: 'f0xxxx'
status: 'active'
lastVerified: '2023-05-29T00:00:00Z'
expiration: '2023-06-29T00:00:00Z'
replica:
provider: 'f0xxxx'
pieces:
- expiration: '2023-06-29T00:00:00Z'
lastVerified: '2023-05-29T00:00:00Z'
pieceCid: 'baguqexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
status: 'active'
'404':
description: 'No status found for the given ID.'
content:
Expand Down

0 comments on commit be28246

Please sign in to comment.