Content

Root resource for all content APIs

GET Application Content

Get the appication contents with the specific content-id

Securityapi_key
Request
path Parameters
cid
required
string

Content ID

Example: 7bdff929
id
required
string

Application ID

Example: b6ee555d61df4c0ae30099d3ba4acf5c-sample-01
Responses
200

200 response

400

400 response

403

The request is forbidden (Please input a valid API key)

get/hub/apps/{id}/contents/{cid}
Request samples
Response samples
application/json
{
  • "status": {
    },
  • "result": {
    }
}

Replace Application Content

Replace an existing application content

Securityapi_key
Request
path Parameters
cid
required
string

Content ID

id
required
string

Application ID

Request Body schema: application/json
required
text
required
string non-empty

Content text in UTF-8

hash
required
string [ 32 .. 1024 ] characters

A hash representation of the content that is to used for equality computation.

metadata
object

A key value JSON dictionary.

document
object

A key value JSON dictionary.

Responses
200

200 response

403

403 response

put/hub/apps/{id}/contents/{cid}
Request samples
application/json
{
  • "text": "string",
  • "hash": "stringstringstringstringstringst",
  • "metadata": { },
  • "document": { }
}
Response samples
application/json
{
  • "status": {
    },
  • "result": {
    }
}

Delete Application Content

Delete the application content with the specific content-id

Securityapi_key
Request
path Parameters
cid
required
string

Content ID

Example: 7s1ff929
id
required
string

Application ID

Example: b6ee555d61df4c0ae30099d3ba4acf5c-sample-01
Responses
200

200 response

400

400 response

403

The request is forbidden (Please input a valid API key)

404

Input application ID not found

delete/hub/apps/{id}/contents/{cid}
Request samples
Response samples
application/json
{
  • "status": {
    },
  • "result": {
    }
}

List All Application Content

List all contents of the specific application

Securityapi_key
Request
path Parameters
id
required
string

Application ID

Example: b6ee555d61df4c0ae30099d3ba4acf5c-sample-01
Responses
200

200 response

400

400 response

403

The request is forbidden (Please input a valid API key)

get/hub/apps/{id}/contents
Request samples
Response samples
application/json
{
  • "status": {
    },
  • "result": {
    }
}

Create New Application Content

Create a new contents for the specific application

Securityapi_key
Request
path Parameters
id
required
string

Application ID

Request Body schema: application/json
required
text
required
string non-empty

Content text in UTF-8

hash
required
string [ 32 .. 1024 ] characters

A hash representation of the content that is to used for equality computation.

metadata
object

A key value JSON dictionary.

document
object

A key value JSON dictionary.

Responses
200

200 response

400

Invalid request body

403

The request is forbidden (Please input a valid API key)

post/hub/apps/{id}/contents
Request samples
application/json
{
  • "text": "Hello there, can I sit there. How are you.",
  • "hash": "123456789012345678901234567890_11"
}
Response samples
application/json
{
  • "status": {
    },
  • "result": {
    }
}