2021-11-11 18:31:28 +00:00
|
|
|
#!/usr/bin/env python3
|
2021-11-16 16:14:01 +00:00
|
|
|
"""Unassigned views"""
|
2021-11-11 18:31:28 +00:00
|
|
|
import subprocess
|
2021-11-16 16:14:01 +00:00
|
|
|
from flask_restful import Resource, reqparse
|
2021-11-11 18:31:28 +00:00
|
|
|
|
|
|
|
|
2021-11-18 07:25:33 +00: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
|
|
|
|
"""
|
2021-11-22 16:50:50 +00:00
|
|
|
return {"version": "1.1.0"}
|