{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/blog/rubrics/{rubric_id}/articles/":{"get":{"tags":["blog"],"summary":"Get Articles","operationId":"get_articles_blog_rubrics__rubric_id__articles__get","parameters":[{"name":"rubric_id","in":"path","required":true,"schema":{"type":"integer","title":"Rubric Id"}},{"name":"tags","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"title":"Tags"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Offset"}},{"name":"search_query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search Query"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ArticleOutputSchema"},"title":"Response Get Articles Blog Rubrics  Rubric Id  Articles  Get"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blog/rubrics/{rubric_id}/articles/count/":{"get":{"tags":["blog"],"summary":"Get Articles Count","operationId":"get_articles_count_blog_rubrics__rubric_id__articles_count__get","parameters":[{"name":"rubric_id","in":"path","required":true,"schema":{"type":"integer","title":"Rubric Id"}},{"name":"tags","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"title":"Tags"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Offset"}},{"name":"search_query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search Query"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TotalCountSchema"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blog/tags/":{"get":{"tags":["blog"],"summary":"Get Tags","operationId":"get_tags_blog_tags__get","parameters":[{"name":"rubric_id","in":"query","required":true,"schema":{"type":"integer","title":"Rubric Id"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BlogTagSchema"},"title":"Response Get Tags Blog Tags  Get"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/checkout/":{"post":{"tags":["forms"],"summary":"Checkout","description":"Обработка формы заказа товаров","operationId":"checkout_checkout__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutForm"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CheckoutResponse"},{"type":"null"}],"title":"Response Checkout Checkout  Post"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/form/":{"post":{"tags":["forms"],"summary":"Send Simple Form","description":"Отправка простой формы","operationId":"send_simple_form_form__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimpleForm"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/collections/search/":{"post":{"tags":["collections"],"summary":"Search Collections","operationId":"search_collections_collections_search__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionSearchSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CollectionSearchResultSchema"},{"type":"null"}],"title":"Response Search Collections Collections Search  Post"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/system/health_check/":{"get":{"tags":["system"],"summary":"Ping Db","operationId":"ping_db_system_health_check__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string","title":"Response Ping Db System Health Check  Get"}}}},"404":{"description":"Not found"}}}},"/builder/":{"post":{"tags":["builder"],"summary":"Search Collections","operationId":"search_collections_builder__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildMessage"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string","title":"Response Search Collections Builder  Post"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ArticleInfoSchema":{"properties":{"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/BlogTagSchema"},"type":"array"},{"type":"null"}],"title":"Tags"}},"type":"object","required":["title"],"title":"ArticleInfoSchema"},"ArticleOutputSchema":{"properties":{"id":{"type":"integer","title":"Id"},"website_id":{"type":"integer","title":"Website Id"},"name":{"type":"string","title":"Name"},"url":{"type":"string","title":"Url"},"service_mode":{"type":"boolean","title":"Service Mode","default":false},"preview_url":{"type":"string","title":"Preview Url","default":""},"seo_title":{"type":"string","title":"Seo Title","default":""},"seo_description":{"type":"string","title":"Seo Description","default":""},"seo_keywords":{"type":"string","title":"Seo Keywords","default":""},"seo_indexing":{"type":"boolean","title":"Seo Indexing","default":true},"html_head":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html Head","default":""},"html_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html Body","default":""},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"first_published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Published At"},"is_published":{"type":"boolean","title":"Is Published","default":false},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"is_adaptive":{"type":"boolean","title":"Is Adaptive","default":false},"rubric":{"$ref":"#/components/schemas/InlineRubricSchema"},"article_info":{"$ref":"#/components/schemas/ArticleInfoSchema"}},"type":"object","required":["id","website_id","name","url","rubric","article_info"],"title":"ArticleOutputSchema"},"BlogTagSchema":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"BlogTagSchema"},"BuildMessage":{"properties":{"action":{"type":"string","const":"build_block","title":"Action"},"identity":{"type":"string","title":"Identity"},"ctx":{"additionalProperties":true,"type":"object","title":"Ctx"},"bind":{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object","title":"Bind"}},"type":"object","required":["action","identity","ctx","bind"],"title":"BuildMessage"},"CheckoutForm":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"block_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Block Id"},"data":{"items":{"$ref":"#/components/schemas/FormData"},"type":"array","title":"Data"},"token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"},"utm":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Utm"},"payment":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Payment","default":false},"integration_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Integration Id"},"products":{"items":{"oneOf":[{"$ref":"#/components/schemas/Product"},{"$ref":"#/components/schemas/CollectionProduct"}]},"type":"array","title":"Products"}},"type":"object","required":["id","data","products"],"title":"CheckoutForm"},"CheckoutResponse":{"properties":{"redirect_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redirect Uri"},"html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html"}},"type":"object","title":"CheckoutResponse"},"CollectionProduct":{"properties":{"source":{"type":"string","const":"collection","title":"Source"},"collection_id":{"type":"string","title":"Collection Id"},"collection_item_id":{"type":"string","title":"Collection Item Id"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["source","collection_id","collection_item_id","count"],"title":"CollectionProduct"},"CollectionSearchResultSchema":{"properties":{"total":{"type":"integer","title":"Total"},"results":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Results"}},"type":"object","required":["total","results"],"title":"CollectionSearchResultSchema"},"CollectionSearchSchema":{"properties":{"collection_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string"}],"title":"Collection Id"},"filters":{"anyOf":[{"additionalProperties":{"anyOf":[{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"}]},"type":"object"},{"type":"null"}],"title":"Filters"},"format":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Format"},"ordering":{"anyOf":[{"items":{"items":{},"type":"array"},"type":"array"},{"type":"null"}],"title":"Ordering"},"pagination":{"$ref":"#/components/schemas/PaginationSchema","default":{"limit":100,"offset":0}}},"type":"object","required":["collection_id"],"title":"CollectionSearchSchema"},"FormData":{"properties":{"name":{"type":"string","title":"Name"},"type":{"type":"string","enum":["text","email","tel","list","hidden"],"title":"Type"},"value":{"anyOf":[{"type":"string"},{"type":"integer"},{"items":{"type":"string"},"type":"array"},{"items":{"type":"integer"},"type":"array"}],"title":"Value"}},"type":"object","required":["name","type","value"],"title":"FormData"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InlineRubricSchema":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"InlineRubricSchema"},"PaginationSchema":{"properties":{"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["limit","offset"],"title":"PaginationSchema"},"Product":{"properties":{"id":{"type":"string","title":"Id"},"count":{"type":"integer","title":"Count"},"source":{"anyOf":[{"type":"string","const":"node"},{"type":"null"}],"title":"Source"},"block_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string"},{"type":"null"}],"title":"Block Id"}},"type":"object","required":["id","count"],"title":"Product"},"SimpleForm":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"block_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Block Id"},"data":{"items":{"$ref":"#/components/schemas/FormData"},"type":"array","title":"Data"},"token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"},"utm":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Utm"}},"type":"object","required":["id","data"],"title":"SimpleForm"},"TotalCountSchema":{"properties":{"count":{"type":"integer","title":"Count"}},"type":"object","required":["count"],"title":"TotalCountSchema"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"tags":[{"name":"forms","description":"Send and process forms"},{"name":"system","description":"System healthcheck"},{"name":"blog","description":"Blog endpoints"},{"name":"collections","description":"Collections endpoints"},{"name":"builder","description":"Builder endpoints"}]}