Referencia de la API
Recursos compartidos
Consultar app.capabilities para comprobar la compatibilidad de funciones y app.access junto con los permisos del anfitrión para la autorización. Los ejemplos usan valores sintéticos; sustituir las rutas, ID, entradas y filtros antes de llamar.
Definiciones de tipos
graphql
type Mutation {
createShare(input: ShareInput!): Share!
deleteShare(id: ID!): Boolean!
updateShare(id: ID!, input: ShareInput!): Share!
}
type Query {
share(id: ID!): Share
shares: [Share!]!
}
scalar Instant
type Share {
id: ID!
name: String!
password: String!
expiresAt: Instant
readOnly: Boolean!
data: [SharePath!]!
url: String!
}
input ShareInput {
name: String!
password: String!
expiresAt: Instant
readOnly: Boolean!
data: [SharePathInput!]!
}
type SharePath {
virtualPath: String!
realPath: String!
isDir: Boolean!
}
input SharePathInput {
virtualPath: String!
realPath: String!
isDir: Boolean!
}