diff --git a/app/graphql/schema/types/apikeys/apikey.graphql b/app/graphql/schema/types/apikeys/apikey.graphql new file mode 100644 index 000000000..567437152 --- /dev/null +++ b/app/graphql/schema/types/apikeys/apikey.graphql @@ -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! +} \ No newline at end of file