| Required role: | ApiUser |
| GET | /impianti/{ImpiantoId}/files | Elenca i file e le cartelle all'interno della cartella radice dell'Impianto. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ImpiantoId | path | integer | Yes | ID univoco dell'Impianto di cui elencare i file. |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| RootFile | form | FileMetadataDto | No | |
| Contents | form | List<FileMetadataDto> | No | |
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | int | No | |
| Nome | form | string | No | |
| IsFolder | form | bool | No | |
| FolderId | form | int? | No | |
| DataCreazione | form | DateTime | No | |
| DataAggiornamento | form | DateTime | No | |
| ImpiantoId | form | int? | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /impianti/{ImpiantoId}/files HTTP/1.1
Host: gemma.api.kerberos.energy
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
rootFile:
{
id: 0,
nome: String,
isFolder: False,
folderId: 0,
impiantoId: 0
},
contents:
[
{
id: 0,
nome: String,
isFolder: False,
folderId: 0,
impiantoId: 0
}
],
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}