Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1234567891011121314151617
  1. from flask_restx import Resource, fields
  2. from . import api, console_ns
  3. @console_ns.route("/ping")
  4. class PingApi(Resource):
  5. @api.doc("health_check")
  6. @api.doc(description="Health check endpoint for connection testing")
  7. @api.response(
  8. 200,
  9. "Success",
  10. api.model("PingResponse", {"result": fields.String(description="Health check result", example="pong")}),
  11. )
  12. def get(self):
  13. """Health check endpoint for connection testing"""
  14. return {"result": "pong"}