x402

Docstring Generate (x402)

Add Python docstrings to functions and classes. Supports Google, NumPy, and Sphinx styles.

get/x402/v2/docstring-generate

Request

  • Base URL: https://api.strale.io
  • URL: https://api.strale.io/x402/v2/docstring-generate
  • Auth: none required

Query parameters

codestring required
stylestring

google/numpy/sphinx

Response

Success

stylestring
documented_codestring
functions_documentedinteger

Example response

{
  "note": "Input code is JavaScript, not Python. No Python docstrings can be added to non-Python code.",
  "style": "conventional",
  "documented_code": "function hello() { return 'world'; }",
  "classes_documented": 0,
  "functions_documented": 0
}

Changes

No recorded changes to this operation across all 1 revision of this API.