API-Referenz
Freigaben
Funktionsunterstützung über app.capabilities prüfen, Autorisierung über app.access und Host-Berechtigungen. Die Beispiele verwenden synthetische Werte; vor dem Aufruf Pfade, IDs, Eingaben und Filter ersetzen.
Typdefinitionen
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!
}