mirror of
https://github.com/unraid/api.git
synced 2026-01-14 12:39:53 -06:00
21
app/graphql/schema/types/apikeys/apikey.graphql
Normal file
21
app/graphql/schema/types/apikeys/apikey.graphql
Normal file
@@ -0,0 +1,21 @@
|
||||
input apiKeyInput {
|
||||
password: String!
|
||||
}
|
||||
|
||||
type Query {
|
||||
"""Get all apikeys"""
|
||||
apiKeys: [ApiKey] @func(module: "get-apikeys")
|
||||
}
|
||||
|
||||
type Mutation {
|
||||
"""Get user apikey"""
|
||||
authenticate(name: String, input: apiKeyInput): ApiKey @func(module: "apikeys/name/get-apikey")
|
||||
}
|
||||
|
||||
type ApiKey {
|
||||
name: String!
|
||||
key: String!
|
||||
description: String
|
||||
scopes: JSON!
|
||||
expiresAt: Long!
|
||||
}
|
||||
Reference in New Issue
Block a user