Skip to content

Commit

Permalink
Reference code API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
p1c2u committed Feb 12, 2024
1 parent 9762b79 commit cb89535
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
9 changes: 9 additions & 0 deletions docs/api/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
API Reference
=============

Documentation with information of functions, classes or methods and all other parts of the OpenAPI-core public API.

.. toctree::
:maxdepth: 1

openapi
5 changes: 5 additions & 0 deletions docs/api/openapi.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
`OpenAPI` class
===============

.. autoclass:: openapi_core.OpenAPI
:members:
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ openapi-core
customizations/index
security
extensions
api/index
contributing

Openapi-core is a Python library that adds client-side and server-side support
Expand Down
9 changes: 8 additions & 1 deletion openapi_core/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,14 @@


class OpenAPI:
"""OpenAPI class."""
"""`OpenAPI` application class, the main entrypoint class for OpenAPI-core.
Import :class:`OpenAPI` class from the main :module:`openapi_core` module::
from openapi_core import OpenAPI
app = OpenAPI(spec)
"""

def __init__(
self,
Expand Down

0 comments on commit cb89535

Please sign in to comment.