selfprivacy-rest-api/selfprivacy_api/graphql/schema.py

23 lines
449 B
Python
Raw Normal View History

2022-06-24 17:12:32 +00: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 18:14:20 +00:00
2022-06-24 17:12:32 +00:00
system: System
2022-06-24 18:14:20 +00:00
2022-06-24 17:12:32 +00:00
@strawberry.field
def api(self) -> Api:
"""API access status"""
return Api()
2022-06-24 18:14:20 +00:00
2022-06-24 17:12:32 +00:00
schema = strawberry.Schema(query=Query)