2021-11-11 20:31:28 +02:00
|
|
|
#!/usr/bin/env python3
|
2021-11-16 18:14:01 +02:00
|
|
|
"""Unassigned views"""
|
2022-02-16 14:50:12 +02:00
|
|
|
from flask_restful import Resource
|
2021-11-11 20:31:28 +02:00
|
|
|
|
|
|
|
|
2021-11-18 09:25:33 +02:00
|
|
|
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
|
|
|
|
"""
|
2022-04-28 16:22:13 +03:00
|
|
|
return {"version": "1.2.3"}
|