File

Send and receive file data, use POST as multipart/form-data to upload file GET method will return file as it was uploaded to server using POST api/File

APIDescription
GET api/File?hash={hash}

Get file, as it was uploaded through POST api/File Unlike Get in api/Swarm, this will return HTTPResponseMessage with content, executing this request in browser will return file as was uploaded with content type and disposition data must be uploaded with api/File in order to keep filename data. This method does a little bit of background work for you. First it queries the manifest, gets hash of content and then downloads contents as file with name specified in manifest

POST api/File

Post multipart/form-data, only one file is supported, define correct content-type

Raw

Used to upload files and data in raw form

APIDescription
GET api/Raw?hash={hash}

Get data in file, as it was uploaded through POST api/Raw data is downloaded to file named with hash

POST api/Raw

Post multipart/form-data, only one file is supported, define correct content-type

ContentType

Helper to get content types from hash location

APIDescription
GET api/ContentType?hash={hash}

Get content type of files stored in manifest

Manifest

Retrieve manifest data from location at hash

APIDescription
GET api/Manifest?hash={hash}

Get raw data at hash location, returns manifest or contents if there is no manifest

Swarm

Use to store and receive data in form of strings or BASE64 encoded data

APIDescription
GET api/Swarm?hash={hash}

Retrieve data from hash location returns whatever is stored at location

POST api/Swarm

post data to swarm to reduce encoding errors, send Base64 encoded data.

PUT api/Swarm?data={data}

Put data to swarm

Content

Get contents info from location

APIDescription
GET api/Content?hash={hash}

Get content of files stored in manifest for each file at location