tstor/graphql/mutation.graphql
royalcat fa1fdcfc63
All checks were successful
docker / build-docker (linux/amd64) (push) Successful in 1m39s
docker / build-docker (linux/386) (push) Successful in 1m48s
docker / build-docker (linux/arm64) (push) Successful in 8m42s
docker / build-docker (linux/arm64/v8) (push) Successful in 8m40s
docker / build-docker (linux/arm/v7) (push) Successful in 9m11s
upload file
2024-05-15 00:40:38 +03:00

26 lines
517 B
GraphQL

type Mutation {
validateTorrents(filter: TorrentFilter!): Boolean!
cleanupTorrents(files: Boolean, dryRun: Boolean!): CleanupResponse!
downloadTorrent(infohash: String!, file: String): DownloadTorrentResponse
uploadFile(dir: String!, file: Upload!): Boolean!
dedupeStorage: Int!
}
input TorrentFilter @oneOf {
everything: Boolean
infohash: String
# pathGlob: String!
}
type DownloadTorrentResponse {
task: Task
}
type CleanupResponse {
count: Int!
list: [String!]!
}
type Task {
id: ID!
}