API - Use OpenAPI docs (#3384)

This commit is contained in:
dgtlmoon
2025-08-24 00:48:17 +02:00
committed by GitHub
parent 8379fdb1f8
commit 3ae07ac633
16 changed files with 2245 additions and 5618 deletions

View File

@@ -10,22 +10,7 @@ class SystemInfo(Resource):
@auth.check_token
def get(self):
"""
@api {get} /api/v1/systeminfo Return system info
@apiDescription Return some info about the current system state
@apiExample {curl} Example usage:
curl http://localhost:5000/api/v1/systeminfo -H"x-api-key:813031b16330fe25e3780cf0325daa45"
HTTP/1.0 200
{
'queue_size': 10 ,
'overdue_watches': ["watch-uuid-list"],
'uptime': 38344.55,
'watch_count': 800,
'version': "0.40.1"
}
@apiName Get Info
@apiGroup System Information
"""
"""Return system info."""
import time
overdue_watches = []