Documentation: Reference docs WIP tracking issue
This issue is for tracking work still to be completed for rollout of the reference api docs.
The following reference doc pages are incomplete (relative to docs/reference/):
- [x]
app.md- includeDEFAULT_CACHE_CONFIGand cross-ref inStarlite.__init__args - [x]
cache.md- [x]
CacheBackendProtocol- add abstract methods
- [x]
- [x]
config.md- fix ordering so same as module - [x]
connection.md- [x]
Request- docstrings for properties, include properties andjson()method - [x]
WebSocket- docstrings for properties, include properties andreceive_json()andsend_json()methods - [ ] consider factoring out a common
Connectionbase class with the properties defined and documented.
- [x]
- [x]
controller.md- complete__init__docstring and include class variables - [x]
datastructures.md- document and include all - [x]
dto.md- [x]
DTO- class docstring, class var docstrings, include class vars,from_model_instance(),from_model_instance_async(), andto_model_instance(). - [x]
DTOFactory- document__init__, include__init__and__call__
- [x]
- [x]
exceptions.md- [x]
exceptions.py: docstrings for each exception type and add name to.md - [x]
utils.py:create_exception_response()
- [x]
- [x]
enums.md- add all fromenums.py - [x]
handlers.md- [x]
asgi.py- [x] docstring for
ASGIRouteHandler.__init__() - [x] add
ASGIRouteHandlertohandlers.mdand include__init__() - [x] add
asgitohandlers.md
- [x] docstring for
- [x]
http.py- [x] docstring for
HTTPRouteHandler.__init__() - [x] add
HTTPRouteHandlertohandlers.mdand include__init__() - [x] add
routetohandlers.md - [ ] slim docstrings for each of the semantic handler decorators and include in
handlers.md
- [x] docstring for
- [x] `websocket.py
- [x] Add
WebsocketRouteHandlerandwebsockettohandlers.md
- [x] Add
- [x]
- [x]
logging.md- [x]
__init__.py- [x] docstring for
LoggingConfigclass - [x] docstrings for
LoggingConfigclass vars - [x] include
LoggingConfiginlogging.md
- [x] docstring for
- [x]
picologging.py- [x] docstring for
QueueListenerHandler.__init__() - [x] add
QueueListenerHandlertologging.mdand include__init__
- [x] docstring for
- [x]
standard.py- do same as forpicologging.py
- [x]
- [x]
middleware.md- [x]
authentication.py- [x] add docstring for
AbstractAuthenticationMiddleware.__init__() - [ ] we should probably use
utils.create_exception_response()inAbstractAuthenticationMiddleware.create_error_response() - [x] docstring for
AbstractAuthenticationMiddleware.create_error_response() - [x] docstring for
AbstractAuthenticationMiddleware.authenticate_request() - [x] add
AbstractAuthenticationMiddlewaretomiddleware.mdand include__init__,create_error_response()andauthenticate_request()
- [x] add docstring for
- [x]
csrf.py- [x] Add
CSRFMiddlewaretomiddleware.md
- [x] Add
- [x]
- [x]
openapi.md- [x]
controller.py- [x] docstring for
OpenAPIControllerclass - [x] docstrings for
OpenAPIControllerclass vars
- [x] docstring for
- [x]
- [x]
params.md- [ ] try and work out why black fails to format when
separate_signature: true - [x] full docstrings for
Parameter,BodyandDependency - [x] add each of above to
params.md
- [ ] try and work out why black fails to format when
- [x]
plugins.md- [ ]
base.py- [x] add class docstring to
PluginProtocol - [x] complete docstrings for
PluginProtocolabstract methods - [x] add
PluginProtocoltoplugins.mdand include all abstract methods
- [x] add class docstring to
- [x]
piccolo_orm.py- [x] class docstring for
PiccoloORMPluginand add toplugins.md
- [x] class docstring for
- [x]
sql_alchemy.py- [x] same as piccolo
- [x]
tortoise.py- [x] same as piccolo
- [ ]
- [ ]
response.md- [ ] include
__init__andserializer()forResponse - [ ] add
TemplateResponsetoresponse.mdand include__init__
- [ ] include
well two of these are done 😉
Other things TODO:
- [x] update the contributing docs with instructions for reference docs as part of contributions
- [x] change instructions in
CONTRIBUTING.mdfor serving docs locally - the docker approach won't work unless we run our own container with the extra dependencies, or find one to use.mkdocs servehas been working fine for me. - [ ] remove the WIP admonition once complete
- [ ] once all interfaces are included, do a final sweep to look for missing cross-references.
This is wrong: https://github.com/starlite-api/starlite/blob/db1eab98c50c1ed9fa176e7e06c3b34ddee68197/starlite/app.py#L123-L125
Documented in wrong location:
https://github.com/starlite-api/starlite/blob/db1eab98c50c1ed9fa176e7e06c3b34ddee68197/docs/reference/enums.md?plain=1#L15-L19
It's defined in config.py