2022-04-11 09:35:06 +00:00
|
|
|
swagger: "2.0"
|
|
|
|
info:
|
|
|
|
title: REST API NeoFS
|
|
|
|
description: REST API NeoFS
|
|
|
|
version: v1
|
|
|
|
|
|
|
|
host: localhost:8090
|
|
|
|
basePath: /v1
|
|
|
|
schemes:
|
|
|
|
- http
|
|
|
|
# - https
|
|
|
|
|
|
|
|
securityDefinitions:
|
|
|
|
BearerAuth:
|
|
|
|
type: apiKey
|
|
|
|
in: header
|
|
|
|
name: Authorization
|
2022-04-11 11:18:26 +00:00
|
|
|
description: Bearer token body to provide with NeoFS request. Must have 'Bearer ' prefix.
|
2022-04-11 09:35:06 +00:00
|
|
|
|
|
|
|
security:
|
|
|
|
- BearerAuth: [ ]
|
|
|
|
|
2022-04-11 11:18:26 +00:00
|
|
|
parameters:
|
|
|
|
signatureParam:
|
|
|
|
in: header
|
2022-04-14 08:53:13 +00:00
|
|
|
name: X-Bearer-Signature
|
2022-04-11 11:18:26 +00:00
|
|
|
description: Base64 encoded signature for bearer token
|
|
|
|
type: string
|
|
|
|
required: true
|
|
|
|
signatureKeyParam:
|
|
|
|
in: header
|
2022-04-14 08:53:13 +00:00
|
|
|
name: X-Bearer-Signature-Key
|
2022-04-11 11:18:26 +00:00
|
|
|
description: Hex encoded the public part of the key that signed the bearer token
|
|
|
|
type: string
|
|
|
|
required: true
|
2022-04-15 07:03:00 +00:00
|
|
|
signatureScheme:
|
|
|
|
in: query
|
|
|
|
name: walletConnect
|
|
|
|
description: Use wallect connect signature scheme or not
|
|
|
|
type: boolean
|
|
|
|
default: false
|
2022-04-13 13:00:04 +00:00
|
|
|
containerId:
|
|
|
|
in: path
|
|
|
|
name: containerId
|
|
|
|
type: string
|
|
|
|
required: true
|
|
|
|
description: Base58 encoded container id
|
2022-04-14 08:53:13 +00:00
|
|
|
objectId:
|
2022-04-13 13:00:04 +00:00
|
|
|
in: path
|
|
|
|
name: objectId
|
|
|
|
type: string
|
|
|
|
required: true
|
|
|
|
description: Base58 encoded object id
|
2022-04-11 11:18:26 +00:00
|
|
|
|
2022-04-11 09:35:06 +00:00
|
|
|
paths:
|
|
|
|
/auth:
|
|
|
|
post:
|
|
|
|
operationId: auth
|
|
|
|
summary: Form bearer token to futher requests
|
|
|
|
security: [ ]
|
|
|
|
parameters:
|
2022-06-09 09:59:02 +00:00
|
|
|
- in: header
|
|
|
|
name: X-Bearer-Owner-Id
|
|
|
|
description: Owner Id (wallet address) that will sign the token
|
|
|
|
type: string
|
|
|
|
required: true
|
2022-04-11 09:35:06 +00:00
|
|
|
- in: header
|
|
|
|
description: Supported operation scope for token
|
2022-04-14 08:53:13 +00:00
|
|
|
name: X-Bearer-Scope
|
2022-04-11 09:35:06 +00:00
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- object
|
|
|
|
- container
|
|
|
|
required: true
|
|
|
|
- in: header
|
|
|
|
description: Token lifetime in epoch
|
2022-04-14 08:53:13 +00:00
|
|
|
name: X-Bearer-Lifetime
|
2022-04-11 09:35:06 +00:00
|
|
|
type: integer
|
|
|
|
default: 100
|
|
|
|
- in: body
|
|
|
|
name: token
|
|
|
|
required: true
|
|
|
|
description: Bearer token
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/Bearer'
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Base64 encoded stable binary marshaled bearer token
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/TokenResponse'
|
|
|
|
400:
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/Error'
|
|
|
|
|
|
|
|
/objects:
|
|
|
|
parameters:
|
2022-04-11 11:18:26 +00:00
|
|
|
- $ref: '#/parameters/signatureParam'
|
|
|
|
- $ref: '#/parameters/signatureKeyParam'
|
2022-04-15 07:03:00 +00:00
|
|
|
- $ref: '#/parameters/signatureScheme'
|
2022-04-11 09:35:06 +00:00
|
|
|
put:
|
|
|
|
operationId: putObject
|
|
|
|
summary: Upload object to NeoFS
|
|
|
|
parameters:
|
|
|
|
- in: body
|
|
|
|
required: true
|
|
|
|
name: object
|
|
|
|
description: Object info to upload
|
|
|
|
schema:
|
2022-04-20 14:52:41 +00:00
|
|
|
$ref: '#/definitions/ObjectUpload'
|
2022-04-11 09:35:06 +00:00
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Address of uploaded objects
|
|
|
|
schema:
|
2022-04-18 08:30:34 +00:00
|
|
|
$ref: '#/definitions/Address'
|
|
|
|
400:
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/Error'
|
|
|
|
|
|
|
|
/objects/{containerId}/search:
|
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/signatureParam'
|
|
|
|
- $ref: '#/parameters/signatureKeyParam'
|
|
|
|
- $ref: '#/parameters/signatureScheme'
|
|
|
|
- $ref: '#/parameters/containerId'
|
|
|
|
post:
|
|
|
|
operationId: searchObjects
|
|
|
|
summary: Search objects by filters
|
|
|
|
parameters:
|
|
|
|
- in: query
|
|
|
|
name: offset
|
|
|
|
type: integer
|
|
|
|
default: 0
|
|
|
|
minimum: 0
|
|
|
|
description: The number of containers to skip before starting to collect the result set.
|
|
|
|
- in: query
|
|
|
|
name: limit
|
|
|
|
type: integer
|
|
|
|
default: 100
|
|
|
|
minimum: 1
|
|
|
|
maximum: 10000
|
|
|
|
description: The numbers of containers to return.
|
|
|
|
- in: body
|
|
|
|
required: true
|
|
|
|
name: searchFilters
|
|
|
|
description: Filters to search objects
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/SearchFilters'
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: List of objects
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ObjectList'
|
2022-04-11 09:35:06 +00:00
|
|
|
400:
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/Error'
|
|
|
|
|
2022-04-11 11:18:26 +00:00
|
|
|
/objects/{containerId}/{objectId}:
|
2022-04-11 09:35:06 +00:00
|
|
|
parameters:
|
2022-04-11 11:18:26 +00:00
|
|
|
- $ref: '#/parameters/signatureParam'
|
|
|
|
- $ref: '#/parameters/signatureKeyParam'
|
2022-04-15 07:03:00 +00:00
|
|
|
- $ref: '#/parameters/signatureScheme'
|
2022-04-13 13:00:04 +00:00
|
|
|
- $ref: '#/parameters/containerId'
|
2022-04-14 08:53:13 +00:00
|
|
|
- $ref: '#/parameters/objectId'
|
2022-04-11 11:18:26 +00:00
|
|
|
get:
|
|
|
|
operationId: getObjectInfo
|
2022-04-20 14:10:43 +00:00
|
|
|
summary: Get object info by address
|
|
|
|
parameters:
|
|
|
|
- in: query
|
|
|
|
name: range-offset
|
|
|
|
type: integer
|
|
|
|
minimum: 0
|
|
|
|
- in: query
|
|
|
|
name: range-length
|
|
|
|
type: integer
|
|
|
|
minimum: 1
|
|
|
|
- in: query
|
|
|
|
name: max-payload-size
|
|
|
|
type: integer
|
|
|
|
default: 4194304
|
|
|
|
minimum: 0
|
|
|
|
maximum: 524288000
|
|
|
|
description: |
|
|
|
|
Max payload size (in bytes) that can be included in the response.
|
|
|
|
If the actual size is greater than this params the payload won't be included in the response.
|
2022-04-11 11:18:26 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Object info
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ObjectInfo'
|
|
|
|
400:
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/Error'
|
2022-04-14 08:53:13 +00:00
|
|
|
delete:
|
|
|
|
operationId: deleteObject
|
|
|
|
summary: Remove object from NeoFS
|
|
|
|
responses:
|
|
|
|
204:
|
|
|
|
description: Successful deletion
|
|
|
|
400:
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/Error'
|
2022-04-11 11:18:26 +00:00
|
|
|
|
|
|
|
/containers:
|
2022-04-11 09:35:06 +00:00
|
|
|
put:
|
|
|
|
operationId: putContainer
|
|
|
|
summary: Create new container in NeoFS
|
|
|
|
parameters:
|
2022-04-13 15:23:03 +00:00
|
|
|
- $ref: '#/parameters/signatureParam'
|
|
|
|
- $ref: '#/parameters/signatureKeyParam'
|
2022-04-15 07:03:00 +00:00
|
|
|
- $ref: '#/parameters/signatureScheme'
|
2022-04-13 08:41:04 +00:00
|
|
|
- in: query
|
2022-06-15 14:32:28 +00:00
|
|
|
name: name-scope-global
|
|
|
|
description: Provide this parameter to register container name in NNS service
|
2022-04-13 08:41:04 +00:00
|
|
|
type: boolean
|
|
|
|
default: false
|
2022-04-11 09:35:06 +00:00
|
|
|
- in: body
|
|
|
|
name: container
|
|
|
|
required: true
|
|
|
|
description: Container info
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
containerName:
|
|
|
|
type: string
|
|
|
|
placementPolicy:
|
|
|
|
type: string
|
|
|
|
basicAcl:
|
|
|
|
type: string
|
|
|
|
example:
|
|
|
|
containerId: container
|
|
|
|
placementPolicy: "REP 3"
|
|
|
|
basicAcl: public-read-write
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Address of uploaded objects
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
containerId:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- containerId
|
|
|
|
example:
|
|
|
|
containerId: 5HZTn5qkRnmgSz9gSrw22CEdPPk6nQhkwf2Mgzyvkikv
|
|
|
|
400:
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/Error'
|
2022-04-13 15:23:03 +00:00
|
|
|
get:
|
|
|
|
operationId: listContainers
|
|
|
|
summary: Get list of containers
|
|
|
|
security: [ ]
|
|
|
|
parameters:
|
|
|
|
- in: query
|
|
|
|
name: ownerId
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: Base58 encoded owner id
|
|
|
|
- in: query
|
|
|
|
name: offset
|
|
|
|
type: integer
|
|
|
|
default: 0
|
|
|
|
minimum: 0
|
|
|
|
description: The number of containers to skip before starting to collect the result set.
|
|
|
|
- in: query
|
|
|
|
name: limit
|
|
|
|
type: integer
|
|
|
|
default: 100
|
|
|
|
minimum: 1
|
|
|
|
maximum: 10000
|
|
|
|
description: The numbers of containers to return.
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Containers info
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ContainerList'
|
|
|
|
400:
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/Error'
|
2022-04-11 09:35:06 +00:00
|
|
|
|
|
|
|
/containers/{containerId}:
|
2022-04-13 08:41:04 +00:00
|
|
|
parameters:
|
2022-04-13 13:00:04 +00:00
|
|
|
- $ref: '#/parameters/containerId'
|
2022-04-11 09:35:06 +00:00
|
|
|
get:
|
|
|
|
operationId: getContainer
|
|
|
|
summary: Get container by id
|
|
|
|
security: [ ]
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Container info
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ContainerInfo'
|
|
|
|
400:
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/Error'
|
2022-04-13 08:41:04 +00:00
|
|
|
delete:
|
|
|
|
operationId: deleteContainer
|
|
|
|
summary: Delete container by id
|
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/signatureParam'
|
|
|
|
- $ref: '#/parameters/signatureKeyParam'
|
2022-04-15 07:03:00 +00:00
|
|
|
- $ref: '#/parameters/signatureScheme'
|
2022-04-13 08:41:04 +00:00
|
|
|
responses:
|
|
|
|
204:
|
|
|
|
description: Successul deletion
|
|
|
|
400:
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/Error'
|
2022-04-13 13:00:04 +00:00
|
|
|
/containers/{containerId}/eacl:
|
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/containerId'
|
|
|
|
put:
|
|
|
|
operationId: putContainerEACL
|
|
|
|
summary: Set container EACL by id
|
|
|
|
parameters:
|
|
|
|
- $ref: '#/parameters/signatureParam'
|
|
|
|
- $ref: '#/parameters/signatureKeyParam'
|
2022-04-15 07:03:00 +00:00
|
|
|
- $ref: '#/parameters/signatureScheme'
|
2022-04-13 13:00:04 +00:00
|
|
|
- in: body
|
|
|
|
name: eacl
|
|
|
|
required: true
|
|
|
|
description: EACL for container
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/Eacl'
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Successfule EACL upading
|
|
|
|
400:
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/Error'
|
|
|
|
get:
|
|
|
|
operationId: getContainerEACL
|
|
|
|
summary: Get container EACL by id
|
|
|
|
security: [ ]
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Container EACL information
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/Eacl'
|
|
|
|
400:
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/Error'
|
2022-04-11 09:35:06 +00:00
|
|
|
|
|
|
|
definitions:
|
|
|
|
Bearer:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
object:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/Record'
|
|
|
|
container:
|
|
|
|
$ref: '#/definitions/Rule'
|
|
|
|
Record:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
action:
|
|
|
|
$ref: '#/definitions/Action'
|
|
|
|
operation:
|
|
|
|
$ref: '#/definitions/Operation'
|
|
|
|
filters:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/Filter'
|
|
|
|
targets:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/Target'
|
|
|
|
required:
|
|
|
|
- action
|
|
|
|
- operation
|
|
|
|
- filters
|
|
|
|
- targets
|
|
|
|
example:
|
|
|
|
operation: GET
|
|
|
|
action: ALLOW
|
|
|
|
filters: [ ]
|
|
|
|
targets:
|
|
|
|
- role: OTHERS
|
|
|
|
keys: [ ]
|
|
|
|
Action:
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- ALLOW
|
|
|
|
- DENY
|
|
|
|
Operation:
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- GET
|
|
|
|
- HEAD
|
|
|
|
- PUT
|
|
|
|
- DELETE
|
|
|
|
- SEARCH
|
|
|
|
- RANGE
|
|
|
|
- RANGEHASH
|
|
|
|
Filter:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
headerType:
|
|
|
|
$ref: '#/definitions/HeaderType'
|
|
|
|
matchType:
|
|
|
|
$ref: '#/definitions/MatchType'
|
|
|
|
key:
|
|
|
|
type: string
|
|
|
|
value:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- headerType
|
|
|
|
- matchType
|
|
|
|
- key
|
|
|
|
- value
|
|
|
|
example:
|
|
|
|
headerType: OBJECT
|
|
|
|
matchType: STRING_NOT_EQUAL
|
|
|
|
key: FileName
|
|
|
|
value: myfile
|
|
|
|
HeaderType:
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- REQUEST
|
|
|
|
- OBJECT
|
|
|
|
- SERVICE
|
|
|
|
MatchType:
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- STRING_EQUAL
|
|
|
|
- STRING_NOT_EQUAL
|
|
|
|
Target:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
role:
|
|
|
|
$ref: '#/definitions/Role'
|
|
|
|
keys:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- role
|
|
|
|
- keys
|
|
|
|
example:
|
|
|
|
role: USER
|
|
|
|
keys:
|
|
|
|
- 021dc56fc6d81d581ae7605a8e00e0e0bab6cbad566a924a527339475a97a8e38e
|
|
|
|
Role:
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- USER
|
|
|
|
- SYSTEM
|
|
|
|
- OTHERS
|
|
|
|
Rule:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
verb:
|
|
|
|
$ref: '#/definitions/Verb'
|
|
|
|
containerId:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- verb
|
|
|
|
Verb:
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- PUT
|
|
|
|
- DELETE
|
|
|
|
- SETEACL
|
|
|
|
TokenResponse:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
type:
|
|
|
|
$ref: '#/definitions/TokenType'
|
|
|
|
token:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- type
|
|
|
|
- token
|
|
|
|
example:
|
|
|
|
- type: object
|
|
|
|
token: sometoken-todo-add
|
|
|
|
- type: container
|
|
|
|
token: ChCpanIBJCpJuJz42KOmGMSnEhsKGTWquaX2Lq6GhhO4faOYkLD0f9WkXuYJlq4aBAhnGAMiIQJgFcIEghQB5lq3AJZOVswInwc1IGhlQ7NCUh4DFO3UATIECAEQAQ==
|
|
|
|
TokenType:
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- object
|
|
|
|
- container
|
|
|
|
ContainerInfo:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
containerId:
|
|
|
|
type: string
|
|
|
|
version:
|
|
|
|
type: string
|
|
|
|
ownerId:
|
|
|
|
type: string
|
|
|
|
basicAcl:
|
|
|
|
type: string
|
|
|
|
placementPolicy:
|
|
|
|
type: string
|
|
|
|
attributes:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/Attribute'
|
2022-04-11 11:18:26 +00:00
|
|
|
required:
|
|
|
|
- containerId
|
|
|
|
- version
|
|
|
|
- ownerId
|
|
|
|
- basicAcl
|
|
|
|
- placementPolicy
|
|
|
|
- attributes
|
2022-04-11 09:35:06 +00:00
|
|
|
example:
|
|
|
|
containerId: 5HZTn5qkRnmgSz9gSrw22CEdPPk6nQhkwf2Mgzyvkikv
|
|
|
|
version: "2.11"
|
|
|
|
ownerId: NbUgTSFvPmsRxmGeWpuuGeJUoRoi6PErcM
|
|
|
|
basicAcl: "0x1fbf9fff"
|
|
|
|
placementPolicy: "REP 2"
|
|
|
|
attribute:
|
|
|
|
- key: Timestamp
|
|
|
|
value: "1648810072"
|
|
|
|
- key: Name
|
|
|
|
value: container
|
2022-04-13 15:23:03 +00:00
|
|
|
ContainerList:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
size:
|
|
|
|
type: integer
|
|
|
|
containers:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/ContainerBaseInfo'
|
|
|
|
required:
|
|
|
|
- size
|
|
|
|
- containers
|
2022-04-18 08:30:34 +00:00
|
|
|
SearchFilters:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
filters:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/SearchFilter'
|
|
|
|
required:
|
|
|
|
- filters
|
|
|
|
SearchFilter:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
key:
|
|
|
|
type: string
|
|
|
|
value:
|
|
|
|
type: string
|
|
|
|
match:
|
|
|
|
$ref: '#/definitions/SearchMatch'
|
|
|
|
required:
|
|
|
|
- key
|
|
|
|
- value
|
|
|
|
- match
|
|
|
|
SearchMatch:
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- MatchStringEqual
|
|
|
|
- MatchStringNotEqual
|
|
|
|
- MatchNotPresent
|
|
|
|
- MatchCommonPrefix
|
2022-04-13 15:23:03 +00:00
|
|
|
ContainerBaseInfo:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
containerId:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- containerId
|
2022-04-18 08:30:34 +00:00
|
|
|
ObjectList:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
size:
|
|
|
|
type: integer
|
|
|
|
objects:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/ObjectBaseInfo'
|
|
|
|
required:
|
|
|
|
- size
|
|
|
|
- objects
|
|
|
|
ObjectBaseInfo:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
address:
|
|
|
|
$ref: '#/definitions/Address'
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- address
|
2022-04-20 14:52:41 +00:00
|
|
|
ObjectUpload:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
containerId:
|
|
|
|
type: string
|
|
|
|
fileName:
|
|
|
|
type: string
|
|
|
|
payload:
|
|
|
|
type: string
|
|
|
|
attributes:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/Attribute'
|
|
|
|
required:
|
|
|
|
- containerId
|
|
|
|
- fileName
|
|
|
|
example:
|
|
|
|
containerId: 5HZTn5qkRnmgSz9gSrw22CEdPPk6nQhkwf2Mgzyvkikv
|
|
|
|
fileName: myFile.txt
|
|
|
|
payload: Y29udGVudCBvZiBmaWxl
|
|
|
|
attributes:
|
|
|
|
- key: User-Attribute
|
|
|
|
value: some-value
|
2022-04-11 11:18:26 +00:00
|
|
|
ObjectInfo:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
containerId:
|
|
|
|
type: string
|
|
|
|
objectId:
|
|
|
|
type: string
|
|
|
|
ownerId:
|
|
|
|
type: string
|
|
|
|
attributes:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/Attribute'
|
2022-04-20 14:10:43 +00:00
|
|
|
objectSize:
|
|
|
|
type: integer
|
|
|
|
description: Object full payload size
|
|
|
|
payloadSize:
|
|
|
|
type: integer
|
|
|
|
description: Payload size in response
|
|
|
|
payload:
|
|
|
|
type: string
|
|
|
|
description: Base64 encoded object payload
|
2022-04-11 11:18:26 +00:00
|
|
|
required:
|
|
|
|
- containerId
|
|
|
|
- objectId
|
|
|
|
- ownerId
|
|
|
|
- attributes
|
2022-04-20 14:10:43 +00:00
|
|
|
- objectSize
|
|
|
|
- payloadSize
|
2022-04-11 11:18:26 +00:00
|
|
|
example:
|
|
|
|
containerId: 5HZTn5qkRnmgSz9gSrw22CEdPPk6nQhkwf2Mgzyvkikv
|
|
|
|
objectId: 8N3o7Dtr6T1xteCt6eRwhpmJ7JhME58Hyu1dvaswuTDd
|
|
|
|
ownerId: NbUgTSFvPmsRxmGeWpuuGeJUoRoi6PErcM
|
|
|
|
attribute:
|
|
|
|
- key: Timestamp
|
|
|
|
value: "1648810072"
|
|
|
|
- key: Name
|
|
|
|
value: object
|
2022-04-18 08:30:34 +00:00
|
|
|
Address:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
containerId:
|
|
|
|
type: string
|
|
|
|
objectId:
|
2022-04-20 14:10:43 +00:00
|
|
|
type: string
|
2022-04-18 08:30:34 +00:00
|
|
|
required:
|
|
|
|
- containerId
|
|
|
|
- objectId
|
|
|
|
example:
|
|
|
|
objectId: 8N3o7Dtr6T1xteCt6eRwhpmJ7JhME58Hyu1dvaswuTDd
|
|
|
|
containerId: 5HZTn5qkRnmgSz9gSrw22CEdPPk6nQhkwf2Mgzyvkikv
|
2022-04-13 13:00:04 +00:00
|
|
|
Eacl:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
containerId:
|
|
|
|
type: string
|
|
|
|
readOnly: true
|
|
|
|
records:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/Record'
|
|
|
|
required:
|
|
|
|
- records
|
2022-04-11 09:35:06 +00:00
|
|
|
Attribute:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
key:
|
|
|
|
type: string
|
|
|
|
value:
|
|
|
|
type: string
|
2022-04-11 11:18:26 +00:00
|
|
|
required:
|
|
|
|
- key
|
|
|
|
- value
|
2022-04-11 09:35:06 +00:00
|
|
|
Principal:
|
|
|
|
type: string
|
|
|
|
Error:
|
|
|
|
type: string
|