2022-06-24 20:12:32 +03:00
|
|
|
"""GraphQL API for SelfPrivacy."""
|
|
|
|
# pylint: disable=too-few-public-methods
|
|
|
|
import typing
|
|
|
|
import strawberry
|
|
|
|
|
|
|
|
from selfprivacy_api.graphql.queries.api import Api
|
|
|
|
from selfprivacy_api.graphql.queries.system import System
|
|
|
|
|
|
|
|
|
|
|
|
@strawberry.type
|
|
|
|
class Query:
|
|
|
|
"""Root schema for queries"""
|
2022-06-24 21:14:20 +03:00
|
|
|
|
2022-06-24 20:12:32 +03:00
|
|
|
system: System
|
2022-06-24 21:14:20 +03:00
|
|
|
|
2022-06-24 20:12:32 +03:00
|
|
|
@strawberry.field
|
|
|
|
def api(self) -> Api:
|
|
|
|
"""API access status"""
|
|
|
|
return Api()
|
|
|
|
|
2022-06-24 21:14:20 +03:00
|
|
|
|
2022-06-24 20:12:32 +03:00
|
|
|
schema = strawberry.Schema(query=Query)
|