mirror of
https://github.com/unraid/api.git
synced 2026-01-15 13:10:01 -06:00
@@ -1,7 +1,12 @@
|
||||
input apiKeyInput {
|
||||
input authenticateInput {
|
||||
password: String!
|
||||
}
|
||||
|
||||
input updateApikeyInput {
|
||||
description: String
|
||||
expiresAt: Long!
|
||||
}
|
||||
|
||||
type Query {
|
||||
"""Get all apikeys"""
|
||||
apiKeys: [ApiKey] @func(module: "get-apikeys")
|
||||
@@ -9,7 +14,10 @@ type Query {
|
||||
|
||||
type Mutation {
|
||||
"""Get user apikey"""
|
||||
authenticate(name: String, input: apiKeyInput): ApiKey @func(module: "apikeys/name/get-apikey")
|
||||
getApiKey(name: String!, input: authenticateInput): ApiKey @func(module: "apikeys/name/get-apikey")
|
||||
|
||||
"""Update apikey"""
|
||||
updateApikey(name: String!, input: updateApikeyInput): ApiKey @func(module: "apikeys/name/update-apikey")
|
||||
}
|
||||
|
||||
type ApiKey {
|
||||
|
||||
Reference in New Issue
Block a user