selfprivacy-rest-api/selfprivacy_api/resources/common.py
2022-06-24 20:08:58 +03:00

27 lines
712 B
Python

#!/usr/bin/env python3
"""Unassigned views"""
from flask_restful import Resource
from selfprivacy_api.graphql.queries.api import get_api_version
class ApiVersion(Resource):
"""SelfPrivacy API version"""
def get(self):
"""Get API version
---
tags:
- System
responses:
200:
description: API version
schema:
type: object
properties:
version:
type: string
description: API version
401:
description: Unauthorized
"""
return {"version": get_api_version()}