mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-16 15:43:16 +00:00
28 lines
667 B
Python
28 lines
667 B
Python
#!/usr/bin/env python3
|
|
"""Unassigned views"""
|
|
import subprocess
|
|
from flask_restful import Resource, reqparse
|
|
|
|
|
|
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": "1.1.1"}
|