Download OpenAPI specification:Download
A list of the currently provided Interfaces to interact with FairOS decentralised file system(dfs), implementing user, pod, file system, key value store and document store
PublicPodGetDirHandler is the api handler to list content of a directory from a public pod
| sharingRef required | string pod sharing reference |
| dirPath required | string dir location in the pod |
{- "dirs": [
- {
- "accessTime": "string",
- "blockSize": "string",
- "contentType": "string",
- "creationTime": "string",
- "mode": 0,
- "modificationTime": "string",
- "name": "string",
- "size": "string"
}
], - "files": [
- {
- "accessTime": "string",
- "blockSize": "string",
- "contentType": "string",
- "creationTime": "string",
- "mode": 0,
- "modificationTime": "string",
- "name": "string",
- "size": "string"
}
]
}PublicPodKVEntryGetHandler is the api handler to get key from key value store from a public pod
| sharingRef required | string pod sharing reference |
| tableName required | string table name |
| key required | string key to look up |
{- "keys": [
- "string"
], - "values": [
- 0
]
}PodReceiveSnapshotHandler is the api handler to receive shared pod snapshot from shared reference
| sharingRef required | string pod sharing reference |
| Cookie required | string cookie parameter |
{- "accessTime": "string",
- "blockSize": "string",
- "contentType": "string",
- "creationTime": "string",
- "dirList": [
- { }
], - "fileList": [
- {
- "accessTime": 0,
- "blockSize": 0,
- "compression": "string",
- "contentType": "string",
- "creationTime": 0,
- "fileInodeReference": [
- 0
], - "fileName": "string",
- "filePath": "string",
- "fileSize": 0,
- "mode": 0,
- "modificationTime": 0,
- "version": 0
}
], - "mode": 0,
- "modificationTime": "string",
- "name": "string",
- "size": "string"
}PodCloseHandler is the api handler to close an open pod
| Cookie required | string cookie parameter |
pod name
| podName | string |
{- "podName": "string"
}{- "message": "string"
}PodDeleteHandler is the api handler to delete a pod
| Cookie required | string cookie parameter |
pod name and user password
| podName | string |
{- "podName": "string"
}{- "message": "string"
}PodForkHandler is the api handler to fork a pod
| Cookie required | string cookie parameter |
pod name and user password
| forkName | string |
| podName | string |
{- "forkName": "string",
- "podName": "string"
}{- "message": "string"
}PodForkFromReferenceHandler is the api handler to fork a pod from a given sharing reference
| Cookie required | string cookie parameter |
pod name and user password
| forkName | string |
| podSharingReference | string |
{- "forkName": "string",
- "podSharingReference": "string"
}{- "message": "string"
}PodCreateHandler is the api handler to create a new pod
| Cookie required | string cookie parameter |
pod name and user password
| podName | string |
{- "podName": "string"
}{- "message": "string"
}PodOpenHandler is the api handler to open pod
| Cookie required | string cookie parameter |
pod name and user password
| podName | string |
{- "podName": "string"
}{- "message": "string"
}PodOpenAsyncHandler is the api handler to open pod asynchronously
| Cookie required | string cookie parameter |
pod name and user password
| podName | string |
{- "podName": "string"
}{- "message": "string"
}PodReceiveHandler is the api handler to receive shared pod from shared reference
| sharingRef required | string pod sharing reference |
| sharedPodName | string pod name to be saved as |
| Cookie required | string cookie parameter |
{- "message": "string"
}PodReceiveInfoHandler is the api handler to receive shared pod info from shared reference
| sharingRef required | string pod sharing reference |
| Cookie required | string cookie parameter |
{- "password": "string",
- "podAddress": "string",
- "podName": "string",
- "userAddress": "string"
}PodSyncHandler is the api handler to sync a pod's content
| Cookie required | string cookie parameter |
pod name
| podName | string |
{- "podName": "string"
}{- "message": "string"
}PodSyncAsyncHandler is the api handler to sync a pod's content
| Cookie required | string cookie parameter |
pod name
| podName | string |
{- "podName": "string"
}{- "message": "string"
}GrantRevokeHandler is the api handler for granting and revoking access in an existing act.
| actName required | string unique act identifier |
| grant | string grantee public key |
| revoke | string revoke public key |
| Cookie required | string cookie parameter |
{- "message": "string"
}CreateGranteeHandler is the api handler for creating act with grantee public key.
| actName required | string unique act identifier |
| grantee required | string grantee public key |
| Cookie required | string cookie parameter |
{- "message": "string"
}ACTListHandler is the api handler for listing acts.
| Cookie required | string cookie parameter |
{- "property1": {
- "content": [
- {
- "addedAt": "string",
- "owner": [
- 0
], - "ownerPublicKey": "string",
- "reference": "string",
- "topic": [
- 0
]
}
], - "createdAt": "string",
- "granteesRef": [
- 0
], - "historyRef": [
- 0
], - "name": "string"
}, - "property2": {
- "content": [
- {
- "addedAt": "string",
- "owner": [
- 0
], - "ownerPublicKey": "string",
- "reference": "string",
- "topic": [
- 0
]
}
], - "createdAt": "string",
- "granteesRef": [
- 0
], - "historyRef": [
- 0
], - "name": "string"
}
}ACTSavePod is the api handler for saving shared act pod.
| actName required | string unique act identifier |
| Cookie required | string cookie parameter |
acted pod info
| addedAt | string |
| owner | Array of integers |
| ownerPublicKey | string |
| reference | string |
| topic | Array of integers |
{- "addedAt": "string",
- "owner": [
- 0
], - "ownerPublicKey": "string",
- "reference": "string",
- "topic": [
- 0
]
}{- "message": "string"
}DirectoryModeHandler is the api handler to change mode of a directory
| Cookie required | string cookie parameter |
dir mode request
| dirPath | string |
| groupName | string |
| mode | string |
| podName | string |
{- "dirPath": "string",
- "groupName": "string",
- "mode": "string",
- "podName": "string"
}{- "message": "string"
}DirectoryLsHandler is the api handler for listing the contents of a directory.
| podName required | string pod name |
| dirPath required | string dir path |
| Cookie required | string cookie parameter |
{- "dirs": [
- {
- "accessTime": "string",
- "blockSize": "string",
- "contentType": "string",
- "creationTime": "string",
- "mode": 0,
- "modificationTime": "string",
- "name": "string",
- "size": "string"
}
], - "files": [
- {
- "accessTime": "string",
- "blockSize": "string",
- "contentType": "string",
- "creationTime": "string",
- "mode": 0,
- "modificationTime": "string",
- "name": "string",
- "size": "string"
}
]
}DirectoryMkdirHandler is the api handler to create a new directory.
| Cookie required | string cookie parameter |
pod name and dir path
| dirPath | string |
| groupName | string |
| podName | string |
{- "dirPath": "string",
- "groupName": "string",
- "podName": "string"
}{- "message": "string"
}DirectoryPresentHandler is the api handler which says if a directory is present or not
| podName required | string pod name |
| dirPath required | string dir path |
| Cookie required | string cookie parameter |
{- "error": "string",
- "present": true
}DirectoryRenameHandler is the api handler to rename a directory.
| Cookie required | string cookie parameter |
old name and new path
| groupName | string |
| newPath | string |
| oldPath | string |
| podName | string |
{- "groupName": "string",
- "newPath": "string",
- "oldPath": "string",
- "podName": "string"
}{- "message": "string"
}DirectoryRmdirHandler is the api handler to remove a directory.
| Cookie required | string cookie parameter |
pod name and dir path
| dirPath | string |
| groupName | string |
| podName | string |
{- "dirPath": "string",
- "groupName": "string",
- "podName": "string"
}{- "message": "string"
}DirectoryStatHandler is the api handler which gives the information about a directory
| podName required | string pod name |
| dirPath required | string dir path |
| Cookie required | string cookie parameter |
{- "accessTime": "string",
- "creationTime": "string",
- "dirName": "string",
- "dirPath": "string",
- "mode": 0,
- "modificationTime": "string",
- "noOfDirectories": "string",
- "noOfFiles": "string",
- "podName": "string"
}DocCountHandler is the api handler to count the number of documents in a given document database
| Cookie required | string cookie parameter |
doc table info
| expr | string |
| mutable | boolean |
| podName | string |
| si | string |
| tableName | string |
{- "expr": "string",
- "mutable": true,
- "podName": "string",
- "si": "string",
- "tableName": "string"
}{- "count": 0,
- "tableName": "string"
}DocDeleteHandler is the api handler to delete the given document database
| Cookie required | string cookie parameter |
doc table info
| podName | string |
| tableName | string |
{- "podName": "string",
- "tableName": "string"
}{- "message": "string"
}DocEntryDelHandler is the api handler to delete a document from a document datastore
| id | string |
| podName | string |
| tableName | string |
| Cookie required | string cookie parameter |
{- "message": "string"
}DocEntryGetHandler is the api handler to get a document from a document datastore
| podName required | string pod name |
| tableName required | string table name |
| id required | string id to search for |
| Cookie required | string cookie parameter |
{- "doc": "string"
}DocEntryPutHandler is the api handler add a document in to a document datastore
| doc | string |
| podName | string |
| tableName | string |
| Cookie required | string cookie parameter |
{- "message": "string"
}DocFindHandler is the api handler to select rows from a given document datastore
| podName required | string pod name |
| tableName required | string table name |
| expr required | string expression to search for. allowed operators in expr are =, >, =>, <=, <. eg: 'first_name=>John', 'first_name=>J.', 'first_name=>.', 'age=>30', 'age<=30'. if index is string, expr supports regex. we do not have support for multiple conditions in expr yet |
| limit | string number od documents |
| Cookie required | string cookie parameter |
{- "docs": [
- "string"
]
}DocIndexJsonHandler is the api handler to index a json file that is present in a pod, in to the given document database
| Cookie required | string cookie parameter |
index request
| fileName | string |
| podName | string |
| tableName | string |
{- "fileName": "string",
- "podName": "string",
- "tableName": "string"
}{- "message": "string"
}DocLoadJsonHandler is the api handler that indexes a json file that is present in the local file system
| podName required | string pod name |
| tableName required | string table name |
| Cookie required | string cookie parameter |
| json required | string <binary> json to index |
{- "message": "string"
}DocListHandler is the api handler which lists all the document database in a pod
| podName required | string pod name |
| Cookie required | string cookie parameter |
{- "tables": [
- {
- "indexes": [
- {
- "name": "string",
- "type": 0
}
], - "tableName": "string",
- "type": "string"
}
]
}DocCreateHandler is the api handler to create a new document database
| Cookie required | string cookie parameter |
doc table info. si or simple index is a comma separated list of keys and their types. eg: 'first_name=string,age=number'. valid index types can be 'string', 'number', 'map', 'list'. default index is 'id' and it should be of type string
| mutable | boolean |
| podName | string |
| si | string |
| tableName | string |
{- "mutable": true,
- "podName": "string",
- "si": "string",
- "tableName": "string"
}{- "message": "string"
}DocOpenHandler is the api handler to open a document database
| Cookie required | string cookie parameter |
doc table info
| mutable | boolean |
| podName | string |
| si | string |
| tableName | string |
{- "mutable": true,
- "podName": "string",
- "si": "string",
- "tableName": "string"
}{- "tables": [
- {
- "indexes": [
- {
- "name": "string",
- "type": 0
}
], - "tableName": "string",
- "type": "string"
}
]
}FileModeHandler is the api handler to change mode of a file
| Cookie required | string cookie parameter |
file mode request
| filePath | string |
| groupName | string |
| mode | string |
| podName | string |
{- "message": "string"
}FileReceiveHandler is the api handler to delete a file from a given pod
| Cookie required | string cookie parameter |
pod name and file path
| filePath | string |
| groupName | string |
| podName | string |
{- "filePath": "string",
- "groupName": "string",
- "podName": "string"
}{- "message": "string"
}FileReceiveHandler is the api handler to receive a file in a given pod
| podName required | string pod name |
| sharingRef required | string sharing reference |
| dirPath required | string file location |
| Cookie required | string cookie parameter |
{- "fileSharingReference": "string"
}FileReceiveInfoHandler is the api handler to receive a file info
| sharingRef required | string sharing reference |
| Cookie required | string cookie parameter |
{- "blockSize": "string",
- "compression": "string",
- "contentType": "string",
- "destAddress": "string",
- "name": "string",
- "numberOfBlocks": "string",
- "sharedTime": "string",
- "size": "string",
- "sourceAddress": "string"
}FileRenameHandler is the api handler to get the information of a file
| Cookie required | string cookie parameter |
old name & new name
| groupName | string |
| newPath | string |
| oldPath | string |
| podName | string |
{- "groupName": "string",
- "newPath": "string",
- "oldPath": "string",
- "podName": "string"
}{- "message": "string"
}FileStatHandler is the api handler to get the information of a file
| podName required | string pod name |
| filePath required | string file path |
| Cookie required | string cookie parameter |
{- "accessTime": "string",
- "blockSize": "string",
- "compression": "string",
- "contentType": "string",
- "creationTime": "string",
- "fileName": "string",
- "filePath": "string",
- "fileSize": "string",
- "mode": 0,
- "modificationTime": "string",
- "podName": "string"
}FileUpdateHandler is the api handler to update a file from a given offset
| Cookie required | string cookie parameter |
| podName required | string pod name |
| filePath required | string location |
| file required | string <binary> file content to update |
| offset required | string file offset |
{- "message": "string"
}FileUploadHandler is the api handler to upload a file from a local file system to the dfs
| fairOS-dfs-Compression | string Example: snappy, gzip cookie parameter |
| Cookie required | string cookie parameter |
| podName required | string pod name |
| dirPath required | string location |
| blockSize required | string block size to break the file |
| files required | string <binary> file to upload |
| overwrite | string overwrite the file if already exists |
{- "message": "string"
}GroupAcceptInviteHandler is the api handler to accept a group invite
| Cookie required | string cookie parameter |
reference of the invite
| reference | string |
{- "reference": "string"
}{- "message": "string"
}GroupAddMemberHandler is the api handler to add a member to a group
| Cookie required | string cookie parameter |
group name, member name and permission
| groupName | string |
| member | string |
| permission | integer |
{- "groupName": "string",
- "member": "string",
- "permission": 0
}{- "invite": "string"
}GroupCloseHandler is the api handler to close a group
| Cookie required | string cookie parameter |
group name
| groupName | string |
{- "groupName": "string"
}{- "message": "string"
}GroupDeleteHandler is the api handler to delete a new group
| Cookie required | string cookie parameter |
group name
| groupName | string |
{- "groupName": "string"
}{- "message": "string"
}{- "groups": [
- {
- "name": "string",
- "ownerAddress": "string",
- "ownerPublicKey": [
- 0
], - "password": "string",
- "secret": [
- 0
]
}
], - "sharedGroups": [
- {
- "name": "string",
- "ownerAddress": "string",
- "ownerPublicKey": [
- 0
], - "password": "string",
- "secret": [
- 0
]
}
]
}GroupCreateHandler is the api handler to create a new group
| Cookie required | string cookie parameter |
group name
| groupName | string |
{- "groupName": "string"
}{- "message": "string"
}GroupOpenHandler is the api handler to open a group
| Cookie required | string cookie parameter |
group name
| groupName | string |
{- "groupName": "string"
}{- "message": "string"
}GroupRemoveMemberHandler is the api handler to remove a member from a group
| Cookie required | string cookie parameter |
group name and member name
| groupName | string |
| member | string |
{- "groupName": "string",
- "member": "string"
}{- "message": "string"
}GroupUpdatePermissionHandler is the api handler to update a group permission
| Cookie required | string cookie parameter |
group name, member name and permission
| groupName | string |
| member | string |
| permission | integer |
{- "groupName": "string",
- "member": "string",
- "permission": 0
}{- "message": "string"
}KVCountHandler is the api handler to count the number of rows in a key value table
| Cookie required | string cookie parameter |
kv table request
| indexType | string |
| podName | string |
| tableName | string |
{- "indexType": "string",
- "podName": "string",
- "tableName": "string"
}{- "count": 0,
- "tableName": "string"
}KVDeleteHandler is the api handler to delete a key value table
| Cookie required | string cookie parameter |
kv table request
| indexType | string |
| podName | string |
| tableName | string |
{- "indexType": "string",
- "podName": "string",
- "tableName": "string"
}{- "message": "string"
}KVDelHandler is the api handler to delete a key and value from the kv table
| Cookie required | string cookie parameter |
delete request
| key | string |
| podName | string |
| tableName | string |
{- "key": "string",
- "podName": "string",
- "tableName": "string"
}{- "keys": [
- "string"
], - "values": "string"
}KVGetHandler is the api handler to get a value from the kv table
| podName required | string pod name |
| tableName required | string table name |
| key required | string key |
| Cookie required | string cookie parameter |
{- "keys": [
- "string"
], - "values": [
- 0
]
}KVGetDataHandler is the api handler to get raw value from the kv table
| podName required | string pod name |
| tableName required | string table name |
| key required | string key |
| format | string Example: format=byte-string, string format of the value |
| Cookie required | string cookie parameter |
{- "keys": [
- "string"
], - "values": "string"
}KVPresentHandler is the api handler to check if a value exists in the kv table
| podName required | string pod name |
| tableName required | string table name |
| key required | string key |
| Cookie required | string cookie parameter |
{- "message": "string"
}KVPutHandler is the api handler to put a key-value in the kv table
| Cookie required | string cookie parameter |
kv entry
| key | string |
| podName | string |
| tableName | string |
| value | string |
{- "key": "string",
- "podName": "string",
- "tableName": "string",
- "value": "string"
}{- "message": "string"
}KVExportHandler is the api handler to export from a particular key with the given prefix
| Cookie required | string cookie parameter |
kv export info
| endPrefix | string |
| limit | string |
| podName | string |
| startPrefix | string |
| tableName | string |
{- "endPrefix": "string",
- "limit": "string",
- "podName": "string",
- "startPrefix": "string",
- "tableName": "string"
}[- {
- "property1": [
- {
- "property1": "string",
- "property2": "string"
}
], - "property2": [
- {
- "property1": "string",
- "property2": "string"
}
]
}
]KVLoadCSVHandler is the api handler to load a csv file as key and value in a KV table
| Cookie required | string cookie parameter |
| podName required | string pod name |
| tableName required | string table name |
| memory | string keep in memory |
| csv required | string <binary> file to upload |
{- "message": "string"
}KVListHandler is the api handler to list all the key value tables in a pod
| podName required | string pod name |
| Cookie required | string cookie parameter |
{- "tables": [
- {
- "indexes": [
- "string"
], - "tableName": "string",
- "type": "string"
}
]
}KVCreateHandler is the api handler to create a key value table
| Cookie required | string cookie parameter |
kv table request
| indexType | string |
| podName | string |
| tableName | string |
{- "indexType": "string",
- "podName": "string",
- "tableName": "string"
}{- "message": "string"
}KVOpenHandler is the api handler to open a key value table
| Cookie required | string cookie parameter |
kv table request
| indexType | string |
| podName | string |
| tableName | string |
{- "indexType": "string",
- "podName": "string",
- "tableName": "string"
}{- "message": "string"
}KVSeekHandler is the api handler to seek to a particular key with the given prefix
| Cookie required | string cookie parameter |
kv seek info
| endPrefix | string |
| limit | string |
| podName | string |
| startPrefix | string |
| tableName | string |
{- "endPrefix": "string",
- "limit": "string",
- "podName": "string",
- "startPrefix": "string",
- "tableName": "string"
}{- "message": "string"
}KVGetNextHandler is the api handler to get the key and value from the current seek position
| podName required | string pod name |
| tableName required | string table name |
| Cookie required | string cookie parameter |
{- "keys": [
- "string"
], - "values": [
- 0
]
}deletes user info from swarm
| Cookie required | string cookie parameter |
user delete request
| password | string |
{- "password": "string"
}{- "message": "string"
}login user with the new ENS based authentication
username
| password | string |
| userName | string |
{- "password": "string",
- "userName": "string"
}{- "address": "string",
- "message": "string",
- "nameHash": "string",
- "publicKey": "string"
}login user with signature described in https://github.com/fairDataSociety/FIPs/blob/master/text/0063-external-account-generator.md
signature and password
| password | string |
| signature | string |
{- "password": "string",
- "signature": "string"
}{- "address": "string",
- "message": "string",
- "nameHash": "string",
- "publicKey": "string"
}registers new user with the new ENS based authentication
username
| mnemonic | string |
| password | string |
| userName | string |
{- "mnemonic": "string",
- "password": "string",
- "userName": "string"
}{- "accessToken": "string",
- "address": "string",
- "message": "string",
- "mnemonic": "string",
- "nameHash": "string",
- "publicKey": "string"
}