server.main =========== .. py:module:: server.main Attributes ---------- .. autoapisummary:: server.main.unused server.main.app server.main.templates Functions --------- .. autoapisummary:: server.main.main server.main.get_channel_summary server.main.get_channel_cards server.main.create_post server.main.import_post server.main.newsgroups Module Contents --------------- .. py:data:: unused .. py:data:: app .. py:function:: main() -> list[server.schemas.Channel] :async: .. py:function:: get_channel_summary(name: str) -> server.schemas.ChannelSummary :async: .. py:function:: get_channel_cards(name: str, page: int = 1, page_size: int = 10) -> list[server.schemas.Card] :async: http://localhost:5001/api/channel/eric.public/cards?page=2&page_size=25 .. py:function:: create_post(card: server.schemas.NewCard) -> bool :async: .. py:function:: import_post(name: str, card: server.schemas.CardRef) -> bool :async: .. py:function:: newsgroups(request: fastapi.Request) -> fastapi.responses.HTMLResponse :async: .. py:data:: templates