Skip to main content

Storage

info

Please note that this content is under development and is not ready for implementation. This status message will be updated as content development progresses.

Description

The Storage object is responsible for managing the configuration of the Storage service which is used to store and manage Verifiable Credentials within the Mock App system.

Example

{
"storage": {
"url": "http://localhost:3334/v1/documents",
"params": {
"resultPath": "/uri",
"bucket": "verifiable-credentials"
},
"options": {
"method": "POST",
"headers": {
"Content-Type": "application/json"
}
}
}
}

Definitions

PropertyRequiredDescriptionType
urlYesURL for the storage serviceString
paramsYesParameters for the storage serviceParams
optionsYesOptions for the storage service requestOptions

params

The params object contains specific parameters for the storage service.

PropertyRequiredDescriptionType
bucketYesThe name of the storage bucketString
resultPathYesThe path where the result (e.g., URI) will be stored in the responseString

options

The options object defines the HTTP request options for interacting with the storage service.

PropertyRequiredDescriptionType
methodYesThe HTTP method for the request (e.g., POST)String
headersYesThe headers to be sent with the requestHeaders

headers

PropertyRequiredDescriptionType
Content-TypeYesThe MIME type of the request bodyString