Skip to content

Storage

Get all Assets in Storage

GET /api/storage

Returns all the assets in the Storage

Response

The response is an array of Assets

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
[
    {
        "_id": "65e88663842906285c2c8eff",
        "length": 5481,
        "chunkSize": 261120,
        "uploadDate": "2024-03-06T15:06:11.842Z",
        "filename": "65e886639d3c19dde220c349/thumbnail.png"
    },
    {
        "_id": "65e88666842906285c2c8f01",
        "length": 5993,
        "chunkSize": 261120,
        "uploadDate": "2024-03-06T15:06:14.399Z",
        "filename": "65e886669d3c19dde220c362/thumbnail.png"
    }
]

Delete the Asset in Storage

DELETE /api/storage/[id]

Delete the Asset in the Storage

Parameter Value Description
name id/key The id/key of the of the Asset to be deleted

Response

The response is an array of Assets

{}

Get all Global Variables

GET /api/globalvariables

Returns all the Global Variables stored in Erizos Studio

Response

The response is an array of Global Variables

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
[
    {
        "_id": "65f83a4ab9cbaad5e21209de",
        "name": "myglobalvar",
        "value": "Hello",
        "createdAt": "2024-03-18T12:57:46.162Z",
        "updatedAt": "2024-03-18T12:57:46.162Z",
        "__v": 0,
        "_type": "GLOBALVARIABLE"
    },
    {
        "_id": "65f83a5fb9cbaad5e21209ff",
        "name": "myglobalvar2",
        "value": "World",
        "createdAt": "2024-03-18T12:58:07.570Z",
        "updatedAt": "2024-03-18T12:58:07.570Z",
        "__v": 0,
        "_type": "GLOBALVARIABLE"
    }
]

Get the Global Variable by ID

GET /api/globalvariables/[id]

Returns the value of the Global Variables stored in Erizos Studio

Parameter Value Description
id id/key The id/key of the Global variable

Response

The response is Global Variables object

1
2
3
4
5
6
7
8
9
{
    "_id": "65f83a4ab9cbaad5e21209de",
    "name": "myglobalvar",
    "value": "Hello",
    "createdAt": "2024-03-18T12:57:46.162Z",
    "updatedAt": "2024-03-18T12:57:46.162Z",
    "__v": 0,
    "_type": "GLOBALVARIABLE"
}

Get a Key list of Global variable

GET /api/globalvariables/keys/list

Returns all the keys of Global Variables stored

Response

The response is list of global variable keys

1
2
3
4
[
    "myglobalvar",
    "myglobalvar2"
]

Checks whether the Global Variable Key exist

GET /api/globalvariables/keys/[name]/exists

Returns all the keys of Global Variables stored

Parameter Value Description
name id/key The id/key of the Global variable

Response

The response is whether the Key exist

1
2
3
{
    "exists": true
}